https://issues.apache.org/bugzilla/show_bug.cgi?id=53864
Priority: P2 Bug ID: 53864 Assignee: dev@tomcat.apache.org Summary: Tomcat creates context.xml as a folder not a file on deployment of new war file Severity: normal Classification: Unclassified OS: Linux Reporter: ij...@fastmail.fm Hardware: Other Status: NEW Version: 5.0.27 Component: Catalina Product: Tomcat 5 I have a war file, lets call it widget.war created with Maven that contains a context.xml file in META-INF, on copying it into webapps folder tomcat auto-unpacks it but then instead of copying the context.xml into Catalina/localhost and renaming it widget.xml it created a directory called widget.xml Then in log I get the error: java.io.IOException: java.io.FileNotFoundException: /home/jthink/jakarta-tomcat-5.0.27/conf/Catalina/localhost/widget.xml (Is a directory) 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:482) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1068) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608) at java.lang.Thread.run(Thread.java:619) If I then manually delete the widget.xml folder, shutdown, manually copy context.xml into localhost and rename to widget.xml and restart , everthing is working okay. Why does it try to create widget.xml as a folder. One thought I had it that the war is created by maven and the META-INF folder also contains a maven folder could that confuse tomcat in some way. I realize the version of tomcat Im using is quite old but I couldnt find a duplicate bug in the database so thought it worth reporting. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org