cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HALLOWELL,KARL (HP-Cupertino,ex1)" <karl_hallow...@hp.com>
Subject RE: [c2] class loading problem with a jdbc driver
Date Thu, 19 Jul 2001 23:53:37 GMT
Seems to be worked out. I had to place my oracle jar in the ext directory of
JRE. A big thank you to the Cocoon 2 bug fixers for solving this problem!


Karl Hallowell                 karl_hallowell@hp.com

> -----Original Message-----
> From: HALLOWELL,KARL (HP-Cupertino,ex1) [mailto:karl_hallowell@hp.com]
> 
> I'm having trouble specifying the classpath for a jdbc 
> driver. Here's the
> entry in my web.xml file for loading the jdbc driver:
> 
>     <init-param>
>       <param-name>load-class</param-name>
>       <param-value>
>         <!-- For Oracle Driver: -->
>           oracle.jdbc.driver.OracleDriver
> 
>         <!-- For Database Driver: -->
>         org.hsqldb.jdbcDriver
>       </param-value>
>     </init-param>
> 
> 
> I get the following exception first thing (no previous 
> entries in the log
> file) when I start cocoon. Immediately after the (long) load class
> exception, the log file prints out the full classpath 
> including the jdbc
> driver (it's
> "/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/classes
> 12.zip"). Why
> isn't the class being found (it gets found later when I load relevant
> esql-based xsp pages)? What am I doing wrong?
> 
> 
> Karl Hallowell                 karl_hallowell@hp.com
> 
>  
> 
> 
> DEBUG   46      [cocoon  ] (HttpProcessor[8080][4]): Trying 
> to load class:
> oracl
> e.jdbc.driver.OracleDriver
> WARN    94      [cocoon  ] (HttpProcessor[8080][4]): Could 
> not force-load
> class:
>  oracle.jdbc.driver.OracleDriver
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
>         at java.net.URLClassLoader$1.run(URLClassLoader.java, 
> Compiled Code)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at 
> java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
> Code)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java, 
> Compiled Code)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java, 
> Compiled Code)
>         at 
> org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
>         at
> org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:
> 399)
>         at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java, C
> ompiled Code)
>         at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
> a:602)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:231)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:225)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
>         at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2252)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:164)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 446)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:163)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
> .java, Compiled Code)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a, Compiled Code)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Com
> piled Code)
>         at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
> r.java:875)
>         at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
> va, Compiled Code)
>         at java.lang.Thread.run(Thread.java, Compiled Code)
> DEBUG   332     [cocoon  ] (HttpProcessor[8080][4]): Trying 
> to load class:
> org.h
> sqldb.jdbcDriver
> DEBUG   563     [cocoon  ] (HttpProcessor[8080][4]): 
> extraClassPath is not
> absol
> ute:
> /opt/jakarta-tomcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/lib
> /classes12.zi
> p
> DEBUG   564     [cocoon  ] (HttpProcessor[8080][4]): Using 
> configuration
> file: /
> cocoon.xconf
> INFO    566     [cocoon  ] (HttpProcessor[8080][4]): Reloading from:
> jndi:/local
> host/cocoon/cocoon.xconf
> DEBUG   1147    [cocoon  ] (HttpProcessor[8080][4]): New 
> Cocoon object.
> DEBUG   1148    [cocoon  ] (HttpProcessor[8080][4]): Using parser:
> org.apache.co
> coon.components.parser.JaxpParser
> DEBUG   1261    [cocoon  ] (HttpProcessor[8080][4]): Attempting to get
> Handler f
> or: org.apache.cocoon.components.parser.Parser
> DEBUG   1522    [cocoon  ] (HttpProcessor[8080][4]): Handler type =
> org.apache.a
> valon.excalibur.component.DefaultComponentHandler
> DEBUG   1523    [cocoon  ] (HttpProcessor[8080][4]): Creating 
> Repository
> with th
> is directory: ./../work/localhost/cocoon
> DEBUG   1527    [cocoon  ] (HttpProcessor[8080][4]): Classpath =
> /opt/jakarta-to
> mcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/classes:/opt/jakar
> ta-tomcat-4.0-
> b5/w
> ebapps/cocoon/WEB-INF/lib/Tidy.jar:/opt/jakarta-tomcat-4.0-b5/
> webapps/cocoon
> /WEB
> -INF/lib/avalon-excalibur-4.0b1.jar:/opt/jakarta-tomcat-4.0-b5
> /webapps/cocoo
> n/WE
> B-INF/lib/avalon-framework-4.0b1.jar:/opt/jakarta-tomcat-4.0-b
> 5/webapps/coco
> on/W
> EB-INF/lib/batik-libs.jar:/opt/jakarta-tomcat-4.0-b5/webapps/c
> ocoon/WEB-INF/
> lib/
> bsf.jar:/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/
> classes12.zip:
> /opt
> /jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/cocoon-2.0b1
> .jar:/opt/jaka
> rta-
> tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/cocoon.jar:/opt/jakar
> ta-tomcat-4.0-
> b5/w
> ebapps/cocoon/WEB-INF/lib/dom2.jar:/opt/jakarta-tomcat-4.0-b5/
> webapps/cocoon
> /WEB
> -INF/lib/fop-0_18_1.jar:/opt/jakarta-tomcat-4.0-b5/webapps/coc
> oon/WEB-INF/li
> b/hs
> qldb.jar:/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib
> /jakarta-regex
> p-1.
> 2.jar:/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/ja
> vac.jar:/opt/j
> akar
> ta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/jimi-1.0.jar:/opt/
> jakarta-tomcat
> -4.0
> -b5/webapps/cocoon/WEB-INF/lib/jstyle.jar:/opt/jakarta-tomcat-
> 4.0-b5/webapps
> /coc
> oon/WEB-INF/lib/junit.jar:/opt/jakarta-tomcat-4.0-b5/webapps/c
> ocoon/WEB-INF/
> lib/
> logkit-1.0b1.jar:/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB
> -INF/lib/maybe
> uplo
> ad.jar:/opt/jakarta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/r
> hino.jar:/opt/
> jaka
> rta-tomcat-4.0-b5/webapps/cocoon/WEB-INF/lib/velocity-1.1-rc1.
> jar:/opt/jakar
> ta-t
> omcat-4.0-b5/webapps/cocoon/WEB-INF/lib/xalan-2.1.0.jar:/opt/j
> akarta-tomcat-
> 4.0-
> b5/webapps/cocoon/WEB-INF/lib/xerces_1_4_0.jar:/opt/jakarta-to
> mcat-4.0-b5/we
> bapp
> s/cocoon/WEB-INF/lib/xt.jar:./../bin/bootstrap.jar:/opt/jdk1.2
> .2//lib/tools.
> jar:
> /opt/jakarta-tomcat-4.0-b5/bin/./../webapps/cocoon/WEB-INF/lib
> /classes12.zip
> DEBUG   1529    [cocoon  ] (HttpProcessor[8080][4]): Work directory =
> /opt/jakar
> ta-tomcat-4.0-b5/work/localhost/cocoon
> DEBUG   1530    [cocoon  ] (HttpProcessor[8080][4]): ComponentHandler
> initialize
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message