You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jagan <ja...@unidux.com.sg> on 2001/12/03 07:31:34 UTC

tomcat 4.0

hi!
i am getting the below error
can anybody help me

The error starts here:

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: No suitable driver
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
	at org.apache.jsp.f_0005fleft$jsp._jspService(f_0005fleft$jsp.java:146)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)


root cause 

java.sql.SQLException: No suitable driver
	at java.sql.DriverManager.getConnection(DriverManager.java:537)
	at java.sql.DriverManager.getConnection(DriverManager.java:177)
	at org.apache.jsp.f_0005fleft$jsp._jspService(f_0005fleft$jsp.java:89)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)


Thanks and Best Regards.
Jagan Mohan 
Project Consultant
Unidux Technologies Pte Ltd
(subsidiary of the public-listed Unidux Electronics Ltd)
TEL: (65) 293 4797
FAX: (65) 293 4920 
 

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: tomcat 4.0

Posted by David Smith <dn...@cornell.edu>.
Just a note on the URL after you get the driver working:

> connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"

The connection URL should have an amperstand encoded instead of a semicolon 
before password.  It's unique to MySQL's JDBC driver and isn't done with any 
others that I know of.  Here's the correct URL string:

jdbc:mysql://localhost/authority?user=test&amp;password=test

The & has to be encoded as &amp; per XML spec, but is decoded to & when TC 
contacts the MySQL database.

--David

On Monday 03 December 2001 02:08 am, you wrote:
> hi!
> i am using mysql database
> can the reply given by u solve my problem,
> i aleady placed mysql.jar under
> catalinahome/lib
> if u can pass me the server.xml, web.xml and the changes to be made in
> httpd.conf for creation of new application i will be very thank ful to u,
> before that i want to say what i had done
> 1.i lept my myapplication.war under webapps,
> 2.i restarted tomcat
> 3.then a directory myapplication is creating under webapps
> 4.if i want to create the Context in server.xml
> then the tomcat not starting,
> if i comment the Conttext and restarting it's starting and the error i said
> before is occuring, i changed in httpd.conf also as required.
> One more case :
> if i am uncommenting the Realm for org.gjt.mm.mysql.Driver,
>
>       <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
>              driverName="org.gjt.mm.mysql.Driver"
>          
> connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"
> userTable="users" userNameCol="user_name" userCredCol="user_pass"
> userRoleTable="user_roles" roleNameCol="role_name" />
> the server is not restarting,
> so i think my changes are not proper in server.xml,
> so please guide me in this
> jagan
>
>
> -----Original Message-----
> From: Nikola Milutinovic [mailto:Nikola.Milutinovic@ev.co.yu]
> Sent: Monday, December 03, 2001 2:59 PM
> To: Tomcat Users List
> Subject: Re: tomcat 4.0
>
> > i am getting the below error
> > can anybody help me
> >
> > The error starts here:
> >
> > type Exception report
> >
> > message Internal Server Error
> >
> > description The server encountered an internal error (Internal Server
> > Error) that prevented it from fulfilling this request.
> >
> > exception
> >
> > javax.servlet.ServletException: No suitable driver
>
> JDBC error indicating that a driver class for your desired JDBC connection
> has not been registered. For PostgreSQL the process is relatively simple:
>
> - add postgres-jdbc.jar to a classpath (in Tomcat, place it under
> $CATALINA_HOME/common/lib - load the driver with: "Class.forName(
> "org.postgresql.Driver" )
>
> I'd expct other dirvers to be similar.
>
> Nix.
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: tomcat 4.0

Posted by Jagan <ja...@unidux.com.sg>.
hi!
i am using mysql database
can the reply given by u solve my problem,
i aleady placed mysql.jar under
catalinahome/lib
if u can pass me the server.xml, web.xml and the changes to be made in httpd.conf for creation of new application
i will be very thank ful to u,
before that i want to say what i had done
1.i lept my myapplication.war under webapps,
2.i restarted tomcat
3.then a directory myapplication is creating under webapps
4.if i want to create the Context in server.xml
then the tomcat not starting,
if i comment the Conttext and restarting it's starting and the error i said before is occuring,
i changed in httpd.conf also as required.
One more case :
if i am uncommenting the Realm for org.gjt.mm.mysql.Driver,

      <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
             driverName="org.gjt.mm.mysql.Driver"
          connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"
              userTable="users" userNameCol="user_name" userCredCol="user_pass"
          userRoleTable="user_roles" roleNameCol="role_name" />
