3 Replies Latest reply on Apr 14, 2009 1:30 PM by peterj

    Application doesn't find the library

    krustyderclown

      Hello Together,

      i have a problem with the JBoss Server.

      I get the following exception:
      2009-04-03 12:30:06,102 INFO [STDOUT] 12:30:06,101 ERROR [http-0.0.0.0-50520-3] org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/DmMethods].[Do
      Method] - Servlet.
      service() for servlet DoMethod threw exception
      javax.servlet.ServletException: java.lang.Exception: java.lang.NoClassDefFoundError: org.apache.fop.apps.FopFactory
      at com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source)
      at com.documentum.mthdservlet.DoMethod.doPost(Unknown Source)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      But the fop_95.jar (with FopFactory.class) is there. See here my StartServer Log von JBoss:

      2009-04-02 18:34:22,089 INFO [STDOUT] Java Method Dir = /documentum/dba/java_methods
      2009-04-02 18:34:22,090 INFO [STDOUT]
      2009-04-02 18:34:22,090 INFO [STDOUT] <
      2009-04-02 18:34:22,090 INFO [STDOUT] INFO
      2009-04-02 18:34:22,090 INFO [STDOUT] >
      2009-04-02 18:34:22,090 INFO [STDOUT] DoMethod CLASSPATH=$CLASSPATH:/documentum/dba/java_methods/:/documentum/dba/java_methods
      /StatusWatcher.jar:/documentum/dba/java_methods/activation.jar:/documentum/dba/j
      ava_methods/avalon-framework-4.2.0.jar:/documentum/dba/java_methods/dctmUtil.jar:/documentum/dba/java_methods/fop_95.jar: (and ~25 more JAR's)
      2009-04-02 18:34:22,113 INFO [org.jboss.deployment.EARDeployer]

      What can be a reason for the exception?

      Can anyone help me?

      Thanks in advance.

      Greets Oliver

        • 1. Re: Application doesn't find the library
          peterj

          How is your application packaged? Where is the fop_95.jar file located within that package?

          • 2. Re: Application doesn't find the library
            krustyderclown

             

            "PeterJ" wrote:
            How is your application packaged? Where is the fop_95.jar file located within that package?


            It's a WAR web-application within a EAR folder. It's a "embedded" JBoss Server within the Enterprise Content Management System EMC Documentum.

            Now i moved the fop_95.jar to the WEB-INF/lib folder of the web-application. Now it works.

            But now i recieve the error message:

            java.lang.VerifyError: javax/mail/Part.setDataHandler(Ljavax/activation/DataHandler;)V


            Can i trace the classloading in JBoss?

            Thanks for your help.

            Greets Oliver

            • 3. Re: Application doesn't find the library
              peterj

              Hmm, should I repeat myself? Why not:

              Add the -verbose:class JVM option to the command line. This option causes the JVM to print the JAR file for each class loaded.