javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by abe zafar, 1 year ago
rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'
via Hibernate JIRA by abe zafar, 1 year ago
rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'
via openwebbeans-user by Rafael Pestano, 1 year ago
bind not allowed in a ReadOnlyContext; remaining name 'BeanManager'
via openwebbeans-user by Oleg Varaksin, 4 months ago
bind not allowed in a ReadOnlyContext; remaining name 'BeanManager'
via openwebbeans-user by Rafael Pestano, 1 year ago
bind not allowed in a ReadOnlyContext; remaining name 'BeanManager'
via openwebbeans-user by Gurkan Erdogdu, 1 year ago
bind not allowed in a ReadOnlyContext; remaining name 'BeanManager'
javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:145)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:161)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.rebind(ReadOnlyContextWrapper.java:63)
at weblogic.jndi.internal.AbstractURLContext.rebind(AbstractURLContext.java:149)
at javax.naming.InitialContext.rebind(InitialContext.java:367)
at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:282)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:618)
at com.rhi.mjq.persistence.HbSessionHelper.(HbSessionHelper.java:28)
at com.rhi.mjq.persistence.dao.ClientDataDao.findIfActive(ClientDataDao.java:60)
at com.rhi.mjq.persistence.dao.ClientDataDao.findAllStates(ClientDataDao.java:34)
at com.rhi.mjq.ejb.bean.ClientDataBean.getStates(Unknown Source)
at com.rhi.mjq.ejb.bean.ClientDataSession_hhkrc6_ELOImpl.getStates(ClientDataSession_hhkrc6_ELOImpl.java:45)
at com.rhi.mjq.web.service.clientdata.ClientDataServiceImpl.getStates(Unknown Source)
at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.invoke_getStates(ClientDataService__ClientDataEndpoint__Tie.java:65)
at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.processingHook(ClientDataService__ClientDataEndpoint__Tie.java:192)
at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:235)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.