• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

debugging in apache

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic