tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Bug in deploying .war with Tomcat Manager.
Date Fri, 13 Aug 2004 13:04:49 GMT
Hi,
Turn off autoDeploy and stick to manual Manager deploys only to avoid duplicate deployments
(one automatic, one manual that you did with the Manager).

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Ronald Klop [mailto:ronald-mailinglist@base.nl]
>Sent: Friday, August 13, 2004 5:19 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Bug in deploying .war with Tomcat Manager.
>
>
>Hello,
>
>I've tried this on FreeBSD 5 with Tomcat 5.0.27 and on Windows XP with
>Tomcat 5.0.24.
>Both using JDK 1.4.2.
>
>I made a war file of my webapp with the name crm.war.
>The war file contains this context.xml in the META-INF directory.
>
><?xml version='1.0' encoding='utf-8'?>
><Context docBase="crm.war" path="">
></Context>
>
>When I upload/deploy this via Tomcat Manager, Tomcat tries to start the
>context twice.
>Once with path "" and once with path "/crm".
>This results in the following stacktrace.
>Tomcat Manager does show two deployed contexts after clicking 'List
>Applications' again.
>So the stacktrace/exception doesn't prevent it from starting the contexts.
>
>>>>Begin stacktrace
>
>13-aug-2004 10:59:21 org.apache.catalina.core.StandardHostDeployer install
>INFO: Processing Context configuration file URL
>file:/C:/Tomcat5/conf/Catalina/localhost/crm.xml
>13-aug-2004 10:59:21 org.apache.catalina.core.StandardHostDeployer install
>INFO: Installing web application from URL
>jar:file:/C:/Tomcat5/webapps/crm.war!/
>
>13-aug-2004 11:00:54 org.apache.catalina.core.StandardHostDeployer install
>INFO: Processing Context configuration file URL
>file:C:\Tomcat5\conf\Catalina\localhost\crm.xml
>13-aug-2004 11:00:54 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:3
>9)
>       at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.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:
>76)
>       at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
>Source)
>       at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknow
>n Source)
>       at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispat
>cher.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:488)
>       at
>org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
>       at
>org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:48
>2)
>       at
>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
>       at
>org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064)
>       at
>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
>       at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo
>rt.java:119)
>       at
>org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:8
>00)
>       at
>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process
>Children(ContainerBase.java:1619)
>       at
>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process
>Children(ContainerBase.java:1628)
>       at
>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Con
>tainerBase.java:1608)
>       at java.lang.Thread.run(Thread.java:534)
>Caused by: java.lang.IllegalStateException: Context path  is already in use
>       at
>org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer
>.java:896)
>       ... 30 more
>13-aug-2004 11:00:54 org.apache.catalina.startup.HostConfig
>deployDescriptors
>SEVERE: Error deploying configuration descriptor crm.xml
>java.io.IOException: java.lang.IllegalStateException: Context path  is
>already in use
>       at
>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.
>java:494)
>       at
>org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
>       at
>org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:48
>2)
>       at
>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
>       at
>org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064)
>       at
>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
>       at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo
>rt.java:119)
>       at
>org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:8
>00)
>       at
>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process
>Children(ContainerBase.java:1619)
>       at
>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process
>Children(ContainerBase.java:1628)
>       at
>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Con
>tainerBase.java:1608)
>       at java.lang.Thread.run(Thread.java:534)
>13-aug-2004 11:00:54 org.apache.catalina.core.StandardHostDeployer install
>INFO: Installing web application at context path /crm from URL
>file:C:/Tomcat5/webapps/crm
>
>13-aug-2004 11:00:58 org.apache.catalina.core.StandardHostDeployer install
>INFO: Installing web application at context path /crm from URL
>file:C:/Tomcat5/webapps/crm
>
>>>>End stacktrace
>
>
>Does anybody use this? Is this a known problem?
>
>Greetings,
>
>Ronald.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message