Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Tomcat 5 trouble viewing standout (system.out.println Statements)??

Hi everybody

This is probably a simple question.
I recently upgraded to Tomcat 5 from 4 and when debugging
 i no longer have a command prompt screen that displays the system.out.println
statements i use in debugging my programs.

I was wondering if it is possible to get this working so it is possible??

Thanks for all your help

Chad
0
Chad_MacArthur
Asked:
Chad_MacArthur
  • 2
1 Solution
 
ronan_40060Commented:
Hello Chad

When you upgrade Tomcat you need to go through the necessary steps
1> Save your configuration files, install a fresh  Tomcat and copy the file over your existing technologies.

The files  I mean are:
- All WAR files in your webapps directory.
- The files in your conf directory.
2> The conf files if you have not upgraded server.xml , web.xml and otheres then its no harm to leave them like that

3> If you have made changes - save a copy of the new files , also you need to  add your changes in the new files - those that came with Tomcat 5. ( you dont need to override them)

For JSPs
When you install a fresh copy of Tomcat  
1>You need to  create a folder name for example myapp in the webapps folder, place your jsp there  i.e <tomcat dir>/webapps/mytestapp
and restart tomcat and try
http://localhost:8080/mytestapp/Hello1.jsp

Copy your WAR files from old version  to the TOMCAT_HOME/webapps directory.


WAR means Web Archive.
its your set of web files (consisted of jsp/servlet, beans, images, other files used by ur web app).
u use jar (included in jar file) to "war" it.
Suppose MyApp is the folder and you have .jps files in it..
In it, you have a sub directory WEB-INF which has web.xml and and a subdirectory classes which contains all the servlet classes or any other java classes.

Then to create a war file, you can do

C:\Tomcat\webapps\MyApp>jar cvf app.war WEB-INF *

or C:\Tomcat\webapps\>jar cvf app.war MyApp/*

Ok When you install a fresh copy of Tomcat , Its likely that your web.xml will be overriden
so let it be
You just need to follow the procedure like above

Ronan
0
 
ronan_40060Commented:
Dear Periwinkle

The solution provided deals with the upgrading issues that comes with Tomcat 4 to 5 , the solution provides the necessary steps to be followed while upgrading to solve any errors.
The Points should be awarded
Thank you
Ronan
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now