Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deploying a war file to Tomcat 4.1.27 RPM install.

Posted on 2004-08-10
5
Medium Priority
?
4,932 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 500 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
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.
Integration Management Part 2
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

886 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