Solved

Deploying a war file to Tomcat 4.1.27 RPM install.

Posted on 2004-08-10
5
4,786 Views
Last Modified: 2008-01-09
I am trying to deploy a .war file to Fedora C2, Tomcat 4.1.27, httpd 2.0.49.  All three including the jk2 connector were installed using rpm (apt-get)from the fedora projects.  The examples work fine and everything is redirected correctly.

I have tried the .war in 2 locations '/usr/share/tomcat/server/webapps' and '/var/lib/tomcat/ROOT' neither work/create a dir when tomcat is restarted.

Now come the questions?

1.  What is the path to deploy a .war file

2.  How should the permissions be set for tomcat to deploy the .war

3.  Where are the tomcat errorlogs written to see if the .war is causing an error.

4.  Is there a way (excluding the tomcat manager) to force tomcat to deploy the .war file.

This is the version of tomcat installed with rpm and is not like the bin install.  If anyone has any docs on how the rpm installs tomcat that would also be helpfull.  My test env is running redhat 9 with a standalone tomcat 5 install and i can get it to work no problem.

If im being a DumbA$$ please forgive me.

ps ant is not installed on the system
0
Comment
Question by:HaTe_MaChInE
  • 2
5 Comments
 
LVL 3

Expert Comment

by:yuvalg
ID: 11771694

1.  What is the path to deploy a .war file

<TOMCAT_HOME>/webapps

2.  How should the permissions be set for tomcat to deploy the .war

Read and Execute

3.  Where are the tomcat errorlogs written to see if the .war is causing an error.

The log containing these messages is located at catalina.out

4.  Is there a way (excluding the tomcat manager) to force tomcat to deploy the .war file.

I think there is a mode for hot-deployment, you have to configure your server.xml to support it.

Cheers,
Yuval.
0
 

Author Comment

by:HaTe_MaChInE
ID: 11773119
OK thanks for the help.

1.  What is the TOMCAT_HOME for the Fedora C2 Tomcat 4.1.27 rpm installation.

??/usr/share/tomcat/server/webapps??

2.  There is no file on my system called catalina.out.

0
 
LVL 3

Accepted Solution

by:
yuvalg earned 125 total points
ID: 11774144
The home directory for your installation is  /usr/share/tomcat

Regarding the location of the log.
Your server.xml file (under /usr/share/tomcat/conf) has the following lines :

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>

Make you sure uncomment this xml comment and set the file name you wish.

Yuval.

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now