Link to home
Start Free TrialLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

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>jarsigner -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.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

hibernate3.jar
Does that have nested jars?
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
may be this will be more helpful : https://hibernate.onjira.com/browse/HHH-5681
Avatar of Zolf

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
Avatar of Zolf

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.
Avatar of Zolf

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.NoClassDefFoundError: org/hibernate/HibernateException
      at com.MainFormX.<init>(MainFormX.java:234)
      at com.MainFormX$2.run(MainFormX.java:450)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$000(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at custom.java.swing.event.DefaultTextPopupEventQueue.dispatchEvent(DefaultTextPopupEventQueue.java:30)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.hibernate.HibernateException
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 17 more
ASKER CERTIFIED SOLUTION
Avatar of Valeri
Valeri
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

ASKER

thanks
So it's actually THIS that should have been marked as the correct answer ..?