Bug 30462 - deploying war with META-INF/context.xml included results in error
Summary: deploying war with META-INF/context.xml included results in error
Status: RESOLVED DUPLICATE of bug 29688
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.0.27
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 12:39 UTC by rbetjes
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rbetjes 2004-08-04 12:39:15 UTC
Deploying a war file (by dropping it in de webapps dir) called test.war witch
includes an context.xml file in a dir called META-INF, results in directory
called test.xml created in the conf/Catalina/localhost/ directory.
The war file is correctly unpacked in the webapps dir.

Next the server reports an error in the catalina.out log like:

Aug 4, 2004 1:16:46 PM org.apache.catalina.startup.HostConfig deployDescriptors
SEVERE: Error deploying configuration descriptor test.xml
java.io.IOException: java.io.FileNotFoundException:
/usr2/app/apache/jakarta-tomcat-5.0.27/conf/Catalina/localhost/test.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:536)

A workaround forr the moment is to remove the faulty directory and manually
copying the correct context.xml file from de unpacked webapp to the
conf/Catalina/localhost/ directory and calling it test.xml

success,

Robin Betjes, 
Ecomsulting B.V.
Comment 1 Yoav Shapira 2004-08-04 14:38:47 UTC
Marking as duplicate...

*** This bug has been marked as a duplicate of 29688 ***