LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-07-2008, 12:09 PM   #1
Tyler_H72
Member
 
Registered: May 2008
Distribution: OpenSuSE
Posts: 65

Rep: Reputation: 15
Question Tomcat Deployment Issues


I am having some issues with Tomcat. I am trying to use one of my servers for testing purposes, and am (eventually) going to have automatic deployments of the latest code submitted to my Subversion repository running on this server. I would also like to have an older, stable copy running at all times for customers to try out. For some reason, however, I am having problems deploying them both at the same time. I have created 2 war files, each named differently (one is myApp and one is developmentbuild). I think that the issue stems from the fact that they are the same app (and at this point the same version). I deployed myApp, and it worked fine. I deployed developmentbuild, and I got a 404 error from tomcat when I tried to go to it. I removed myApp, and I could get to developmentbuild just fine. What's more, I have a third war file (completely different application) running, which has no problems whatsoever no matter what other wars I have running. I have searched extensively and found no information that really helped at all. I checked my logs, and the only error that I found (other than one that I already fixed) was that there is some error regarding tld listeners, but from what I found on Google, that seemed to be trivial. If anyone has ANY information at all, I'd REALLY appreciate it, as this is stressing me out to no end- not 10 minutes ago, I had to be physically restrained from stabbing my monitor with a soldering iron. Please help!
 
Old 10-08-2008, 02:42 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Quote:
Originally Posted by Tyler_H72 View Post
I am having some issues with Tomcat. I am trying to use one of my servers for testing purposes, and am (eventually) going to have automatic deployments of the latest code submitted to my Subversion repository running on this server. I would also like to have an older, stable copy running at all times for customers to try out. For some reason, however, I am having problems deploying them both at the same time. I have created 2 war files, each named differently (one is myApp and one is developmentbuild). I think that the issue stems from the fact that they are the same app (and at this point the same version). I deployed myApp, and it worked fine. I deployed developmentbuild, and I got a 404 error from tomcat when I tried to go to it. I removed myApp, and I could get to developmentbuild just fine. What's more, I have a third war file (completely different application) running, which has no problems whatsoever no matter what other wars I have running. I have searched extensively and found no information that really helped at all. I checked my logs, and the only error that I found (other than one that I already fixed) was that there is some error regarding tld listeners, but from what I found on Google, that seemed to be trivial. If anyone has ANY information at all, I'd REALLY appreciate it, as this is stressing me out to no end- not 10 minutes ago, I had to be physically restrained from stabbing my monitor with a soldering iron. Please help!
The only thing I can think about, assuming that your Tomcat server is the exactly same version on both the Test and Production servers, is that whatever Action/JSP/Whatever that your should display first (ex: index.jsp) is not correctly mapped on your web.xml file. I'd start checking there for anything that appears to be wrong. Relative and absolute paths are a very common error.

Well, that is where I'd start looking at. A 404 error just says that the client hit the server fine, but the server was unable to return the request to the client.

X
 
Old 10-08-2008, 04:43 PM   #3
Tyler_H72
Member
 
Registered: May 2008
Distribution: OpenSuSE
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
...your Tomcat server is the exactly same version on both the Test and Production servers...
I apologise- I was unclear before. Both deployments are running on the same server, on the same instance of Tomcat. There is not production release available as of yet- the "stable" version I will be running is solely for the benefit of the customer that we are building the site for.

Quote:
...whatever Action/JSP/Whatever that your should display first (ex: index.jsp) is not correctly mapped on your web.xml file...
This doesn't seem to be a problem, as the paths are all relative and seem to be correct- granted I don't know much about these things at all- although there is one thing that looked odd to me. I'm not sure what kind of problems this can cause, if any, but the <display-name> of each instance is the exact same. As I said, I don't know much about this topic, so I'm not sure what that parameter does, or if it even matters.

Quote:
A 404 error just says that the client hit the server fine, but the server was unable to return the request to the client.
An additional symptom (or at least something that struck me as odd)- in the 404 error, under description, it says "The requested resource () is not available." This seems strange, as in my admittedly limited experience with Tomcat I seem to remember all of my 404 errors listing an actual relative path here. Thanks for the help!

Last edited by Tyler_H72; 10-08-2008 at 04:45 PM.
 
Old 10-09-2008, 02:04 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
I'm not a tomcat expert either, but afaik you cannot deploy more applications to the same uri. You can deploy the 1st on /stable for example and the second on /develop and see they work together
 
Old 10-09-2008, 11:06 AM   #5
Tyler_H72
Member
 
Registered: May 2008
Distribution: OpenSuSE
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
I'm not a tomcat expert either, but afaik you cannot deploy more applications to the same uri. You can deploy the 1st on /stable for example and the second on /develop and see they work together
I'm actually trying to do exactly that- when I said I had them both on the server, I did not mean that I wanted them both on the same url, but rather that they are on the same machine and the same tomcat instance, and I would like to be able to reach them both at the same address with a directory appended to the end, e.g. 127.0.0.1:8080/myApp and 127.0.0.1:8080/testApp
 
Old 10-09-2008, 06:14 PM   #6
Tyler_H72
Member
 
Registered: May 2008
Distribution: OpenSuSE
Posts: 65

Original Poster
Rep: Reputation: 15
I actually solved the problem myself. The problem involved one particular variable in the web.xml file that was identical in both deployments. Once I changed it (and increased the heap size), they worked fine. Thanks for all the suggestions!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in tomcat deployment chnlinux Linux - Newbie 1 08-22-2007 09:12 PM
Apache Tomcat 5.5 install issues. brave heart Red Hat 4 08-05-2007 09:46 PM
Tomcat issues in Fedora Core 4 mharris45 Linux - Software 4 03-07-2007 01:34 PM
Tomcat 5.5.7 War file deployment failure r_debussy Linux - Software 4 06-02-2005 02:45 AM
Tomcat - Web App Deployment JohnCotter Linux - Networking 2 11-09-2003 07:27 AM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration