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

Tomcat service does not recognize resources from a network shared drive..

           Summary: Tomcat service does not recognize resources from a
                    network shared drive..
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

As is known to set up a new web application in Tomcat 4.x we need to add a new 
<context/> element in server.xml (under a <host/>)
So I added:
<Context path="/StrutsAPI" docBase="F:/Users/VDondeti/PTH-
PC0114_D_drive_10Aug2002/1Sunday/StutsAPI" reloadable="false"  debug="0" 
privileged="true" crossContext="false"/>

The F:/ in the doc base points to a network drive shared in my profile as F:

When I start up tomcat via the batch file (startup.bat), I can browse to the 
new context (http://localhost:8090/StrutsAPI ). No problem with that.
However if I start the Tomcat Server as WindowsNT service, it cannot start up 
the new context.
(looking at the log files generated, it seems like the bootstrap classloader 
cannot read the network drive. A snap shot of the error log is:

2002-09-30 13:52:58 StandardContext[/StrutsAPI]: Error initializing resources: 
Document base F:\Users\VDondeti\PTH-PC0114_D_drive_10Aug2002\1Sunday\StrutsAPI 
does not exist or is not a readable directory
2002-09-30 13:52:58 StandardContext[/StrutsAPI]: Context startup failed due to 
previous errors
2002-09-30 13:52:58 StandardContext[/StrutsAPI]: Exception during cleanup after 
start failed
LifecycleException:  Container StandardContext[/StrutsAPI] has not been started
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
        at org.apache.catalina.core.StandardContext.stop
(StandardContext.java:3451)
        at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3408)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:343)
        at org.apache.catalina.core.StandardService.start
(StandardService.java:388)
        at org.apache.catalina.core.StandardServer.start
(StandardServer.java:506)
        at org.apache.catalina.startup.CatalinaService.start
(CatalinaService.java:261)
        at org.apache.catalina.startup.CatalinaService.execute
(CatalinaService.java:172)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.BootstrapService.main
(BootstrapService.java:428)

If I move the network content to my local hard disk and change the docBase 
accordingly everything works perfect.

Any clues why the Tomcat service behaves in this peculiar way...

PS: The Tomcat service is configured to start automatically.
Even then I manually stopped and restarted it. Even then Tomcat service is 
unable to load the resources from the network share.

rgds
G1

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

Reply via email to