Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleStatement

0 views
Skip to first unread message

Antoine

unread,
Apr 9, 2004, 5:52:48 AM4/9/04
to

Hi,

I'am testing a class with Maven. It retrieves a DataSource on a Sybase data base,
from my WL server (2 tiers). To perform this I use a classic remote invocation:
dataSource = (DataSource) initialContext.lookup(datasourceName);
This works fine, but when I try to get the connection, I get the fallowing (extract
from stack):

oracle/jdbc/driver/OracleStatement
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleStatement
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:737)
at weblogic.rmi.utils.Utilities.getRemoteMethods(Utilities.java:382)
at weblogic.rmi.internal.StubGenerator.<init>(StubGenerator.java:82)
at weblogic.rmi.internal.StubGenerator.<init>(StubGenerator.java:63)
at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:643)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:678)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:673)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:59)
at weblogic.common.internal.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:253)

I don't know why it looks for an Oracle class, since my DataSource is only declared
with a Sybase dirver and so.

It works fine if I use the tested class inside the server (EJB).

Any help appreciate,

Thanks

Antoine

Joe Weinstein

unread,
Apr 9, 2004, 11:14:04 AM4/9/04
to Antoine

Antoine wrote:

> Hi,
>
> I'am testing a class with Maven. It retrieves a DataSource on a Sybase data base,
> from my WL server (2 tiers). To perform this I use a classic remote invocation:
> dataSource = (DataSource) initialContext.lookup(datasourceName);
> This works fine, but when I try to get the connection, I get the fallowing (extract
> from stack):
>
> oracle/jdbc/driver/OracleStatement
> java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleStatement

Hi. What version of weblogic are you using?
thanks,
Joe

Antoine

unread,
Apr 9, 2004, 11:23:41 AM4/9/04
to

Hi,

It is Weblogic 7sp4 (server704_win32.exe)

Thanks

Antoine

Joe Weinstein

unread,
Apr 9, 2004, 1:27:00 PM4/9/04
to Antoine
Hi. For 7.0, we had statically added extra oracle-specific
methods in our JDBC objects, in order to provide this important
but proprietary functionality. Unfortunately, this ends up requiring
the oracle driver in the client classpath. We do ship the oracle driver
in the installation. If you look under your bea installation directory,
such as \bea, in the weblogic700\server\lib directory, you will find
a zip file, 'classes12.zip'. If you will please include that zip file
in the client classpath, the problem should go away.
Joe
0 new messages