Hi,
I am following the book Mastering Enterprise Java Beans and am having problems getting the Account example to work.
I think this is a weblogic configuration / Mysql db issue rather than an issue witht he example itself.
I have a mysqlConnectionPool and a mysqlDataSource which have been correctly created(or so I think because I did not get any error messages)
But my program throws the following exception :
AccountException: java.sql.SQLException: weblogic.common.ResourceException: Acce
ss not allowed
Start server side stack trace:
AccountException: java.sql.SQLException: weblogic.common.ResourceException: Acce
ss not allowed
at AccountBean.ejbHomeGetTotalBankValue(AccountBean.java:112)
at AccountBean_8259n1_Impl.ejbHomeGetTotalBankValue(AccountBean_8259n1_I
mpl.java:233)
at AccountBean_8259n1_HomeImpl.getTotalBankValue(AccountBean_8259n1_Home
Impl.java:161)
at AccountBean_8259n1_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:441)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:382)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:726)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:377)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
End server side stack trace
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
equest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:263)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:230)
at AccountBean_8259n1_HomeImpl_WLStub.getTotalBankValue(Unknown Source)
at AccountClient.main(AccountClient.java:34)
All your help is greatly appreciated.
Thanks,
Suma
I am following the book Mastering Enterprise Java Beans and am having problems getting the Account example to work.
I think this is a weblogic configuration / Mysql db issue rather than an issue witht he example itself.
I have a mysqlConnectionPool and a mysqlDataSource which have been correctly created(or so I think because I did not get any error messages)
But my program throws the following exception :
AccountException: java.sql.SQLException: weblogic.common.ResourceException: Acce
ss not allowed
Start server side stack trace:
AccountException: java.sql.SQLException: weblogic.common.ResourceException: Acce
ss not allowed
at AccountBean.ejbHomeGetTotalBankValue(AccountBean.java:112)
at AccountBean_8259n1_Impl.ejbHomeGetTotalBankValue(AccountBean_8259n1_I
mpl.java:233)
at AccountBean_8259n1_HomeImpl.getTotalBankValue(AccountBean_8259n1_Home
Impl.java:161)
at AccountBean_8259n1_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:441)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:382)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:726)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:377)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
End server side stack trace
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
equest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:263)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:230)
at AccountBean_8259n1_HomeImpl_WLStub.getTotalBankValue(Unknown Source)
at AccountClient.main(AccountClient.java:34)
All your help is greatly appreciated.
Thanks,
Suma