Solved

Deploying a war file to Tomcat 4.1.27 RPM install.

Posted on 2004-08-10
5
4,856 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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