Solved

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

Posted on 2004-10-19
5
191 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
Comment Utility
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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now