tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Alberts <talbe...@msiscales.com>
Subject Re: Manager deploy uploaded war - doesn't use the /WEB-INF/context.xml
Date Wed, 15 Nov 2006 21:40:15 GMT
Caldarale, Charles R wrote:
>> From: Tim Alberts [mailto:talberts@msiscales.com] 
>> Subject: Re: Manager deploy uploaded war - doesn't use the 
>> /WEB-INF/context.xml
>>
>> However it's not going well.  I renamed the 'app.war' file as 
>> 'path#to#myapp#app.war' and the Manager application took it 
>> and said it was fine.
>>     
>
> The trick with the #-symbol in the path works when you put your
> <Context> element in an appropriately named .xml file in
> conf/[engine]/[host].  As a temporary workaround, you might want to try
> that.
>
>  - Chuck
>   

The server seems to be doing this?  I have a file in conf/ [engine] / 
[host]  named with the # symbol 'path#to#myapp#app.xml and it contains 
the context element with the correct path 'path/to/myapp'.  I also have 
the path#to#myapp#app.war in the webapps directory so it uploaded, but 
it is not unpacking the war into ANY location.



It try to avoid posting server logs, but here it is...as you can see the 
name of the application is UnitsConverter.war and the desired context 
path is 'engineering/technical/servlet'.  It seems the pertinent part is 
the first SEVERE exception java.net.MalformedURLException.


15-Nov-06 1:27:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive engineering#technical#servlet#UnitsConverter.war
15-Nov-06 1:27:14 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase: {0} 
java.net.MalformedURLException: no !/ in spec
   at java.net.URL.<init>(libgcj.so.7rh)
   at java.net.URL.<init>(libgcj.so.7rh)
   at org.apache.catalina.startup.ContextConfig.fixDocBase(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.ContextConfig.init(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.ContextConfig.lifecycleEvent(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardContext.init(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardContext.start(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.deployWAR(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.check(catalina-5.5.17.jar.so9wef74.so)
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   at org.apache.commons.modeler.BaseModelMBean.invoke(jakarta-commons-modeler-1.1.jar.so)
   at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(mx4j-3.0.1.jar.so)
   at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(mx4j-3.0.1.jar.so)
   at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(mx4j-3.0.1.jar.so)
   at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(mx4j-3.0.1.jar.so)
   at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(mx4j-3.0.1.jar.so)
   at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(mx4j-3.0.1.jar.so)
   at mx4j.server.MX4JMBeanServer.invoke(mx4j-3.0.1.jar.so)
   at org.apache.catalina.manager.ManagerServlet.check(catalina-manager-5.5.17.jar.so)
   at org.apache.catalina.manager.HTMLManagerServlet.doPost(catalina-manager-5.5.17.jar.so)
   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.17.jar.so)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.17.jar.so)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.17.jar.so)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.17.jar.so)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.17.jar.so)
   at java.lang.Thread.run(libgcj.so.7rh)
15-Nov-06 1:27:15 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
15-Nov-06 1:27:16 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat5/webapps/engineering/technical/servlet/UnitsConverter
does not exist or is not a readable directory
   at org.apache.naming.resources.FileDirContext.setDocBase(naming-resources-5.5.17.jar.so)
   at org.apache.catalina.core.StandardContext.resourcesStart(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardContext.start(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.check(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase.backgroundProcess(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(catalina-5.5.17.jar.so9wef74.so)
   at java.lang.Thread.run(libgcj.so.7rh)
15-Nov-06 1:27:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
15-Nov-06 1:27:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
15-Nov-06 1:27:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/engineering/technical/servlet/UnitsConverter] startup failed due to previous
errors
15-Nov-06 1:27:16 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/engineering/technical/servlet/UnitsConverter]
has not been started
15-Nov-06 1:27:20 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
15-Nov-06 1:27:26 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/engineering/technical/servlet/UnitsConverter'
15-Nov-06 1:27:26 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat5/webapps/engineering/technical/servlet/UnitsConverter
does not exist or is not a readable directory
   at org.apache.naming.resources.FileDirContext.setDocBase(naming-resources-5.5.17.jar.so)
   at org.apache.catalina.core.StandardContext.resourcesStart(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardContext.start(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.17.jar.so)
   at org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.17.jar.so)
   at org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.17.jar.so)
   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
   at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.17.jar.so9wef74.so)
   at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.17.jar.so)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.17.jar.so)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.17.jar.so)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.17.jar.so)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.17.jar.so)
   at java.lang.Thread.run(libgcj.so.7rh)
15-Nov-06 1:27:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
15-Nov-06 1:27:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
15-Nov-06 1:27:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/engineering/technical/servlet/UnitsConverter] startup failed due to previous
errors
15-Nov-06 1:27:26 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/engineering/technical/servlet/UnitsConverter]
has not been started
15-Nov-06 1:27:26 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message