the server is not restarting,
so i think my changes are not proper in server.xml,
so please guide me in this
jagan


-----Original Message-----
From: Nikola Milutinovic [mailto:Nikola.Milutinovic@ev.co.yu]
Sent: Monday, December 03, 2001 2:59 PM
To: Tomcat Users List
Subject: Re: tomcat 4.0


> i am getting the below error
> can anybody help me
>
> The error starts here:
>
> type Exception report
>
> message Internal Server Error
>
> description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: No suitable driver

JDBC error indicating that a driver class for your desired JDBC connection has not been registered. For PostgreSQL the process is
relatively simple:

- add postgres-jdbc.jar to a classpath (in Tomcat, place it under $CATALINA_HOME/common/lib
- load the driver with: "Class.forName( "org.postgresql.Driver" )

I'd expct other dirvers to be similar.

Nix.


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: tomcat 4.0

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> i am getting the below error
> can anybody help me
> 
> The error starts here:
> 
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
> 
> exception 
> 
> javax.servlet.ServletException: No suitable driver

JDBC error indicating that a driver class for your desired JDBC connection has not been registered. For PostgreSQL the process is relatively simple:

- add postgres-jdbc.jar to a classpath (in Tomcat, place it under $CATALINA_HOME/common/lib
- load the driver with: "Class.forName( "org.postgresql.Driver" )

I'd expct other dirvers to be similar.

Nix.

RE: Running Tomcat 4.0 on Win98

Posted by William Tansill <wt...@erols.com>.
I've got Tomcat 4.01 set up on Win98 as well, and it's working fine at least
w/respect to starting.  The key I've found is to use the Windows start menu
to light things up rather than opening a command window and running the
batch files.

-----Original Message-----
From: Steve [mailto:steve@intexch.com]
Sent: Monday, December 03, 2001 11:35 AM
To: Tomcat Users List
Subject: Running Tomcat 4.0 on Win98


I am using Tomcat 4.0 and JDK 1.3.1. with a Win98 OS. I believe I have my
JAVA_HOME, and CLASSPATH set properly but my Apache web server and Tomcat
are not compiling the JSP files. I think the problem is the catalina.bat
file. The catalina.bat file looks for an NT environment. If it finds NT
than it gives a   "C:\%JAVA_HOM%bin\catalina java" command to activate
Java. If it does not find NT than it gives   a "C:\%JAVA_HOM%bin\java"
which doesn't work because java.exe need arguments. Therefore  my tools.jar
is not activated and my *.jsp files are not compiled even though I copied
the tools.jar file  to my C:\jakarta-tomcat-4.0.1\lib folder. Any ideas?

    -- Steve
    www.intexch.com



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Running Tomcat 4.0 on Win98

Posted by Steve <st...@intexch.com>.
I am using Tomcat 4.0 and JDK 1.3.1. with a Win98 OS. I believe I have my 
JAVA_HOME, and CLASSPATH set properly but my Apache web server and Tomcat 
are not compiling the JSP files. I think the problem is the catalina.bat 
file. The catalina.bat file looks for an NT environment. If it finds NT 
than it gives a   "C:\%JAVA_HOM%bin\catalina java" command to activate 
Java. If it does not find NT than it gives   a "C:\%JAVA_HOM%bin\java" 
which doesn't work because java.exe need arguments. Therefore  my tools.jar 
is not activated and my *.jsp files are not compiled even though I copied 
the tools.jar file  to my C:\jakarta-tomcat-4.0.1\lib folder. Any ideas?

    -- Steve
    www.intexch.com
     


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>