You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Liu, Dongqi" <Li...@divinvest.com> on 2002/02/11 15:38:03 UTC

No Suitable JDBC Driver Found when running Tomcat 4 .0 as NT serv ice with JDK1.3.1_01

Hi All,

I posted this problem a few days ago but didn't get any reponse. I am
reposting
it here just to draw enough attention and hopefull somebody out there can
lead me
to a solution.

My problem is that when Tomcat is running as a NT service, it complains
"no suitable JDBC Driver found". However, when I start up Tomcat4.0 from
command line using exactly the same set up, everything works fine. The
driver
class loads fine in Tomcat Service, since I did a

Class.forName("COM.ibm.db2.jdbc.app.DB2Driver") 

without getting any exceptions.

I am using Tomcat 4.0 with JDK1.3.1_01 on a NT box,

thanks,

-dongqi


CONFIDENTIALITY NOTICE
----------------------
This transmission is intended for the sole use of the individual
and/or entity to whom it is addressed, and may contain information
and/or attachments that are privileged, confidential and exempt from
disclosure under applicable law.  If the reader of this transmission
is not the intended recipient, you are hereby notified that any
disclosure, dissemination, distribution, duplication or the taking of
any action in reliance on the contents of this transmission by someone
other than the intended addressee or its designated agent is strictly
prohibited.  If your receipt of this transmission is in error, please
notify the sender by replying immediately to this transmission and
destroy the transmission.  Thank you.
(MSWPR1/ODpt)


--
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.2 *RELEASE* to fix bugs, OR is it?

Posted by Al-Qalb el-Mounir <fa...@yahoo.com>.
I am testing with mod_jk. What TC library that is out
dated? I made sure to copy the right ones. Even one I
started tomcat after expanding the gz file it did not
work with cocoon.

Any ideas?

--- jean-frederic clere
<jf...@fujitsu-siemens.com> wrote:
> Al-Qalb el-Mounir wrote:
> > 
> > I had Tomcat 4.0.2beta working fine with
> > apache1.3.22ssl on RHLinux 7.1. Last night I saw
> the
> > announcement that the release of 4.0.2 is out. So
> I
> > rushed and downloaded it and copied over all my
> old
> > jar files in the common, server and lib
> directories.
> 
> may be you copied some old TC jar files instead
> yours?
> 
> > I
> > thought since it is the release of the same
> version so
> > why not. I restarted tomcat and all I was getting
> is
> > the following error. I can not execute any jsp
> file,
> > servlet, and of course xml.
> > 
> > Any clues?
> 
> Strange the watchdog tests run OK on my machine:
> +++
>      [java]  [watchdog] *** 180 TEST(S) PASSED! ***
>      [java]  [watchdog] *** 2 TEST(S) FAILED! ***
> +++
> Well the 2 failed are due to an outdated
> TagLibraries ;-) and that is a
> standalone TC.
> 
> With what are you testing mod_webapp or mod_jk?
> 
> > 
> > javax.servlet.ServletException: Servlet.init() for
> > servlet jsp threw exception
> >         at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >         at
> >
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
> >         at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
> >         at
> >
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
> >         at
> >
>
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
> >         at
> >
>
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
> >         at
> >
>
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
> >         at
> >
>
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
> >         at
> >
>
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
> >         at
> >
>
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
> >         at
> >
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
> >         at
> >
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
> >         at
> >
>
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
> >         at
> >
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> >         at
> >
>
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
> >         at
> >
>
org.apache.catalina.core.StandardService.start(StandardService.java:388)
> >         at
> >
>
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
> >         at
> >
>
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> >         at
> >
>
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> >         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)
> > ----- Root Cause -----
> > java.lang.NoSuchMethodError
> >         at
> >
>
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
> >         at
> >
>
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:139)
> >         at
> >
>
org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:345)
> >         at
> >
>
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
> >         at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
> >         at
> >
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
> >         at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
> >         at
> >
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
> >         at
> >
>
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
> >         at
> >
>
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
> >         at
> >
>
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
> >         at
> >
>
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
> >         at
> >
>
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
> >         at
> >
>
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
> >         at
> >
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
> >         at
> >
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
> >         at
> >
>
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
> >         at
> >
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> >         at
> >
>
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
> >         at
> >
>
org.apache.catalina.core.StandardService.start(StandardService.java:388)
> >         at
> >
>
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
> >         at
> >
>
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> >         at
> >
>
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> >         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)
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE Valentine eCards with Yahoo! Greetings!
> > http://greetings.yahoo.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>
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
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.2 *RELEASE* to fix bugs, OR is it?

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Al-Qalb el-Mounir wrote:
> 
> I had Tomcat 4.0.2beta working fine with
> apache1.3.22ssl on RHLinux 7.1. Last night I saw the
> announcement that the release of 4.0.2 is out. So I
> rushed and downloaded it and copied over all my old
> jar files in the common, server and lib directories.

