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
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
posted
0
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