aspose file tools
The moose likes Tomcat and the fly likes debugging in apache Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "debugging in apache" Watch "debugging in apache" New topic
Author

debugging in apache

shail nig
Greenhorn

Joined: Oct 20, 2003
Posts: 14
hi all,
i am using apache jserv for running servlets on my win98 machine
can i get a solution to debug sevlets using println statements?
i am also trying to find out console to monitor the server?
do i have to restart server every time i change my servers?
how can i write xml documents directly on browser?
shail
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There are quite a few questions in your post, and in lots of different areas.

apache jserv - This is just about as old as you can get, 1999 or earlier. Is there any reason you are not using a newer technology? Tomcat 4.1.27 is what you should be using. Find it here by searching for Tomcat 4

debug servlets It can be as simple as coding 'System.out.println("debug statement");' but I wouldn't personally recommend it. I use log4j and really enjoy it. There is an excellent HOWTO site here

console Are you talking about the console output? I don't know about jserv at all, but in Tomcat, it's in the catalina.out file. If you mean a management console, where you can deploy and examine settings, then Tomcat has two different consoles... a deployer at http://localhost:8080/manager and an admin app at http://localhost:8080/admin

restarting At very least you'll need to reload a single web application when you make a change to a compiled class. Changes to JSP pages are generally noticed immediately without any problems.

xml Kinda off-topic for this forum. But basically, you'd use 'out.println("<xml-tag>");' statements (which is crude) or use an XML API that can construct an XML document through objects and then 'stream' it to the servlet output stream.
shail nig
Greenhorn

Joined: Oct 20, 2003
Posts: 14
Originally posted by Mike Curwen:
There are quite a few questions in your post, and in lots of different areas.

apache jserv - This is just about as old as you can get, 1999 or earlier. Is there any reason you are not using a newer technology? Tomcat 4.1.27 is what you should be using. Find it here by searching for Tomcat 4

debug servlets It can be as simple as coding 'System.out.println("debug statement");' but I wouldn't personally recommend it. I use log4j and really enjoy it. There is an excellent HOWTO site here

console Are you talking about the console output? I don't know about jserv at all, but in Tomcat, it's in the catalina.out file. If you mean a management console, where you can deploy and examine settings, then Tomcat has two different consoles... a deployer at http://localhost:8080/manager and an admin app at http://localhost:8080/admin

restarting At very least you'll need to reload a single web application when you make a change to a compiled class. Changes to JSP pages are generally noticed immediately without any problems.

xml Kinda off-topic for this forum. But basically, you'd use 'out.println("<xml-tag>");' statements (which is crude) or use an XML API that can construct an XML document through objects and then 'stream' it to the servlet output stream.

hi
thanks a lot
i have installed tomcat 4.1.27
but after starting server when i tried to open http://localhost:8080/admin
it said
http status 500
org.apache.jasper.JasperException: Unable to compile class for JSP
why is it coming??
even i will try to do some r&d.
bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: debugging in apache
 
Similar Threads
Create a web development environment
Apache HTTP Server VS Tomcat
Weblogic Web Services query
A basic problem
How to connect to database without password using connection pooling