Solved

Signing jar issue

Posted on 2013-01-14
9
917 Views
Last Modified: 2013-01-15
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.
0
Comment
Question by:zolf
  • 4
  • 3
  • 2
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 38774034
hibernate3.jar
Does that have nested jars?
0
 
LVL 16

Expert Comment

by:Valeri
ID: 38774120
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
0
 
LVL 16

Expert Comment

by:Valeri
ID: 38774250
may be this will be more helpful : https://hibernate.onjira.com/browse/HHH-5681
0
 

Author Comment

by:zolf
ID: 38777007
CEHJ

How can i find it. I tried unjarring it and there was no jar files in it.but it had a pom file
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:zolf
ID: 38777020
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.
0
 

Author Comment

by:zolf
ID: 38777032
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
0
 
LVL 16

Accepted Solution

by:
Valeri earned 500 total points
ID: 38777203
what did you do? can you check if the missing file is presented in you jar file? As I can see from the link if you download version 3.6 or later, there will be no problem and you don't have to do anything else except to sign the jar.
0
 

Author Closing Comment

by:zolf
ID: 38777416
thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 38778014
So it's actually THIS that should have been marked as the correct answer ..?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now