看看我的jboss查詢資料來源的問題

tianjintou發表於2003-03-12
我用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先生,怎麼回事啊

相關文章