I am trying to get the J2EE tutorial sample application, RosterApp which is example of using EJB 2.0 CMP/CMR to work with DB2. I am running Sun's J2EE 1.3.1 reference implementation app server.
The sample works fine with default Cloudscape DB driver. The tables are created automatically and the app runs fine.
I seem to have configured the DB2 driver successfully, but when I run the RosterApp sample I get the following exception:
Binding name:`java:comp/env/ejb/SimpleRoster`
Caught an exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: Exception thrown from bean; nested exception i
s: javax.ejb.EJBException: nested exception is: COM.ibm.db2.jdbc.DB2Exception: [
IBM][CLI Driver][DB2/NT] SQL0204N "ADMIN.LeagueBeanTable" is an undefined name.
SQLSTATE=42704
java.rmi.RemoteException: Exception thrown from bean; nested exception is: javax
.ejb.EJBException: nested exception is: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI
Driver][DB2/NT] SQL0204N "ADMIN.LeagueBeanTable" is an undefined name. SQLSTA
TE=42704
<<no stack trace available>>
Caught an exception:
java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9999 No; nested exception
is:
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9999 completed: No
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9999 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:132)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at roster._Roster_Stub.getPlayersOfTeam(Unknown Source)
at client.RosterClient.getSomeInfo(RosterClient.java:54)
at client.RosterClient.main(RosterClient.java:33)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:22
9)
at com.sun.enterprise.appclient.Main.main(Main.java:155)
Any help is greatly appreciated.
Many thanks,
joe
The sample works fine with default Cloudscape DB driver. The tables are created automatically and the app runs fine.
I seem to have configured the DB2 driver successfully, but when I run the RosterApp sample I get the following exception:
Binding name:`java:comp/env/ejb/SimpleRoster`
Caught an exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: Exception thrown from bean; nested exception i
s: javax.ejb.EJBException: nested exception is: COM.ibm.db2.jdbc.DB2Exception: [
IBM][CLI Driver][DB2/NT] SQL0204N "ADMIN.LeagueBeanTable" is an undefined name.
SQLSTATE=42704
java.rmi.RemoteException: Exception thrown from bean; nested exception is: javax
.ejb.EJBException: nested exception is: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI
Driver][DB2/NT] SQL0204N "ADMIN.LeagueBeanTable" is an undefined name. SQLSTA
TE=42704
<<no stack trace available>>
Caught an exception:
java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9999 No; nested exception
is:
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9999 completed: No
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9999 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:132)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at roster._Roster_Stub.getPlayersOfTeam(Unknown Source)
at client.RosterClient.getSomeInfo(RosterClient.java:54)
at client.RosterClient.main(RosterClient.java:33)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:22
9)
at com.sun.enterprise.appclient.Main.main(Main.java:155)
Any help is greatly appreciated.
Many thanks,
joe