war files not deploying on redhat
Hello, I have read the documentation and searched the archives, and whatever I have found, I have tried, but still my .war files will not unpack and auto deploy. I have been running a tomcat server for several months in which the .war files unpacked and auto-deployed perfectly. But with this new installation, the Redhat way, with files all over the place, I have not been able to make it work. I am using Tomcat 5.0.28 via an rpm on Redhat EL 3. I am accessing the tomcat server via apache and the jk2 connector. I have the server.xml file configured with: Host name=localhost debug=0 appBase=webApps unpackWARs=true AutoDeploy=true xmlValidation=false xmlNamespaceAware=false My application has its context.xml file in the META-INF directory correctly pointing to the appname, /copse. I have an xml file in /etc/tomcat5/Catalina/localhost/copse.xml which has in it: Context docBase=${catalina.home}/build/copse.war privileged=true antiResourceLocking=false antiJARLocking=false/Context The /webapps directory and its contents are owned by tomcat, the tomcat process owner. root has CATALINA_HOME in its environment, set to /usr/share/tomcat5. I have a link in /usr/share/tomcat5 to /var/lib/tomcat5/build, which contains the copse.war file. tomcat has read and write privs for this build/ directory and all its files. The differences between my working installation and the 'broken' one seem to be: 1. root owned the instance of tomcat in the working version, tomcat owns the instance of tomcat in the broken one 2. file permissions were not all tomcat rw in the broken one, but this I have fixed now - as far as I know all relevant files are owned by tomcat 3. CATALINA_HOME wasn't set properly for root at first in the 'broken' install - but this also has been fixed (I believe). It points to the directory that holds all the softlinks to the other directories, such as conf, webapps, build, and so on. I have resorted to unpacking the war file myself, and the application works. But unpacking by hand is cumbersome and time-consuming. Does anyone have the (I presume simple) key to unlock this problem? Thanks, Paul
RE: war files not deploying on redhat
Hi, I don't know if it was just a typo in your post, but AutoDeploy should be |autoDeploy. -- Edgar Alves Thanks for the quick answer and sharp eye - but it WAS a typo, sorry! In the server.xml file, it is listed as autoDeploy=true. It is the basic server.xml file, not really altered by me, and almost exactly matches the server.xml file on the other machine, the one that works. Thanks, Paul | Paul Warner wrote: Hello, I have read the documentation and searched the archives, and whatever I have found, I have tried, but still my .war files will not unpack and auto deploy. I have been running a tomcat server for several months in which the .war files unpacked and auto-deployed perfectly. But with this new installation, the Redhat way, with files all over the place, I have not been able to make it work. I am using Tomcat 5.0.28 via an rpm on Redhat EL 3. I am accessing the tomcat server via apache and the jk2 connector. I have the server.xml file configured with: Host name=localhost debug=0 appBase=webApps unpackWARs=true AutoDeploy=true xmlValidation=false xmlNamespaceAware=false My application has its context.xml file in the META-INF directory correctly pointing to the appname, /copse. I have an xml file in /etc/tomcat5/Catalina/localhost/copse.xml which has in it: Context docBase=${catalina.home}/build/copse.war privileged=true antiResourceLocking=false antiJARLocking=false/Context The /webapps directory and its contents are owned by tomcat, the tomcat process owner. root has CATALINA_HOME in its environment, set to /usr/share/tomcat5. I have a link in /usr/share/tomcat5 to /var/lib/tomcat5/build, which contains the copse.war file. tomcat has read and write privs for this build/ directory and all its files. The differences between my working installation and the 'broken' one seem to be: 1. root owned the instance of tomcat in the working version, tomcat owns the instance of tomcat in the broken one 2. file permissions were not all tomcat rw in the broken one, but this I have fixed now - as far as I know all relevant files are owned by tomcat 3. CATALINA_HOME wasn't set properly for root at first in the 'broken' install - but this also has been fixed (I believe). It points to the directory that holds all the softlinks to the other directories, such as conf, webapps, build, and so on. I have resorted to unpacking the war file myself, and the application works. But unpacking by hand is cumbersome and time-consuming. Does anyone have the (I presume simple) key to unlock this problem? Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
no startup.sh
Hello, I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. I also have tomcat3.3 installed on this system. I didn't take the time to uninstall, since rpm -e claimed it couldn't find the installation, and I wanted a demo ready by tomorrow. Any help would be appreciated. Paul Warner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: no startup.sh
Thanks, Yoav! Yes, the tar.gz install worked just fine. Must be a problem with the rpm version. Thanks for the help. Paul --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, I don't have any experience with the rpm, so I'd suggest using another distribution (the .gz or .zip one) in a clean directory, not overwriting any existing installation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:04 AM To: [EMAIL PROTECTED] Subject: no startup.sh Hello, I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. I also have tomcat3.3 installed on this system. I didn't take the time to uninstall, since rpm -e claimed it couldn't find the installation, and I wanted a demo ready by tomorrow. Any help would be appreciated. Paul Warner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: no startup.sh
You are correct - the tomcat4 executable is in /usr/bin, and tomcat4 start does initiate the startup process (although it aborts with some errors - needs configuring). I am going to use the tar.gz binary distribution as you (and Yoav) recommend - but I see that the rpm version may work with some loving care. Thanks for the info, Paul --- Jon Roberts [EMAIL PROTECTED] wrote: The rpm is very different, and mysteriously only has .jar files in the /bin directory. I believe you'll find tomcat startup commands in /usr/bin, but you can check the initialization script in /etc/init.d to find the commands for sure. I wrestled with the rpm for a while, but switched to the binary distribution based on many suggestions from this list. Exactly nobody was able to help me with the rpm. I recommend using the binary version. Jon Roberts www.mentata.com Paul Warner wrote: I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]