IDEA 4 and tomcat 5.0.18 errors

Hi,

I got the following error message when running a web project using tomcat 5.0.18:

D:/j2sdk1.4.2_03\bin\java -Djava.endorsed.dirs=E:\jakarta-tomcat-5.0.18\common\endorsed "-Dcatalina.base=D:\Documents and Settings\Administrator\.IntelliJIdea\system\tomcat_HelloWorld_15a80520" -Dcatalina.home=E:\jakarta-tomcat-5.0.18 -Djava.io.tmpdir=E:\jakarta-tomcat-5.0.18\temp -Dfile.encoding=windows-1252 -classpath D:\j2sdk1.4.2_03\lib\tools.jar;E:\jakarta-tomcat-5.0.18\bin\bootstrap.jar;D:\IntelliJ-IDEA-4.0\lib\idea_rt.jar -Didea.launcher.port=7533 -Didea.launcher.library=D:\IntelliJ-IDEA-4.0\bin\breakgen.dll com.intellij.rt.execution.application.AppMain org.apache.catalina.startup.Bootstrap start
Feb 16, 2004 9:40:32 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 16, 2004 9:40:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1328 ms
Feb 16, 2004 9:40:32 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 16, 2004 9:40:32 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Feb 16, 2004 9:40:32 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 16, 2004 9:40:33 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Feb 16, 2004 9:40:33 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Documents and Settings\Hoang Viet Cuong\.IntelliJIdea\system\tomcat_HelloWorld_15a80520\conf\Catalina\localhost\elloWorld.xml
Feb 16, 2004 9:40:33 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:123)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:520)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Invalid context path: helloWorld
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:830)
... 43 more
Feb 16, 2004 9:40:33 PM org.apache.catalina.startup.HostConfig deployDescriptors
SEVERE: Error deploying configuration descriptor elloWorld.xml
java.io.IOException: java.lang.IllegalArgumentException: Invalid context path: helloWorld
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:526)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
Feb 16, 2004 9:40:33 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Feb 16, 2004 9:40:33 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Feb 16, 2004 9:40:33 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=D:\Documents and Settings\Hoang Viet Cuong\.IntelliJIdea\system\tomcat_HelloWorld_15a80520\conf\jk2.properties
Feb 16, 2004 9:40:33 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1391 ms

2 comments

You need to add a context path to your server.xml called helloWorld,
since this is what you called it in your web app setup.

]]>

R

0

I ran into the same issue recently using Tomcat 5.0.19. I added an initial '/' to the Application Context Path in the WebApp Run/Debug configuration, and that resolved it for me.

0

Please sign in to leave a comment.