File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Migration problem Tomcat version 6 to version 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Migration problem Tomcat version 6 to version 7" Watch "Migration problem Tomcat version 6 to version 7" New topic
Author

Migration problem Tomcat version 6 to version 7

Frank Hilhorst
Greenhorn

Joined: Aug 17, 2011
Posts: 6

Guys,

I have a servlet that connects to an (OpenEdge) appserver and passes the response from the appserver on the web stream.

This servlet works beautifully in Tomcat 6.
In Tomcat 7 however it fails to work.

The way the servlet is deployed in Tomcat 6 was:

- Deploy CgiAlt.war in webapps directory
- Start Tomcat 6 (CgiAlt.war get exploded into CgiAlt directory)
- Everything works great

When I follow the same procedure in Tomcat 7 the .war does get exploded but the servlet does not work.

I am attaching a zip file with the following (the zip extension was renamed to .bmp so you have to rename it back to a zip):

1) Log files Tomcat 6
2) Log files Tomcat 7
3) context.xml and web.xml Tomcat 6
4) context.xml and web.xml Tomcat 7

Can anybody tell me why the servlet does not work in Tomcat 7 and what I can do about it.
Any help is greatly appreciated.


[Download ServletIssue.bmp] Download

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3837

Assuming everything is same (in terms of the content of each deployed files) in both servers, Are you able to deploy a simple sample application and get it to run in Tomcat 7?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Frank Hilhorst
Greenhorn

Joined: Aug 17, 2011
Posts: 6

I was able to deploy and run a hello world servlet in TOMCAT 7
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3837

Is the context you are talking about "CgiAlt" and it does not depends on anything else (i.e.:external to the context)?
Frank Hilhorst
Greenhorn

Joined: Aug 17, 2011
Posts: 6


The actual servlet that does not work is hosted at CgiAlt/Cgi.
I am not sure what you mean by "depending on something external to the context".
In Tomcat 6 I just deployed CgiAlt.war started up Tomcat ane everything worked.
Does that answer your question?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3837

What is the file CgiAlt.xml which is being read as per your Tomcat 6 log files are concerned? What is the purpose of this and where is it located? And in your Tomcat 6 logs there's no evidence that a context called "CgiAlt" is deployed successfully either?
And what options you tried deploying the app in Tomcat 7 (i.e.: unpack the WAR inside webapps and restart the tomcat)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migration problem Tomcat version 6 to version 7