Thanks Duncan After realizing that the running as a service I decided to run it from the startup command, which worked.
thanks, Daniel Schulken ----- Original Message ----- From: "Duncan Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, December 12, 2003 8:13 AM Subject: Re: Problems using Files from a central machine > The problem is, tomcat is running as a service and as such does not have access to the drives that are mapped when > you are logged on. > > The way arround it is the use the full path of the server. > > eg: //hostname/sharename/sites\biteme > > Hope this helps > - Duncan > www.pennymail.com > > [EMAIL PROTECTED] wrote: > > > system config: > > 2 machines > > both are win2k boxes > > > > machine 1 has apache with tomcat 5.0.16 > > and jk mod the webapps/files and content are on this box > > machine 2 has just tomcat 5.0.16 > > > > both machines can serve local files but i want them to use a central server (just have the files on one machine) > > > > the server xml file for machine 1 is: > > <Server port="11005" shutdown="SHUTDOWN" debug="0"> > > <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" > > debug="0"/> > > <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > > debug="0"/> > > <GlobalNamingResources> > > <Resource name="UserDatabase" auth="Container" > > type="org.apache.catalina.UserDatabase" > > description="User database that can be updated and saved"> > > </Resource> > > <ResourceParams name="UserDatabase"> > > <parameter> > > <name>factory</name> > > <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> > > </parameter> > > <parameter> > > <name>pathname</name> > > <value>conf/tomcat-users.xml</value> > > </parameter> > > </ResourceParams> > > </GlobalNamingResources> > > <Service name="Tomcat-Standalone"> > > <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > > enableLookups="false" redirectPort="8443" acceptCount="100" > > debug="0" connectionTimeout="20000" > > disableUploadTimeout="true" /> > > > > <Connector port="11009" > > enableLookups="false" redirectPort="8443" debug="0" > > protocol="AJP/1.3" /> > > <Engine jvmRoute="tomcat1" name="Tomcat-Standalone" defaultHost="etrak-plus.com" debug="0"> > > <Logger className="org.apache.catalina.logger.FileLogger" > > prefix="catalina_log." suffix=".txt" > > timestamp="true"/> > > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > > debug="0" resourceName="UserDatabase"/> > > <Host name="etrak-plus.com" debug="0" appBase="g:/sites/thesportsregister/" > > unpackWARs="true" autoDeploy="true"> > > <Alias>www.etrak-plus.com</Alias> > > <Context path="/" docBase="/" debug="0"/> > > <Logger className="org.apache.catalina.logger.FileLogger" > > directory="c:/home/sites/thesportsregister/logs" prefix="thesportsregister.com_log." suffix=".txt" > > timestamp="true"/> > > </Host> > > </Engine> > > </Service> > > </Server> > > the server.xml file for machine 2 is: > > > > <Server port="11005" shutdown="SHUTDOWN" debug="0"> > > <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" > > debug="0"/> > > <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > > debug="0"/> > > <GlobalNamingResources> > > <Resource name="UserDatabase" auth="Container" > > type="org.apache.catalina.UserDatabase" > > description="User database that can be updated and saved"> > > </Resource> > > <ResourceParams name="UserDatabase"> > > <parameter> > > <name>factory</name> > > <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> > > </parameter> > > <parameter> > > <name>pathname</name> > > <value>conf/tomcat-users.xml</value> > > </parameter> > > </ResourceParams> > > </GlobalNamingResources> > > <Service name="Catalina"> > > <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > > enableLookups="false" redirectPort="8443" acceptCount="100" > > debug="0" connectionTimeout="20000" > > disableUploadTimeout="true" /> > > <Connector port="11009" > > enableLookups="false" redirectPort="8443" debug="0" > > protocol="AJP/1.3" /> > > <Engine jvmRoute="tomcat2" name="Tomcat-Standalone" defaultHost="etrak-plus.com" debug="0"> > > <Logger className="org.apache.catalina.logger.FileLogger" > > prefix="catalina_log." suffix=".txt" > > timestamp="true"/> > > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > > debug="0" resourceName="UserDatabase"/> > > <Host name="etrak-plus.com" debug="0" appBase="H:/sites/biteme" > > unpackWARs="true" autoDeploy="true"> > > <Alias>www.etrak-plus.com</Alias> > > <Context path="/" docBase="/" debug="0"/> > > <Logger className="org.apache.catalina.logger.FileLogger" > > directory="H:/sites/biteme/logs" prefix="localhost_log." suffix=".txt" > > timestamp="true"/> > > </Host> > > </Engine> > > </Service> > > </Server> > > > > where H:/ is mapped to the c drive of the other machine. > > > > error i recive when starting server 2: > > > > java.lang.IllegalArgumentException: Document base H:\sites\biteme does not exist or is not a readable directory > > at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:18 5) > > at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java :3851) > > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4073) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:816) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) > > at org.apache.catalina.core.StandardService.start(StandardService.java:519) > > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:581) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > > > > oh and the permissions on the directorys and files are such that everone can get at the files > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.550 / Virus Database: 342 - Release Date: 12/10/2003 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 12/10/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
