看看我的jboss查找数据源的问题

03-03-12 tianjintou

我用jboss+jbuilder,找oracle的数据源没有问题:

DataSource ds = (DataSource) ServiceLocator.lookup("java:/OracleDS");

可是,再获得连接时出错:

DataSource ds = (DataSource) ServiceLocator.lookup("java:/OracleDS");

Connection con = ds.getConnection();

错误如下:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:

java.rmi.ServerError: Unexpected Error; nested exception is:

java.lang.NoClassDefFoundError: java/sql/Savepoint

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)

at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:138)

at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)

at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)

at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)

at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)

at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)

at $Proxy1.getXXX(Unknown Source)

at untitled17.yyyTestClient1.main(yyyTestClient1.java:50)

请问banq先生,怎么回事啊