may be you copied some old TC jar files instead yours?

> I
> thought since it is the release of the same version so
> why not. I restarted tomcat and all I was getting is
> the following error. I can not execute any jsp file,
> servlet, and of course xml.
> 
> Any clues?

Strange the watchdog tests run OK on my machine:
+++
     [java]  [watchdog] *** 180 TEST(S) PASSED! ***
     [java]  [watchdog] *** 2 TEST(S) FAILED! ***
+++
Well the 2 failed are due to an outdated TagLibraries ;-) and that is a
standalone TC.

With what are you testing mod_webapp or mod_jk?

> 
> javax.servlet.ServletException: Servlet.init() for
> servlet jsp threw exception
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>         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)
> ----- Root Cause -----
> java.lang.NoSuchMethodError
>         at
> org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
>         at
> org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:139)
>         at
> org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:345)
>         at
> org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>         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)
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.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>


Tomcat 4.0.2 *RELEASE* to fix bugs, OR is it?

Posted by Al-Qalb el-Mounir <fa...@yahoo.com>.
I had Tomcat 4.0.2beta working fine with
apache1.3.22ssl on RHLinux 7.1. Last night I saw the
announcement that the release of 4.0.2 is out. So I
rushed and downloaded it and copied over all my old
jar files in the common, server and lib directories. I
thought since it is the release of the same version so
why not. I restarted tomcat and all I was getting is
the following error. I can not execute any jsp file,
servlet, and of course xml.

Any clues?

javax.servlet.ServletException: Servlet.init() for
servlet jsp threw exception
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        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)
----- Root Cause -----
java.lang.NoSuchMethodError
        at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
        at
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:139)
        at
org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:345)
        at
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        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)


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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


Re: No Suitable JDBC Driver Found when running Tomcat 4 .0 as NT service with JDK1.3.1_01

Posted by Anja Falkner <an...@fimedia.de>.
Hi,

use the method
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance()
to load you driver.

The 'no suitable driver' error is no Tomcat or Java-Problem. The driver is
properly registered at the Java DriverManager. But the DriverManager does
not see, that you can connect to a DB2 with it.

Hope it helps.

Anja


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


Re: No Suitable JDBC Driver Found when running Tomcat 4 .0 as NT service with JDK1.3.1_01

Posted by tarunjava <ta...@yahoo.com>.
what must be happening is that u are putting the driver classpath in
"autoexec.bat" or soem other batch file which is executeds after the tomcat
begins as a servie so u get the error but after the complete booting
autoexec file is executed and then the driver is in the classpath so u dont
get the error. Simply put the driver in the path of tomcat which may be
/catalina/classes or /catalina/server/classes and it should woirk
tarun
----- Original Message -----
From: "Liu, Dongqi" <Li...@divinvest.com>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Monday, February 11, 2002 8:08 PM
Subject: No Suitable JDBC Driver Found when running Tomcat 4 .0 as NT
service with JDK1.3.1_01


>
> Hi All,
>
> I posted this problem a few days ago but didn't get any reponse. I am
> reposting
> it here just to draw enough attention and hopefull somebody out there can
> lead me
> to a solution.
>
> My problem is that when Tomcat is running as a NT service, it complains
> "no suitable JDBC Driver found". However, when I start up Tomcat4.0 from
> command line using exactly the same set up, everything works fine. The
> driver
> class loads fine in Tomcat Service, since I did a
>
> Class.forName("COM.ibm.db2.jdbc.app.DB2Driver")
>
> without getting any exceptions.
>
> I am using Tomcat 4.0 with JDK1.3.1_01 on a NT box,
>
> thanks,
>
> -dongqi
>
>
> CONFIDENTIALITY NOTICE
> ----------------------
> This transmission is intended for the sole use of the individual
> and/or entity to whom it is addressed, and may contain information
> and/or attachments that are privileged, confidential and exempt from
> disclosure under applicable law.  If the reader of this transmission
> is not the intended recipient, you are hereby notified that any
> disclosure, dissemination, distribution, duplication or the taking of
> any action in reliance on the contents of this transmission by someone
> other than the intended addressee or its designated agent is strictly
> prohibited.  If your receipt of this transmission is in error, please
> notify the sender by replying immediately to this transmission and
> destroy the transmission.  Thank you.
> (MSWPR1/ODpt)
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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