ClassNotFoundException for Tomcat 6.x default logging properties

Description

We use Cargo-Maven2-Plugin to start and stop our Tomcat for Selenium frontend tests. We ship a tar.gz file which includes a configured Tomcat. Since Cargo-Maven2-Plugin 1.1.0 Tomcat starts with the following warnings:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [INFO] [stalledLocalDeployer] Deploying [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/application/mitarbeiter/fe/web/target/application.mitarbeiter.fe.web-1.1.2-SNAPSHOT.war] to [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/test/target/delivery.tar/tomcat/webapps]... [INFO] [stalledLocalDeployer] Deploying [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/application/bewerber/fe/web/target/application.bewerber.fe.web-1.1.2-SNAPSHOT.war] to [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/test/target/delivery.tar/tomcat/webapps]... [INFO] [talledLocalContainer] Tomcat 6.x starting... [WARNING] [talledLocalContainer] Bad level value for property: 1catalina.org.apache.juli.FileHandler.level [WARNING] [talledLocalContainer] Can't load log handler "1catalina.org.apache.juli.FileHandler" [WARNING] [talledLocalContainer] java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler [WARNING] [talledLocalContainer] java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler [WARNING] [talledLocalContainer] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [WARNING] [talledLocalContainer] at java.security.AccessController.doPrivileged(Native Method) [WARNING] [talledLocalContainer] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [WARNING] [talledLocalContainer] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [WARNING] [talledLocalContainer] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [WARNING] [talledLocalContainer] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [WARNING] [talledLocalContainer] at java.util.logging.LogManager$3.run(LogManager.java:357) [WARNING] [talledLocalContainer] at java.security.AccessController.doPrivileged(Native Method) [WARNING] [talledLocalContainer] at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:344) [WARNING] [talledLocalContainer] at java.util.logging.LogManager.addLogger(LogManager.java:445) [WARNING] [talledLocalContainer] at java.util.logging.LogManager$1.run(LogManager.java:180) [WARNING] [talledLocalContainer] at java.security.AccessController.doPrivileged(Native Method) [WARNING] [talledLocalContainer] at java.util.logging.LogManager.<clinit>(LogManager.java:156) [WARNING] [talledLocalContainer] at java.util.logging.Logger.getLogger(Logger.java:287) [WARNING] [talledLocalContainer] at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71) [WARNING] [talledLocalContainer] at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178) [WARNING] [talledLocalContainer] at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171) [WARNING] [talledLocalContainer] at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) [WARNING] [talledLocalContainer] at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298) [WARNING] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55) ... [INFO] [talledLocalContainer] ((( WebCastellum ))) version 1.8.3 - web application firewall [INFO] [talledLocalContainer] Tomcat 6.x started on port [51120]

With Cargo-Maven2-Plugin 1.0.6 this error/bug doesn't exist:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 [INFO] [stalledLocalDeployer] Deploying [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/application/mitarbeiter/fe/web/target/application.mitarbeiter.fe.web-1.1.2-SNAPSHOT.war] to [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/test/target/delivery.tar/tomcat/webapps]... [INFO] [stalledLocalDeployer] Deploying [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/application/bewerber/fe/web/target/application.bewerber.fe.web-1.1.2-SNAPSHOT.war] to [/home/artifacts/hudson/jobs/integrationtest_1.1.2/workspace/test/target/delivery.tar/tomcat/webapps]... [INFO] [talledLocalContainer] Tomcat 6.x starting... [WARNING] [talledLocalContainer] 23.08.2011 07:24:54 org.apache.catalina.core.AprLifecycleListener init [WARNING] [talledLocalContainer] INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_26/jre/lib/amd64/server:/usr/java/jdk1.6.0_26/jre/lib/amd64:/usr/java/jdk1.6.0_26/jre/../lib/amd64:/usr/firefox/3.6.12:/usr/firefox/3.6.12/plugins:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib [WARNING] [talledLocalContainer] 23.08.2011 07:24:54 org.apache.coyote.http11.Http11Protocol init [WARNING] [talledLocalContainer] INFO: Initializing Coyote HTTP/1.1 on http-127.0.0.1-51120 [WARNING] [talledLocalContainer] 23.08.2011 07:24:54 org.apache.catalina.startup.Catalina load [WARNING] [talledLocalContainer] INFO: Initialization processed in 357 ms [WARNING] [talledLocalContainer] 23.08.2011 07:24:54 org.apache.catalina.core.StandardService start [WARNING] [talledLocalContainer] INFO: Starting service Catalina [WARNING] [talledLocalContainer] 23.08.2011 07:24:54 org.apache.catalina.core.StandardEngine start [WARNING] [talledLocalContainer] INFO: Starting Servlet Engine: Apache Tomcat/6.0.32 [WARNING] [talledLocalContainer] 23.08.2011 07:24:54 org.apache.catalina.startup.HostConfig deployWAR [WARNING] [talledLocalContainer] INFO: Deploying web application archive zvs.application.bewerber.fe.web.war [WARNING] [talledLocalContainer] 23.08.2011 07:24:56 org.apache.catalina.core.ApplicationContext log [WARNING] [talledLocalContainer] INFO: Initializing Spring root WebApplicationContext [INFO] [talledLocalContainer] ((( WebCastellum ))) version 1.8.3 - web application firewall [WARNING] [talledLocalContainer] 23.08.2011 07:25:08 org.apache.cxf.transport.servlet.CXFServlet updateContext [WARNING] [talledLocalContainer] INFO: Load the bus with application context [WARNING] [talledLocalContainer] 23.08.2011 07:25:09 org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory [WARNING] [talledLocalContainer] INFO: Replaced the http destination factory with servlet transport factory [WARNING] [talledLocalContainer] 23.08.2011 07:25:09 org.apache.catalina.startup.HostConfig deployWAR [WARNING] [talledLocalContainer] INFO: Deploying web application archive zvs.application.mitarbeiter.fe.web.war [WARNING] [talledLocalContainer] 23.08.2011 07:25:10 org.apache.catalina.core.ApplicationContext log [WARNING] [talledLocalContainer] INFO: Initializing Spring root WebApplicationContext [INFO] [talledLocalContainer] ((( WebCastellum ))) version 1.8.3 - web application firewall [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.catalina.startup.HostConfig deployWAR [WARNING] [talledLocalContainer] INFO: Deploying web application archive cargocpc.war [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.catalina.startup.HostConfig deployDirectory [WARNING] [talledLocalContainer] INFO: Deploying web application directory ROOT [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.catalina.startup.HostConfig deployDirectory [WARNING] [talledLocalContainer] INFO: Deploying web application directory manager [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.coyote.http11.Http11Protocol start [WARNING] [talledLocalContainer] INFO: Starting Coyote HTTP/1.1 on http-127.0.0.1-51120 [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.jk.common.ChannelSocket init [WARNING] [talledLocalContainer] INFO: Port busy 8009 java.net.BindException: Address already in use [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.jk.common.ChannelSocket init [WARNING] [talledLocalContainer] SCHWERWIEGEND: Can't find free port 8009 8009 [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.jk.server.JkMain start [WARNING] [talledLocalContainer] INFO: Jk running ID=0 time=0/11 config=null [WARNING] [talledLocalContainer] 23.08.2011 07:25:48 org.apache.catalina.startup.Catalina start [WARNING] [talledLocalContainer] INFO: Server startup in 54070 ms [INFO] [talledLocalContainer] Tomcat 6.x started on port [51120]

Status

Assignee

Savas Ali Tokmen

Reporter

Norman Seidel

Components

Fix versions

Affects versions

1.1.2

Priority

Minor