Summary: | Error when deploying XML Configuration file URL | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Zemian Deng <zemiandeng> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lizongbo |
Priority: | P2 | ||
Version: | 6.0.2 | ||
Target Milestone: | default | ||
Hardware: | Macintosh | ||
OS: | Mac OS X 10.4 | ||
URL: | http://localhost:8080/manager/html | ||
Attachments: | just a single line of fix |
Description
Zemian Deng
2007-01-04 07:42:41 UTC
I got the same problem, then I submited in: http://issues.apache.org/bugzilla/show_bug.cgi?id=42041 Could reproduce the problem even with /tc6.0.x/trunk/ build. Tried deploying "sample.war" (http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/sample.war) through the Manager web-application, by executing the following URL from Browser: http://localhost:8080/manager/deploy?path=/Shiva&config=file:/c:/tomcat/examples/myContext.xml where, "c:/tomcat/examples/myContext.xml" file contains the following contents: <?xml version="1.0" encoding="UTF-8"?> <Context path="/WebApplication1" docBase="c:\tomcat\examples\sample.war" /> Deploy failed with following return message: FAIL - Failed to deploy application at context path /Shiva and log file shows: INFO: Manager: install: Installing context configuration at 'file:/c:/tomcat/examples/myContext.xml' java.io.FileNotFoundException: C:\tomcat\trunk60\output\build\conf\Catalina\localhost\Shiva.xml (The system cannot find the path specified) 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.manager.ManagerServlet.copyInternal(ManagerServlet.java:1570) ... Created <conf-path>\Catalina\localhost manually and tried deploying again and it is successful this time. Will create a fix for this. *** Bug 42041 has been marked as a duplicate of this bug. *** Created attachment 19917 [details]
just a single line of fix
Fixed. Thanks. |