Zolf
asked on
Signing jar issue
Hello there,
I have around 40 jars which i have jarred and singed for my JNLP app. but when i run the jnlp app. i get following error.this is very weird becasue i have signed it,i also verified the jar by using this command
C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\kaizen>jarsign er -verify hibernate3.jar
jar verified.
Warning:
This jar contains entries whose signer certificate will expire within six months.
Re-run with the -verbose and -certs options for more details.
#### Java Web Start Error:
#### Found unsigned entry in resource: http://localhost:8080/kaizen/hibernate3.jar
Trace level set to 5: all ... completed.
I have around 40 jars which i have jarred and singed for my JNLP app. but when i run the jnlp app. i get following error.this is very weird becasue i have signed it,i also verified the jar by using this command
C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\kaizen>jarsign
jar verified.
Warning:
This jar contains entries whose signer certificate will expire within six months.
Re-run with the -verbose and -certs options for more details.
#### Java Web Start Error:
#### Found unsigned entry in resource: http://localhost:8080/kaizen/hibernate3.jar
Trace level set to 5: all ... completed.
check this, because I think this is your case, there is a solution proposed:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6964501
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6964501
may be this will be more helpful : https://hibernate.onjira.com/browse/HHH-5681
ASKER
CEHJ
How can i find it. I tried unjarring it and there was no jar files in it.but it had a pom file
How can i find it. I tried unjarring it and there was no jar files in it.but it had a pom file
ASKER
by: Valeri
i did not understand this comment from that link. do i just need to delete the pom file from the hibernate.jar and again jar the hibernate3 folder.
Gail Badner added a comment - 21/Jan/11 1:06 PM
Fixed in git hibernate-core 3.6.
i did not understand this comment from that link. do i just need to delete the pom file from the hibernate.jar and again jar the hibernate3 folder.
Gail Badner added a comment - 21/Jan/11 1:06 PM
Fixed in git hibernate-core 3.6.
ASKER
ok, i did as was told in that link and managed to get pass that unsign jar thingy. but now when i run the app. i get this error.
java.lang.NoClassDefFoundE rror: org/hibernate/HibernateExc eption
at com.MainFormX.<init>(MainF ormX.java: 234)
at com.MainFormX$2.run(MainFo rmX.java:4 50)
at java.awt.event.InvocationE vent.dispa tch(Unknow n Source)
at java.awt.EventQueue.dispat chEventImp l(Unknown Source)
at java.awt.EventQueue.access $000(Unkno wn Source)
at java.awt.EventQueue$1.run( Unknown Source)
at java.awt.EventQueue$1.run( Unknown Source)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at java.security.AccessContro lContext$1 .doInterse ctionPrivi lege(Unkno wn Source)
at java.awt.EventQueue.dispat chEvent(Un known Source)
at custom.java.swing.event.De faultTextP opupEventQ ueue.dispa tchEvent(D efaultText PopupEvent Queue.java :30)
at java.awt.EventDispatchThre ad.pumpOne EventForFi lters(Unkn own Source)
at java.awt.EventDispatchThre ad.pumpEve ntsForFilt er(Unknown Source)
at java.awt.EventDispatchThre ad.pumpEve ntsForHier archy(Unkn own Source)
at java.awt.EventDispatchThre ad.pumpEve nts(Unknow n Source)
at java.awt.EventDispatchThre ad.pumpEve nts(Unknow n Source)
at java.awt.EventDispatchThre ad.run(Unk nown Source)
Caused by: java.lang.ClassNotFoundExc eption: org.hibernate.HibernateExc eption
at java.net.URLClassLoader$1. run(Unknow n Source)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at java.net.URLClassLoader.fi ndClass(Un known Source)
at com.sun.jnlp.JNLPClassLoad er.findCla ss(Unknown Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
... 17 more
java.lang.NoClassDefFoundE
at com.MainFormX.<init>(MainF
at com.MainFormX$2.run(MainFo
at java.awt.event.InvocationE
at java.awt.EventQueue.dispat
at java.awt.EventQueue.access
at java.awt.EventQueue$1.run(
at java.awt.EventQueue$1.run(
at java.security.AccessContro
at java.security.AccessContro
at java.awt.EventQueue.dispat
at custom.java.swing.event.De
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
Caused by: java.lang.ClassNotFoundExc
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at com.sun.jnlp.JNLPClassLoad
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
... 17 more
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
So it's actually THIS that should have been marked as the correct answer ..?