Solved

Signing jar issue

Posted on 2013-01-14
9
952 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 

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
 

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
junit example issue 2 50
Java array 21 140
Pass multiple values or string arrays in java as a parameter 3 72
Java import explained 4 44
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

734 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