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=27216>.
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=27216

Problem start app with document base containing spaces

           Summary: Problem start app with document base containing spaces
           Product: Tomcat 5
           Version: 5.0.19
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps:Manager
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a webapp in a directory called '/local/arena/with space'. To deploy it, I
issue a manager command:
http://localhost:8084/manager/deploy?config=file:/local/arena/with%20space/META-INF/context.xml&war=file:/local/arena/with%20space/

First try works, but when I restart the server, this context cannot be started
and I get:

org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /local/arena/with%20space does
not exist or is not a readable directory

org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185)
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3858)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4085)

The content of Catalina/localhost/with_space.xml after deployment is:
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/local/arena/with%20space/" path="/with_space"/>

If I change it manually to:
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/local/arena/with space/" path="/with_space"/>

it starts working.

See also:
http://www.netbeans.org/issues/show_bug.cgi?id=40437

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to