p.s.
M4N - Arjan Tijms wrote:
I'm running Tomcat 6.0.20 using JDK 6 update 14 on a 64 bits Debian
Lenny. I've unpacked a stock Tomcat 6.0.20 and deployed a web module
to the webapps directory. After I started and stopped the web module,
I noticed that the META-INF/context.xml had been copied to
conf/Catalina/localhost/[name of web module].xml.
When I try to make the [tomcat install dir]/conf read only, I get the
following exception when starting up:
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 6, 2009 6:52:07 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 6, 2009 6:52:07 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/19 config=null
Aug 6, 2009 6:52:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 137 ms
Aug 6, 2009 6:53:17 PM org.apache.catalina.startup.HostConfig
deployDirectory
SEVERE: Error deploying web application directory my_test
java.io.FileNotFoundException:
/opt/apache-tomcat-6.0.20/conf/Catalina/localhost/my_test.xml (No such
file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:957)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
It thus appears that Tomcat really wants to make this copy first and
then process only this copy. I however very much want this not to
happen. Is there any option that allows me to change this? What I need
is the Tomcat 6.0.18 and earlier behavior where META-INF/context.xml is
used from the webapps/someapp directory as-is, without any copying of
any kind.
Thanks in advance for all help
--
It's a cult. If you've coded for any length of time, you've run across someone
from this warped brotherhood. Their creed: if you can write complicated code,
you must be good.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org