hi hartmut
On Jan 24, 2008 7:35 AM, <[EMAIL PROTECTED]> wrote:
>
>
> Hi guys I'm new in the community... so hello @ all,
>
> I'm running in a classloader problem in following classes:
>
> org.apache.jackrabbit.core.fs.db.OracleFileSystem
> org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager
>
>
> My environment:
>
> JDK 1.4.2_13
> Jackrabbit 1.4
> Tomcat 5.0
> Deployment Model 2: Shared J2EE Resource
>
> My Fix:
> in these both classes I fixed the following section
>
> /**
> * MY BUGFIX classloader
> */
> ClassLoader classLoader = null;
> if ((classLoader=con.getClass().getClassLoader())==null) {
> classLoader = Servlet.class.getClassLoader();
> }
> blobClass = classLoader.loadClass("oracle.sql.BLOB");
>
thanks for feedback. i wasn't aware of this issue.
getClassLoader() invoked on the connection's class seems to
return null in your case, indicating that the jvm's bootstrap
classloader did load the Connection class...
this is IMO very unusual. where is the oracle jdbc driver
(ojdbc14.jar) located in your setup?
WRT your workaround: we would need a more generic way
of obtaining the appropriate classloader instance. Servlet.class
is not necessarily available; if it is available, it's not necessarily
loaded by the same class loader associated with the oracle
jdbc Connection class.
thanks for reporting this issue and please feel free to file a jira issue :)
cheers
stefan
>
> Greetings
>
> Hartmut Zimmermann
>
>
> Phone: +49 621 60-49477, Fax: +49 621 60-78817, E-Mail:
> [EMAIL PROTECTED]
> Postal Address: BASF IT Services GmbH, HS-AA - J660, 67059 Ludwigshafen,
> Germany
>
>
> www.basf-it-services.com
>
>
> BASF IT Services GmbH, Registered Office: 67059 Ludwigshafen, Germany
> Companies' Register: Amtsgericht Ludwigshafen, HRB 3541
> Managing Directors:
> Dr. Kurt Ettmüller, Dr. Ralf Sonnberger
> Chairman of the Supervisory Board: Andrew Pike
>
>