Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within WebSphere
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
WebSphere
javax. naming. NoPermissionException : NO_PERMISSION exception caught
Nadda Habba
Greenhorn
Posts: 18
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to bind my SessionFactory in Hibernate 3.0 to JNDI using Websphere 6.0, but have been unable to do so as it throws an error, the stack trace of which is mentioned below.
Please assist.
Thanks in advance.
Exception stack trace: javax.naming.NoPermissionException: NO_PERMISSION exception caught [Root exception is org.omg.CORBA.NO_PERMISSION: Not authorized to perform rebind_java_object operation. vmcid: 0x0 minor code: 0 completed: No] at com.ibm.ws.naming.jndicos.CNContextImpl.doRebind(CNContextImpl.java:2631) at com.ibm.ws.naming.jndicos.CNContextImpl.rebind(CNContextImpl.java:784) at com.ibm.ws.naming.util.WsnInitCtx.rebind(WsnInitCtx.java:229) at javax.naming.InitialContext.rebind(InitialContext.java:383) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:74) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at com.natesh.common.HibernateSessionFactoryImpl.<clinit>(HibernateSessionFactoryImpl.java:18) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.natesh.user.UserImpl.getUser(UserImpl.java:49) at com.natesh.logon.LogonImpl.validateUser(LogonImpl.java:14) at com.natesh.logon.LogonAction.execute(LogonAction.java:45) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213) at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498) Caused by: org.omg.CORBA.NO_PERMISSION: Not authorized to perform rebind_java_object operation. vmcid: 0x0 minor code: 0 completed: No at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.performAuthorizationCheck(WsnOptimizedNamingImplBase.java:4745) at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.rebind_java_object(WsnOptimizedNamingImplBase.java:1558) at com.ibm.WsnOptimizedNaming._NamingContextStub.rebind_java_object(_NamingContextStub.java:311) at com.ibm.ws.naming.jndicos.CNContextImpl.cosRebindJavaObject(CNContextImpl.java:4152) at com.ibm.ws.naming.jndicos.CNContextImpl.doRebind(CNContextImpl.java:2578) ... 40 more
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
EJB TransactionRolledbackException
OutOfMemoryError in WAS6.1
NamingException on call from WPS 6.1 Portlet to Remote EJB 3.0 on separate Machine
Exception after loading the jsp page
Getting error when migrated the was 5.1 to 6.1
More...