Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for Matthew Moodie

 
chris coleman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Matthew,

So it looks like you're good at Tomcat..?

Here are two question for you !

Does your book offer a guide on painlessly upgrading from TOmcat 4 to 5 on multiple platforms..?? (linux, windows, solaris, etc... )

And does your book have a troubleshooting guide, for example, what do you do when tomcat processes JSP's on one virtual host, and NOT on another virtual host ???
 
Matthew Moodie
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

No, the book does not discuss the upgrading process.

There are troubleshooting sections throughout the book, though the virtual hosting chapter doesn't discuss the specific problem you mention. Is this a problem you are having just now?

Matt
 
chris coleman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Matthew it is a problem right now, running on Tomcat 4.1.27

Details:

One of the apache virtualhosts is sending JSP's to tomcat for processing, and the JSP's are running as they are supposed to.

The other virtual host: when I put the same line in the virtual host section of apache's httpd.conf for this host (the line is "JkMount /*.jsp ajp13"), tomcat is activated, but for ANY AND ALL jsp's, it shows ONLY the tomcat welcome page ?! "If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!" And all the images on this welcome page are broken ?!

How do you cure this problem ??

Do you have an idea, a solution, or a troubleshooting procedure ??
 
Matthew Moodie
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In this case, are you using the same Tomcat instance to serve both Apache virtual hosts or are there two instances of Tomcat running?

Also, do you have virtual hosting set up on Tomcat as well as Apache? This is required if you are using more than one host with an Apache/Tomcat setup.

Matt
 
chris coleman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. There is only one instance of TOmcat running... in other words, only one JVM process is running Tomcat..

2. I have not setup virtual hosting in Tomcat, so obviously this is where I will look first.

DOes your book have a section on How to setup virtual hosting in TOmcat ??

Are Tomcat 4 and Tomcat 5 the same when it comes to setting up virtual hosting ??

[ March 03, 2005: Message edited by: chris coleman ]
[ March 03, 2005: Message edited by: chris coleman ]
 
Matthew Moodie
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes, I would start by trying virtual hosting on Tomcat. If there is only one virtual machine running both hosts, then configure another host in server.xml.

The book does have a chapter on virtual hosting on Tomcat 5, though for a quick intro to Tomcat 4, the docs are fine:

Tomcat 4 Host Config

Replicate all the context information in this host.

Matt
 
chris coleman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew, that was it.

I manually copied a new <Host> tag into the correct spot in server.xml and set its parameter values to correspond to that particular apache virtual host, and now Tomcat 4.1.27 is correctly running JSP code.

Thanks mate.

I will upgrade to Tomcat 5 when your book arrives...


Chris Coleman
 
Matthew Moodie
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Excellent. I'm glad to be of help.

Matt

P.S. Congratulations on the win too.
[ March 07, 2005: Message edited by: Matthew Moodie ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic