Problem redirecting appbase on a network drive

2006-10-31 Thread Didier CROUTZ

Hello,

I'm using an Apache Tomcat version 5.5.2 on a Windows XP Pro SP2.

I'm trying to redirect applications directory on a network drive  
mounted with Windows "net use" command.


To do this I've made the following modifications into the server.xml file:
toDeploy="true">

changed to
autoDeploy="true">
The webapps directory content has been copied into H:\Tomcat (H: is a  
network drive).


That doesn't work, "http:\\127.0.0.1:8080\" leads to "nowhere". I've  
done the same operation on a local drive and it worked fine.


Does anybody has an idea about this problem ?

Thanks a lot,
Regards,

Didier Croutz.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat directories location

2006-11-16 Thread Didier Croutz

Hello,

I'm working for an University. Our workstations are unmarked so each 
student is able to work on every workstations. But we must save students 
data on their home directoy wich is a network drive mounted on a Windows 
sharing.


They' ll use Tomcat 5.5.20 so we must configure this software to work 
this network drive.


The first step was to redirect the application directory and the users 
database. I modified the server.xml the following way:


_*server.xml file*_



 
 className="org.apache.catalina.mbeans.ServerLifecycleListener" />
 className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
 className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>


 

   

   type="org.apache.catalina.UserDatabase" description="User database that 
can be updated and saved" 
factory="org.apache.catalina.users.MemoryUserDatabaseFactory" 
pathname="H:/Tomcat/conf/tomcat-users.xml" />


 

 

   minSpareThreads="25" maxSpareThreads="75" enableLookups="false" 
redirectPort="8443" acceptCount="100" connectionTimeout="2" 
disableUploadTimeout="true" />


 enableLookups="false" redirectPort="8443" 
protocol="AJP/1.3" />

   

 resourceName="UserDatabase"/>


 unpackWARs="true" autoDeploy="true" xmlValidation="false" 
xmlNamespaceAware="false">


 

   

 



Moreover we have to start Tomcat not as a service but as a simple 
application with the script below (*). Otherwise Tomcat doesn't 
recognize redirected application directory even if we change the user 
who launch the Tomcat service to the ower of the network drive.


(*) *_Tomcat.bat file_*

/set TOMCAT_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5
set JAVA_HOME=C:\Program Files\Java

"%TOMCAT_HOME%\bin\tomcat5.exe" \
-install "tomcat" \
"%JAVA_HOME%\jre\bin\client\jvm.dll" \
"-Djava.class.path=%TOMCAT_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar" 
\

"-Dcatalina.home=%TOMCAT_HOME%" \
-Xrs -Xms128m -Xmx256m \
-start org.apache.catalina.startup.Bootstrap -params start \
-stop org.apache.catalina.startup.Bootstrap -params stop \
-out "H:\Tomcat\Logs\stdout.log" -err "H:\Tomcat\Logs\stderr.log"
/

That's ok for users database but not all the log files are redirected 
into "H:\Tomcat\Logs", it's the first trouble.


Next I'd like to redirect "temp", "work" and may be "conf" directories 
on the network drive but dont't know how to do this. Anybody can help me ?


Thanks,
Regards,

Didier Croutz.