5 Replies Latest reply on Nov 9, 2005 11:36 AM by Louis Masters

    JB 4.0.2 to 4.0.3 -> jar stopped working

    Louis Masters Newbie

      I previously had my application working fine in JB 4.0.2. I have a bunch of jars (xalan.jar, xerces.jar, fop.jar, classes12.jar, jconn2.jar, etc.) that I put in the server/lib directory and all was well.

      When I upgraded to 4.0.3, I now get the following error in my log when trying to invoke fop:

      java.lang.NoClassDefFoundError: org/apache/fop/apps/Driver

      I tried adding the jar manually to the jboss classpath, but that made no difference.

      Did something change with the jar loader in this point release? Anyone know how to fix this issue?
      Thanks,
      Lou

        • 1. Re: JB 4.0.2 to 4.0.3 -> jar stopped working
          Adrian Brock Master

          http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp
          IT DOES NOT WORK.
          You should certainly never modify the classpath unless you know what you are doing.

          • 2. Re: JB 4.0.2 to 4.0.3 -> jar stopped working
            Louis Masters Newbie

            Ouch. OK, how can I word this better...

            I'm running win32 (2000) and jdk 1.4.

            In 4.0.2, I placed my jars in the server/myserver/lib directory. I use Xalan, Xerces, Batik and FOP to render PDF reports. The reports rendered PDF OK.

            I upgraded to 4.0.3 and placed my jars in the server/myserver/lib directory. Now, when I run a PDF report, I get the following error:

            at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:324)
             at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
             at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
             at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
             at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
             at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
             at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
             at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)
             at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
             at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
             at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
             at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
             at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
             at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
             at org.jboss.ejb.Container.invoke(Container.java:873)
             at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:324)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
             at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
             at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
             at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
             at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
             at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
             at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
             at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
             at $Proxy53.dispatch(Unknown Source)
             at com.lognet.servlets.DispatcherServlet.doWork(DispatcherServlet.java:513)
             at com.lognet.servlets.DispatcherServlet.wrapper(DispatcherServlet.java:54)
             at com.lognet.servlets.DispatcherServlet.doPost(DispatcherServlet.java:834)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:534)Caused by: java.lang.NoClassDefFoundError: org/apache/fop/apps/Driver
             at com.lognet.reports.engine.FOPGenerator.(FOPGenerator.java:43)
            
            


            -Lou

            • 4. Re: JB 4.0.2 to 4.0.3 -> jar stopped working
              Adrian Brock Master

              java.lang.NoClassDefFoundError

              The class (or one of the classes it imports, etc.)
              is not visible from the importing class's classloader.

              • 5. Re: JB 4.0.2 to 4.0.3 -> jar stopped working
                Louis Masters Newbie

                OK, I figured it out. The avalan jar was missing from the lib directory and that was causing the fop jar to throw the exception.
                Thanks.