Solved

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

Posted on 2004-10-19
5
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

710 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