• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bean Managed Entity Bean problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello...when iam doing jndi lookup from client to my bean..It is working good but when i call create..a big stck trace is comming as given bellow.
According to me the problem is with setting the jbdc in weblogic...Plese help me ...
The stake trace is
java.rmi.RemoteException: EJB Exception:; nested exception is:
javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: java.lang.SecurityException: User "guest" does not have
Permission "reserve" based on ACL "test".]
Start server side stack trace:
java.rmi.RemoteException: EJB Exception:; nested exception is:
javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: java.lang.SecurityException: User "guest" does not have
Permission "reserve" based on ACL "test".]
java.sql.SQLException: java.lang.SecurityException: User "guest" does not have P
ermission "reserve" based on ACL "test".
at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
Source.java:197)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:219)
at EBMP.TaxEJB.ejbCreate(TaxEJB.java:39)
at EBMP.TaxEJB_tptnvy_Impl.ejbCreate(TaxEJB_tptnvy_Impl.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:519)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:489)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
at EBMP.TaxEJB_tptnvy_HomeImpl.create(TaxEJB_tptnvy_HomeImpl.java:75)
at EBMP.TaxEJB_tptnvy_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:274)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: java.lang.SecurityException: User "guest" does not have
Permission "reserve" based on ACL "test".]
at EBMP.TaxEJB.ejbCreate(TaxEJB.java:48)
at EBMP.TaxEJB_tptnvy_Impl.ejbCreate(TaxEJB_tptnvy_Impl.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:519)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:489)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:190)
at EBMP.TaxEJB_tptnvy_HomeImpl.create(TaxEJB_tptnvy_HomeImpl.java:75)
at EBMP.TaxEJB_tptnvy_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:274)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
; nested exception is:
javax.ejb.EJBException:
Start server side stack trace:
java.sql.SQLException: java.lang.SecurityException: User "guest" does not have P
ermission "reserve" based on ACL "test".
at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
Source.java:197)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:219)
at EBMP.TaxEJB.ejbCreate(TaxEJB.java:39)

Still it is big...Just give me an idea...Plzzzzzzzzzzzzzz Friends
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is that the user has no rights for doing the operation requested. It's been a while since I've last used Weblogic so I could be wrong but as far as I can remember you have to edit the weblogic.policy and grant the user all access rights. I remember there was a post here about this problem so you should look for it. Or look at the weblogic forum for an answer about how to grant access rights.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic