Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Servlet,EJB,Security

0 views
Skip to first unread message

Sekar Purushothaman

unread,
Sep 29, 2000, 3:00:00 AM9/29/00
to
Hello all,

I am trying to cache the EJB home object by putting the lookup code in the
servlet init() method and using them in the service method. First request
to the servlet works fine, but following requests does'nt work by saying
'User Guest not allowed'. My question is,

Is it possible to cache the EJBHome in servlet init() method ?

Any help is appreciated.

sekar

ri Sep 29 09:53:47 PDT 2000:<E> (TSPServicesServlet.service:96) {O:b330722e
T:53747282 myserver} [56] Exception
ava.lang.SecurityException: User: 'guest' not allowed access to method:
'ejbCreate' in EJBHome: 'com.something.TSPServicesHome'
at
weblogic.ejb.internal.MethodDescriptor.checkAccess(MethodDescriptor.java:345
)
at
com.escrow.BusinessProcess.TSPServices.TSPServicesBeanHomeImpl.create(TSPSer
vicesBeanHomeImpl.java:21)
at
com.escrow.BusinessProcess.TSPServices.TSPServicesBeanHomeImpl_ServiceStub.c
reate(TSPServicesBeanHomeImpl_ServiceStub.java:121)
at
com.escrow.BusinessProcess.TSPServices.TSPServicesServlet.service(TSPService
sServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:97)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:298)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:523)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.t3.srvr.ExecuteThread.run(ExecuteThread.java:99)

Cameron Purdy

unread,
Oct 2, 2000, 3:00:00 AM10/2/00
to
Sekar,

If you do NOT cache it, do you get the same error? In other words, perhaps
you can not create that EJB with the security settings that deployed it
with.

--

Cameron Purdy
cpu...@tangosol.com
http://www.tangosol.com
WebLogic Consulting Available


"Sekar Purushothaman" <se...@escrow.com> wrote in message
news:39d504c9$1...@newsgroups.bea.com...

0 new messages