tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Doppelfeld <mark.doppelf...@gmx.net>
Subject Re: Manager App and .war META-INF context.xml problem
Date Wed, 27 Oct 2004 15:47:33 GMT
Hi together,

at least I found my problem...
Cocoon was configured to log into WEB-INF directory and held a lock on 
this log files.
So the undeploy command couldn't remove the WEB-INF directory and the 
manager app got screwed up...
Probably the code base shouldn't check for the existance of this sub 
dir??? Just a guess.
Regards
Mark

Mark Doppelfeld wrote:

> Hi,
>
> I've done some reading on this subject, but still face a problem:
> I've set autodeploy to false in server.xml
> When I initially install the war via the manager app, everything is fine.
> Then I stop and unload my web-app and upload a new war file.
> On installing the new war I get the following excpetion:
> (adding the log4j jars to Tomcat won't bring up this exception, but 
> manager app will say my web-app isn't available...)
>
> Any ideas???
> Thanks in advance
> Mark
>
>
> 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:76) 
>
>        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:585)

>
>        at 
> org.apache.catalina.core.StandardHost.install(StandardHost.java:897)
>        at 
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:850) 
>
>        at 
> org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:271)

>
>        at 
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95) 
>
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

>
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

>
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)

>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>        at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
>
>        at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:70

>
>        at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 
>
>        at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.IllegalStateException: Context path /siemens is 
> already in use
>        at 
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:896)

>
>        ... 51 more
> 24.10.2004 18:02:01 org.apache.catalina.core.ContainerBase log
> INFO: Removing web application at context path /siemens
> 24.10.2004 18:02:10 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application from URL 
> jar:file:/E:/dev/jakarta-tomcat-5.0.27/webapps/siemens.war!/
> 24.10.2004 18:02:10 org.apache.catalina.core.StandardHostDeployer install
> INFO: Processing Context configuration file URL 
> jar:file:/E:/dev/jakarta-tomcat-5.0.27/webapps/siemens.war!/META-IN
> text.xml
> 24.10.2004 18:02:11 org.apache.catalina.startup.ContextConfig 
> applicationConfig
> INFO: Missing application web.xml, using defaults only 
> StandardEngine[Catalina].StandardHost[localhost].StandardCon
> /siemens]
> 24.10.2004 18:02:11 org.apache.commons.modeler.Registry registerComponent
> SCHWERWIEGEND: Null component 
> Catalina:type=JspMonitor,WebModule=//localhost/siemens,J2EEApplication=none,J2EEServe

>
> e
> 24.10.2004 18:02:11 org.apache.commons.digester.Digester endElement
> SCHWERWIEGEND: 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:76) 
>
>        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:585)

>
>        at 
> org.apache.catalina.core.StandardHost.install(StandardHost.java:897)
>        at 
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:850) 
>
>        at 
> org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:271)

>
>        at 
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95) 
>
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

>
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

>
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)

>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
>
>        at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>        at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
>
>        at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>        at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
>
>        at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:70

>
>        at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 
>
>        at java.lang.Thread.run(Thread.java:534)
> Caused by: org.apache.commons.logging.LogConfigurationException: 
> java.lang.ClassNotFoundException: org.apache.commo
> gging.impl.Log4jFactory (Caused by java.lang.ClassNotFoundException: 
> org.apache.commons.logging.impl.Log4jFactory)
>        at 
> org.apache.commons.logging.LogFactory$2.run(LogFactory.java:579)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at 
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:517)
>        at 
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:254)
>        at 
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
>        at 
> org.apache.catalina.session.ManagerBase.<init>(ManagerBase.java:63)
>        at 
> org.apache.catalina.session.StandardManager.<init>(StandardManager.java:64) 
>
>        at 
> org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:315) 
>
>        at 
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:635)
>        at 
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216) 
>
>        at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

>
>        at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)
>        at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) 
>
>        at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>        at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
>        at 
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)

>
>        ... 51 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.commons.logging.impl.Log4jFactory
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:141)
>        at 
> org.apache.commons.logging.LogFactory$2.run(LogFactory.java:568)
>        ... 66 more
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
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