Tomcat 4.1.24: details of ServletExceptions

2003-08-14 Thread Freek Segers
Hello,

I've been developing with Tomcat and Struts from about a year and a 
half now. Ever since I started using Tomcat 4.1 I don't get very much 
information when a ServletException occurs in a JSP page. The error 
page just says that there was a JspException caused by a 
ServletException but there's no clue to what actually went wrong.

Is this a configuration matter? I've already set the Jasper 
configuration parameter logVerbosityLevel to DEBUG, but that doesn't 
help (The JSPs are compiled allright.)

I would appreciate some help; developing like this is a trial and error 
process.

Thanks,

Freek Segers
Senior Systeemontwikkelaar
NEROC 'MEDIAWARE
De Run 1131
5503 LB  Veldhoven
T +31 (0)40 258 66 66
F +31 (0)40 258 66 77
E-mail: [EMAIL PROTECTED]
Internet: http://www.nerocmediaware.nl


Re: tomcat shutdown

2003-08-14 Thread Freek Segers
Hi,

I've had this a couple of times. Took me quite a while to figure out 
what was wrong.
With me it turned out that Tomcat hadn;t fully started yet when I was 
issuing the shutdown command.
The reason was that when starting up Tomcat needs to parse several 
XML-files. These may have references to DTDs in them. By default the 
web.xml file needs to retrieve the DTD from the Sun website. When this 
website isn't responding Tomcat (or rather the XML parser) is waiting 
for a timeout. When that finally happens you'll see an exception in 
your log files. After that you can shutdown. I've seen timeots as long 
as 5 minutes (!).

You can of course force tomcat to stop by usinig the kill command if 
you're on a Unix box.
But this doesn.t solve the problem that Tomcat doesn't startup 
correctly.

Hope this helps,

Freek

On dinsdag, aug 12, 2003, at 17:04 Europe/Amsterdam, Chris Daly wrote:

hi

i have two instances of tomcat runnign as a stand olone but on 
different ports - i can neither stop nor start either tomcat as all 
that i'm getting is

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
  at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.init(Socket.java:273)
at java.net.Socket.init(Socket.java:100)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at 
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

how do i stop the service  ?  i'm trying to use bin/shutdown.sh but 
its not working.

i have two instances of tomcat runnign as a stand olone but on 
different ports

cheers

chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Freek Segers
Senior Systeemontwikkelaar
NEROC 'MEDIAWARE
De Run 1131
5503 LB  Veldhoven
T +31 (0)40 258 66 66
F +31 (0)40 258 66 77
E-mail: [EMAIL PROTECTED]
Internet: http://www.nerocmediaware.nl