4 Replies Latest reply on Apr 16, 2002 4:58 PM by Jules Gosnell

    Classpath problems for lib directory in WAR file

    Matt Newbie


      Any suggestions on why the class, org/apache/commons/digester/Rule, is not being found by the class loader for the servlet init.. I have verified that this class is in the following jar file, C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-digester.jar, which is being picked up by the JSP classpath at least.

      I have all my files in a WAR file which is then packaged in an EAR file with an application.xml file. The commons-digester.jar is in the lib directory of the WEB-INF/lib of the web application.

      2002-03-25 22:46:16,539 INFO [org.jboss.ejb.EjbModule] Started
      2002-03-25 22:46:17,621 WARN [org.jboss.jetty.session.CoarseDistributedStore] support for EJB-based Distributed HttpSessions does not appear to be loaded
      2002-03-25 22:46:19,193 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=0,JBossWebApplicationContext=0,context=/nessusd
      2002-03-25 22:46:19,253 INFO [org.jboss.jetty.Jetty] Checking Resource aliases
      2002-03-25 22:46:19,263 INFO [org.jboss.jetty.Jetty] Created temp dir c:\tmp\Jetty__8080___nessusd for WebApplicationContext[/nessusd,jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/]
      2002-03-25 22:46:19,263 INFO [org.jboss.jetty.Jetty] Extract jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/ to c:\tmp\Jetty__8080___nessusd\webapp
      2002-03-25 22:46:21,286 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar^/turbine-2.2b1.jar -> file:/C:/tmp/nested-32043.jar
      2002-03-25 22:46:21,336 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jms-ra.rar/68.jms-ra.rar^/jms-ra.jar -> file:/C:/tmp/nested-32029.jar
      2002-03-25 22:46:21,336 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jetty-plugin.sar/51.jetty-plugin.sar^/org.mortbay.jetty.jar -> file:/C:/tmp/nested-32027.jar
      2002-03-25 22:46:21,376 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar^/jakarta-oro-2.0.4.jar -> file:/C:/tmp/nested-32037.jar
      2002-03-25 22:46:21,396 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar^/ejbutils-client.jar -> file:/C:/tmp/nested-32045.jar
      2002-03-25 22:46:21,416 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar -> file:/C:/tmp/nested-32035.jar
      2002-03-25 22:46:21,446 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jetty-plugin.sar/51.jetty-plugin.sar^/org.mortbay.jetty.jmx.jar -> file:/C:/tmp/nested-32025.jar
      2002-03-25 22:46:21,556 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar^/struts.jar -> file:/C:/tmp/nested-32041.jar
      2002-03-25 22:46:21,556 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jboss-jdbc.rar/69.jboss-jdbc.rar^/ra-jdbc-libs.jar -> file:/C:/tmp/nested-32031.jar
      2002-03-25 22:46:21,727 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jboss-xa.rar/70.jboss-xa.rar^/ra-xa-libs.jar -> file:/C:/tmp/nested-32033.jar
      2002-03-25 22:46:21,737 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar^/NetComponents-1.3.8A.jar -> file:/C:/tmp/nested-32039.jar
      2002-03-25 22:46:21,737 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] converting njar:njar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/C/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear/73.securestate.ear^/securestate-ejb.jar^/dnsjava-1.2.3.jar -> file:/C:/tmp/nested-32047.jar
      2002-03-25 22:46:21,947 INFO [org.jboss.jetty.JBossWebApplicationContext#/nessusd] JSP classpath: C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\activation-1.0.1.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-beanutils.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-collections.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-dbcp.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-digester.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-logging.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-pool.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-services.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\commons-validator.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\ecs-1.4.1.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\jdbc2_0-stdext.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\log4j.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\mail-1.2.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\pager-taglib.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\struts.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\tiles.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\velocity-1.2-dev.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\village-1.5.1.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\lib\xdoclet.jar;C:\tmp\Jetty__8080___nessusd\webapp\WEB-INF\classes;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jsse.jar\39.jsse.jar;C:\tmp\nested-32043.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jmx-ejb-adaptor.jar\71.jmx-ejb-adaptor.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\mail.jar\45.mail.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\securestate-queue.sar\54.securestate-queue.sar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jboss-xa.rar\70.jboss-xa.rar;C:\tmp\nested-32029.jar;C:\tmp\nested-32027.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-j2ee.jar\26.jboss-j2ee.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-system.jar\44.jboss-system.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\castor.jar\12.castor.jar;C:\tmp\nested-32037.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jbossmq.jar\13.jbossmq.jar;C:\tmp\nested-32045.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jbossha.jar\2.jbossha.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jaxp.jar\14.jaxp.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jboss-jdbc.rar\69.jboss-jdbc.rar;C:\tmp\nested-32035.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\activation.jar\21.activation.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-management.jar\27.jboss-management.jar;C:\tmp\nested-32025.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\scheduler-plugin.jar\37.scheduler-plugin.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jmxtools.jar\36.jmxtools.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\ejb-management.jar\72.ejb-management.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-pool.jar\18.jboss-pool.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\mail-plugin.jar\43.mail-plugin.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\gnu-regexp.jar\41.gnu-regexp.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\counter-plugin.jar\11.counter-plugin.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\ejbutils-deploy.jar\55.ejbutils-deploy.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\securestate-web.war;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\org.apache.jasper.jar\17.org.apache.jasper.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jcert.jar\46.jcert.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-jsr77.jar\29.jboss-jsr77.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\conf;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss.jar\32.jboss.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jmxri.jar\38.jmxri.jar;C:\tmp\nested-32041.jar;C:\tmp\nested-32031.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\securestate.ear\73.securestate.ear;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\concurrent.jar\8.concurrent.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jbossmqha.jar\40.jbossmqha.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jms-ra.rar\68.jms-ra.rar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\scheduler-plugin-example.jar\35.scheduler-plugin-example.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-boot.jar\6.jboss-boot.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\hsqldb.jar\24.hsqldb.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-jmx-services.jar\5.jboss-jmx-services.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\hsqldb-plugin.jar\3.hsqldb-plugin.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jbossmx.jar\15.jbossmx.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jnet.jar\22.jnet.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\log4j.jar\20.log4j.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-jca.jar\9.jboss-jca.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jaas.jar\30.jaas.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jmx-html-adaptor.sar\56.jmx-html-adaptor.sar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jpl-util.jar\7.jpl-util.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jbosssx.jar\23.jbosssx.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\getopt.jar\42.getopt.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\mm.mysql-2.0.11-bin.jar\53.mm.mysql-2.0.11-bin.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jpl-pattern.jar\10.jpl-pattern.jar;C:\tmp\nested-32033.jar;C:\tmp\nested-32039.jar;C:\tmp\nested-32047.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-jmx-core.jar\25.jboss-jmx-core.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\tyrex.jar\4.tyrex.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jnpserver.jar\47.jnpserver.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jboss-common.jar\34.jboss-common.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\crimson.jar\16.crimson.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\javax.servlet.jar\31.javax.servlet.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jts.jar\33.jts.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\xalan.jar\28.xalan.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jmx-rmi-adaptor.sar\50.jmx-rmi-adaptor.sar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jmx-ejb-connector-server.sar\57.jmx-ejb-connector-server.sar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\jetty-plugin.sar\51.jetty-plugin.sar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\bcel.jar\49.bcel.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\javagroups-2.0.jar\19.javagroups-2.0.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\lib\jndi.jar\48.jndi.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\tmp\deploy\C\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\server\default\deploy\securestate-db.sar\52.securestate-db.sar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\bin;C:\java\jdk1.3.1_01\lib\tools.jar;C:\java\jboss\jboss-all\build\output\jboss-3.0.0beta2\bin\run.jar
      2002-03-25 22:46:22,588 WARN [org.jboss.jetty.Jetty] WARNING: No Realm set for JBossWebApplicationContext$JBossSXSecurityHandler in WebApplicationContext[/nessusd,jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/]
      2002-03-25 22:46:22,608 INFO [org.jboss.jetty.Jetty] Started JBossWebApplicationContext$JBossSXSecurityHandler in WebApplicationContext[/nessusd,jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/]
      2002-03-25 22:46:22,608 INFO [org.jboss.jetty.Jetty] Started SecurityHandler in WebApplicationContext[/nessusd,jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/]
      2002-03-25 22:46:22,608 INFO [org.jboss.jetty.Jetty] Started WebInfProtect
      2002-03-25 22:46:22,608 INFO [org.jboss.jetty.Jetty] Started FilterHandler in WebApplicationContext[/nessusd,jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/]
      2002-03-25 22:46:22,618 INFO [org.jboss.jetty.Jetty] Started ServletHandler in WebApplicationContext[/nessusd,jar:file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war/!/]
      2002-03-25 22:46:23,189 INFO [org.jboss.jetty.Jetty] JSP: init
      2002-03-25 22:46:24,070 INFO [org.jboss.jetty.Jetty] SimpleServlet: init
      2002-03-25 22:46:24,300 ERROR [org.jboss.deployment.MainDeployer] could not start deployment :file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war
      java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java:237)
      at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:163)
      at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:199)
      at org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:380)
      at org.mortbay.jetty.servlet.FilterHandler.start(FilterHandler.java:160)
      at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1453)
      at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:306)
      at org.mortbay.http.HttpContext.start(HttpContext.java:1424)
      at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:400)
      at org.jboss.jetty.Jetty.deploy(Jetty.java:408)
      at org.jboss.jetty.JettyService.performDeploy(JettyService.java:244)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:635)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:500)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:463)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:169)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:300)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:506)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:379)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:228)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:673)
      at $Proxy1.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:280)
      at org.jboss.system.ServiceController.start(ServiceController.java:298)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:326)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:208)
      at org.jboss.Main.boot(Main.java:138)
      at org.jboss.Main$1.run(Main.java:371)
      at java.lang.Thread.run(Thread.java:484)
      2002-03-25 22:46:24,380 ERROR [org.jboss.deployment.MainDeployer] could not start deployment :file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/securestate.ear
      org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/java/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/securestate-web.war; - nested throwable is: java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
      java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule

        • 1. Re: Classpath problems for lib directory in WAR file
          Jules Gosnell Novice

          strange.....

          The classpath code is definitely working.

          I assume that ';' is the correct separator for your system.

          The newline at the beginning of the 'JSP classpath' is new to me - I don't think that is coded - so perhaps it is part of the classpath and causing a problem ?

          To confirm that this is a JBoss/Jetty problem, would you deploy your war and then try compiling your JSP by hand using the 'JSP classpath' - I think Jasper comes with a jspc script (NB you may have to d/l tomcat to find it).

          If this works, then I have an integration problem somewhere - perhaps the classpath is just too long ?


          Jules

          • 2. Re: Classpath problems for lib directory in WAR file
            Matt Newbie


            I think it is some kind of class loader problem.. CVS copy of JBOSS/JETTY from CVS about a week ago..

            My deployment format is..

            PROJECT.EAR
            - PROJECT.JAR - with some EJB classes/jars
            - PROJECT.WAR
            WEB-INF/classes - classes used by the web site
            WEB-INF/lib - jars used by website

            The org/apache/commons/digester/Rule class was in the commons-digester.jar which wasn't being found using the default setup.. I fixed it temporarily by changing the Java2ClassLoadingCompliance attribute in the Jetty SAR to false which I think switched the JETTY classloader to load the the lib directory itself. But with this fix, i was running into some other class problems with the Class.forName issue.. So the current fix is I pulled everything out of the WAR file lib/** and classes/**, dumped all those classes into the root of the EAR file which JBOSS seems to like and pick up automatically, and changed Java2ClassLoadingCompliance back to true.. This is currently working but I really don't like this solution..

            Does this make any more sense or give you any ideas.. I don't have the jspc script on my box and since I changed the structure again to get it work, I can't test this for you easily.. Worth me putting it back and using the jspc script?

            • 3. Re: Classpath problems for lib directory in WAR file
              Jules Gosnell Novice


              Try refreshing your cvs tree - it seems pretty stable at the moment....

              There was a mention on the dev list that this may have been caused by the jar urls being too long, and I believe they have now been pathed to be shorter.

              Let me know how you get on.



              Jules

              • 4. Re: Classpath problems for lib directory in WAR file
                Jules Gosnell Novice

                if your exception is coming out of initialise() try doing this at the top of the method :

                Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

                You may be tickling a potential bug - we are looking into it now.

                Jules