2 Replies Latest reply on Jul 18, 2005 9:06 AM by David Webb

    Tomcat can not find jars under jboss-4.0.1sp1/server/all/dep

    Vijay Kandy Newbie

      Hello,

      I have jboss-4.0.1sp1 and turned on scoped classloading by following instructions at jboss-4.0.1sp1/readme.html. I deploy my war file and I can see that all my classes under WEB-INF/classes and jars under WEB-INF/lib are available via parent classloader. But somehow jars under jboss-4.0.1sp1/server/all/deploy/jbossweb-tomcat50.sar are not available. How do I let the class loader know to load these jars?

      2005-03-16 14:25:45,853 [main] INFO org.jboss.deployment.EARDeployer - Started J2EE application: file:/usr/local/share/jboss-4.0.1sp1/server/all/deploy/OnRoute.ear
       2005-03-16 14:25:46,230 [main] INFO org.jboss.ha.framework.server.FarmMemberService - **** pullNewDeployments ****
       2005-03-16 14:25:46,291 [main] INFO org.jboss.ha.framework.server.FarmMemberService - farmDeployment(), deploy locally: /usr/local/share/jboss-4.0.1sp1/server/all/tmp/cluster-examples-service.xml
       2005-03-16 14:25:47,805 [main] INFO org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1 on http-172.16.7.3-8080
       2005-03-16 14:25:48,090 [http-172.16.7.3-8080-Processor25] ERROR org.apache.tomcat.util.threads.ThreadPool - Caught exception (java.lang.NoClassDefFoundError: org/apache/regexp/RESyntaxException) executing org.apache.tomcat.util.net.TcpWorkerThread@92b7c2, terminating thread
       2005-03-16 14:25:49,312 [main] INFO org.apache.jk.common.ChannelSocket - JK2: ajp13 listening on /172.16.7.3:8009
       2005-03-16 14:25:49,333 [main] INFO org.apache.jk.server.JkMain - Jk running ID=0 time=2/148 config=null
       2005-03-16 14:25:49,430 [main] INFO org.jboss.system.server.Server - JBoss (MX MicroKernel) [4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314)] Started in 3m:45s:239ms
       2005-03-16 14:28:15,651 [TP-Processor3] INFO STDOUT - Can't find resource org.jboss.web.tomcat.session.LocalStrings WebappClassLoader
       delegate: false
       repositories:
       /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@ae00e3
       2005-03-16 14:28:15,681 [TP-Processor3] INFO STDOUT - [Ljava.net.URL;@8c3eb8
       2005-03-16 14:28:16,772 [TP-Processor3] ERROR org.jboss.web.localhost.Engine - ApplicationDispatcher[/OnRoute] Servlet.service() for servlet jsp threw exception
       java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
       at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:197)
       at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:508)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
       at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at com.pb.onroute.common.web.OnRouteActionServlet.process(OnRouteActionServlet.java:56)
       at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:80)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
       at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
       at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
       at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
       at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
       at java.lang.Thread.run(Thread.java:534)
      2005-03-16 14:28:16,782 [TP-Processor3] ERROR org.jboss.web.localhost.Engine - StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
       java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
       at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:197)
       at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:508)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)