• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Migration problem Tomcat version 6 to version 7

 
Greenhorn
Posts: 6
jQuery Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Filename: ServletIssue.bmp
File size: 8 Kbytes
 
Bartender
Posts: 4101
63
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Frank Hilhorst
Greenhorn
Posts: 6
jQuery Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to deploy and run a hello world servlet in TOMCAT 7
 
Vijitha Kumara
Bartender
Posts: 4101
63
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
jQuery Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4101
63
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!