You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Panagiotis Konstantinidis <pa...@hotgen.com> on 2000/11/30 13:26:00 UTC

Tomcat problem. Help!

  Hello there. First of all forgive me if this is the wrong list. I guess
this message could be easily posted on Apache's mailing list as well.
  Now, I am using Apache v1.3.12 and Tomcat v3.1 (for Windows). I have
written a simple JSP program to open a connection with a mySQL database on
the network. The thing is that everytime the line
Class.for("org.gjt.mm.myswl.Driver"); is encountered, Tomcat goes off (and I
get the error message "Internal Server Error. The server encountered an
internal error or misconfiguration and was unable to complete your
request...."). It goes off just like that and everytime I have to start it
up again manually (and everytime it goes off again). I know that this is the
line that causes the problem because I have tried to take it out and
everything is working fine. I have checked the database and the drivers and
everything is fine. Now my question is: Do I have to configure something on
Tomcat that I have not done before? Do I have to configure something on
Apache? Has anybody encountered this problem before? What would be possible
to cause it? I have to say here as well that I checked the Apache's
error.log and I found the error message: "Premature end of script headers:
c:\<filelocation>\<filename>.jsp. What does this mean?

  Thank you in advance.

   Panos

RE: Tomcat problem. Help!

Posted by Saurabh Shukla <sa...@cysphere.com>.
Tomcat problem. Help!Premature end of script header in your case means
something like when apache passed the request to a program/script, it had an
abrupt end and apache didn't get the expected/required response for the
request.

In your case the problem is with tomcat and not apache. Apache passed that
request to tomcat and your jsp failed and hence
you got the error premature end of script header.

Shuklix

  -----Original Message-----
  From: Panagiotis Konstantinidis [mailto:panos@hotgen.com]
  Sent: Thursday, November 30, 2000 5:56 PM
  To: 'tomcat-user@jakarta.apache.org'
  Subject: Tomcat problem. Help!


    Hello there. First of all forgive me if this is the wrong list. I guess
this message could be easily posted on Apache's mailing list as well.

    Now, I am using Apache v1.3.12 and Tomcat v3.1 (for Windows). I have
written a simple JSP program to open a connection with a mySQL database on
the network. The thing is that everytime the line
Class.for("org.gjt.mm.myswl.Driver"); is encountered, Tomcat goes off (and I
get the error message "Internal Server Error. The server encountered an
internal error or misconfiguration and was unable to complete your
request...."). It goes off just like that and everytime I have to start it
up again manually (and everytime it goes off again). I know that this is the
line that causes the problem because I have tried to take it out and
everything is working fine. I have checked the database and the drivers and
everything is fine. Now my question is: Do I have to configure something on
Tomcat that I have not done before? Do I have to configure something on
Apache? Has anybody encountered this problem before? What would be possible
to cause it? I have to say here as well that I checked the Apache's
error.log and I found the error message: "Premature end of script headers:
c:\<filelocation>\<filename>.jsp. What does this mean?

    Thank you in advance.

     Panos