Solved

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

Posted on 2004-10-19
5
195 Views
Last Modified: 2010-03-04
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
Comment
Question by:Chad_MacArthur
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
ronan_40060 earned 125 total points
ID: 12346138
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
 
LVL 9

Expert Comment

by:ronan_40060
ID: 12568727
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question