Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException

    Dear All,

    I have a dedicated server with Godaddy and I am running XMLDigitalSignatureAPI on it. It works fine on my local server but when I uploaded the war file to the production server I got the error below and if I try to refresh the page again I get 404 error. My API files are lying in lib folder under WEB-INF. Could any one please let me know what should I do to fix this error.

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Error instantiating servlet class SignXML
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)

    root cause

    java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException
    java.lang.Class.getDeclaredConstructors0(Native Method)
    java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2357)
    java.lang.Class.getConstructor0(Class.java:2671)
    java.lang.Class.newInstance0(Class.java:321)
    java.lang.Class.newInstance(Class.java:303)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
    Apache Tomcat/5.5.27

    Regards
    Anoop

  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException

    The problem is obvious, you're missing javax/xml/crypto/dsig/XMLSignatureException, however the question is why. You say you have the needed jar files in your WEB-INF/lib folder, are you absolutely sure?

    Also, on your local machine, are there different jar files in the ${CATALINA_HOME}/lib folder from the ones on the server?

    Have you tried redeploying the app?

    // Json

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException

    Thanks for your help. I managed to it by putting JAR files

  4. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException

    No problem.

    // Json

Similar Threads

  1. AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    By nasi in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 25th, 2010, 10:37 PM
  2. Javax.Mail Query Help Me Please
    By ravjot28 in forum What's Wrong With My Code?
    Replies: 10
    Last Post: January 19th, 2010, 11:06 AM
  3. java.lang.NullPointerException - Help
    By mds1256 in forum Exceptions
    Replies: 5
    Last Post: November 30th, 2009, 06:31 PM
  4. Replies: 2
    Last Post: November 3rd, 2009, 06:28 AM
  5. Replies: 1
    Last Post: October 25th, 2009, 11:54 AM