tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20217] New: - restartContext doesn't work when a context configuration file maps a path to two levels.
Date Sun, 25 May 2003 00:44:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20217>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20217

restartContext doesn't work when a context configuration file maps a path to two levels.

           Summary: restartContext doesn't work when a context configuration
                    file maps a path to two levels.
           Product: Tomcat 5
           Version: 5.0.2
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rajiv.mordani@sun.com


With a context configuration file in webapps such as 

<Context path="/foo/bar" docBase="../foo/bar"
        debug="0">
</Context>

<Context path="/foo/docs" docBase="../foo/bar/docs"
        debug="0">
</Context>

and the directories have the files that are being served works fine when the
server comes up. However when the restartContext is called (simplest way is to
just make a change in admin tool and commit changes) then the server throws an
exception and I get a 500 error. The stacktrace on the server is

May 24, 2003 5:39:14 PM org.apache.commons.modeler.BaseModelMBean invoke
SEVERE: Exception invoking method storeConfig
java.io.FileNotFoundException:
/export0/mode/workspaces/tomcat5/jakarta-tomcat-5/dist/webapps/tomcat/docs.xml
(No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at java.io.FileWriter.<init>(FileWriter.java:73)
        at
org.apache.catalina.core.StandardServer.storeContext(StandardServer.java:1176)
        at
org.apache.catalina.core.StandardServer.storeHost(StandardServer.java:1638)
        at
org.apache.catalina.core.StandardServer.storeEngine(StandardServer.java:1520)
        at
org.apache.catalina.core.StandardServer.storeService(StandardServer.java:2120)
        at
org.apache.catalina.core.StandardServer.storeServer(StandardServer.java:2076)
        at
org.apache.catalina.core.StandardServer.storeConfig(StandardServer.java:786)
        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.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
        at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:209)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:123)
        at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:79)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:123)
        at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:123)
        at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:144)
        at mx4j.server.MBeanServerImpl.invoke(MBeanServerImpl.java:1353)
        at
org.apache.webapp.admin.CommitChangesAction.perform(CommitChangesAction.java:158)
        at org.apache.struts.action.Action.execute(Action.java:415)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:480)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:288)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:183)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2735)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:203)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:469)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
        at java.lang.Thread.run(Thread.java:536)
May 24, 2003 5:39:22 PM org.apache.catalina.startup.HostConfig restartContext
INFO: restartContext(/admin): not reloadable
May 24, 2003 5:39:22 PM org.apache.catalina.startup.HostConfig restartContext
INFO: restartContext(/servlets-examples): not reloadable
May 24, 2003 5:39:22 PM org.apache.catalina.startup.HostConfig restartContext
INFO: restartContext(/jsp-examples): not reloadable

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


Mime
View raw message