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

Hibernate JIRA | abe zafar | 1 decade ago
  1. 0

    The following exception is thrown when Hibernate is loading Hibernate.cfg.xml. In the code snippet below the third line, the call to buildSessionFactory() throws the exception. Configuration conf = new Configuration(); conf.configure(); // to load default "hibernate.cfg.xml" sf = conf.buildSessionFactory(); 2003-07-22 16:37:13,753 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: active -> active_flag, type: string 2003-07-22 16:37:13,754 DEBUG net.sf.hibernate.cfg.Configuration - java:comp/env/hibernate/SessionFactory<-org.dom4j.tree.DefaultAttribute@ec44cb [Attribute: name resource value "mapping/Country.hbm.xml"] 2003-07-22 16:37:13,754 INFO net.sf.hibernate.cfg.Configuration - Mapping resource: mapping/Country.hbm.xml 2003-07-22 16:37:13,768 DEBUG net.sf.hibernate.util.DTDEntityResolver - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/ 2003-07-22 16:37:13,769 DEBUG net.sf.hibernate.util.DTDEntityResolver - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath 2003-07-22 16:37:13,793 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.rhi.domain.Country -> domain_value 2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: id -> domain_value_id, type: integer 2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: name -> domain_value, type: string 2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: active -> active_flag, type: string 2003-07-22 16:37:13,795 INFO net.sf.hibernate.cfg.Configuration - Configured SessionFactory: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:13,796 DEBUG net.sf.hibernate.cfg.Configuration - properties: {show_sql=false, java.vendor=Sun Microsystems Inc., org.xml.sax.parser=weblogic.xml.jaxp.RegistryParser, connection.datasource=platinumDataSource, os.name=SunOS, sun.boot.class.path=/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpath=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.4.2-b28, default_schema=mjpp, weblogic.Name=myserver, jmx.implementation.vendor=Sun Microsystems, user.name=abezaf01, hibernate.session_factory_name=java:comp/env/hibernate/SessionFactory, jmx.implementation.name=JMX RI, user.language=en, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, sun.boot.library.path=/usr/j2sdk1.4.2/jre/lib/sparc, dialect=net.sf.hibernate.dialect.DB2Dialect, jmx.specification.name=Java Management Extensions, java.version=1.4.2, version=2.4.1, user.timezone=US/Pacific, sun.arch.data.model=32, hibernate.use_outer_join=false, javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl, jmx.specification.version=1.0 Final Release, java.endorsed.dirs=/usr/j2sdk1.4.2/jre/lib/endorsed, vde.home=./myserver/ldap, sun.cpu.isalist=sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implementation.version=1.0, file.encoding.pkg=sun.io, weblogic.mbeanLegalClause.ByPass=false, file.separator=/, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=48.0, java.home=/usr/j2sdk1.4.2/jre, java.vm.info=mixed mode, os.version=5.8, hibernate.connection.datasource=platinumDataSource, org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB, path.separator=:, java.vm.version=1.4.2-b28, java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory, vendor-url=http://xml.apache.org/xalan-j, java.protocol.handler.pkgs=weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=Sun Microsystems, java.awt.printerjob=sun.print.PSPrinterJob, vendor=Apache Software Foundation, java.security.policy==./mjpconfig/mjplus.policy, sun.io.unicode.encoding=UnicodeBig, query.substitutions=true='Y',false='N', java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url, user.home=/home/abezaf01, hibernate.query.substitutions=true='Y',false='N', java.specification.vendor=Sun Microsystems Inc., org.xml.sax.driver=weblogic.apache.xerces.parsers.SAXParser, java.library.path=/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=http://java.sun.com/, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hibernate.dialect.DB2Dialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=big, sun.os.patch.level=unknown, java.io.tmpdir=/var/tmp/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=mjpp, os.arch=sparc, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.ext.dirs=/usr/j2sdk1.4.2/jre/lib/ext, user.dir=/home/abezaf01/wlsdomains/v8domain, java.security.manager=, line.separator= , java.vm.name=Java HotSpot(TM) Server VM, java.security.auth.login.config==./mjpconfig/login.config, javax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, file.encoding=ISO646-US, org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB, javax.xml.rpc.ServiceFactory=com.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.ProductionModeEnabled=, java.specification.version=1.4, hibernate.show_sql=false} 2003-07-22 16:37:13,797 DEBUG net.sf.hibernate.cfg.Binder - Second pass for collection: com.rhi.domain.Company.compAddresses 2003-07-22 16:37:13,797 INFO net.sf.hibernate.cfg.Binder - Mapping collection: com.rhi.domain.Company.compAddresses -> company_address 2003-07-22 16:37:13,798 DEBUG net.sf.hibernate.cfg.Binder - Mapped collection key: company_id, company_region_id, one-to-many: com.rhi.domain.CompanyAddress 2003-07-22 16:37:13,944 INFO net.sf.hibernate.impl.SessionFactoryImpl - building session factory 2003-07-22 16:37:13,947 DEBUG net.sf.hibernate.impl.SessionFactoryImpl - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., show_sql=false, org.xml.sax.parser=weblogic.xml.jaxp.RegistryParser, connection.datasource=platinumDataSource, os.name=SunOS, sun.boot.class.path=/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpath=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.4.2-b28, default_schema=mjpp, weblogic.Name=myserver, jmx.implementation.vendor=Sun Microsystems, user.name=abezaf01, hibernate.session_factory_name=java:comp/env/hibernate/SessionFactory, jmx.implementation.name=JMX RI, user.language=en, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, sun.boot.library.path=/usr/j2sdk1.4.2/jre/lib/sparc, dialect=net.sf.hibernate.dialect.DB2Dialect, jmx.specification.name=Java Management Extensions, java.version=1.4.2, version=2.4.1, user.timezone=US/Pacific, sun.arch.data.model=32, hibernate.use_outer_join=false, javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl, jmx.specification.version=1.0 Final Release, java.endorsed.dirs=/usr/j2sdk1.4.2/jre/lib/endorsed, vde.home=./myserver/ldap, sun.cpu.isalist=sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implementation.version=1.0, file.encoding.pkg=sun.io, weblogic.mbeanLegalClause.ByPass=false, file.separator=/, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=48.0, java.home=/usr/j2sdk1.4.2/jre, java.vm.info=mixed mode, os.version=5.8, hibernate.connection.datasource=platinumDataSource, org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB, path.separator=:, java.vm.version=1.4.2-b28, java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory, vendor-url=http://xml.apache.org/xalan-j, java.protocol.handler.pkgs=weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=Sun Microsystems, java.awt.printerjob=sun.print.PSPrinterJob, vendor=Apache Software Foundation, java.security.policy==./mjpconfig/mjplus.policy, sun.io.unicode.encoding=UnicodeBig, java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url, query.substitutions=true='Y',false='N', user.home=/home/abezaf01, hibernate.query.substitutions=true='Y',false='N', java.specification.vendor=Sun Microsystems Inc., org.xml.sax.driver=weblogic.apache.xerces.parsers.SAXParser, java.library.path=/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=http://java.sun.com/, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hibernate.dialect.DB2Dialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=big, sun.os.patch.level=unknown, java.io.tmpdir=/var/tmp/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=mjpp, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, os.arch=sparc, java.ext.dirs=/usr/j2sdk1.4.2/jre/lib/ext, user.dir=/home/abezaf01/wlsdomains/v8domain, line.separator= , java.security.manager=, java.vm.name=Java HotSpot(TM) Server VM, java.security.auth.login.config==./mjpconfig/login.config, javax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB, file.encoding=ISO646-US, javax.xml.rpc.ServiceFactory=com.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.ProductionModeEnabled=, java.specification.version=1.4, hibernate.show_sql=false} 2003-07-22 16:37:13,970 INFO net.sf.hibernate.dialect.Dialect - Using dialect: net.sf.hibernate.dialect.DB2Dialect 2003-07-22 16:37:14,019 INFO net.sf.hibernate.util.NamingHelper - JNDI InitialContext properties:{} 2003-07-22 16:37:14,029 INFO net.sf.hibernate.connection.DatasourceConnectionProvider - Using datasource: platinumDataSource 2003-07-22 16:37:14,030 INFO net.sf.hibernate.impl.SessionFactoryImpl - Use outer join fetching: false 2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Use scrollable result sets: true 2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Default schema set to: mjpp 2003-07-22 16:37:15,789 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFactory - initializing class SessionFactoryObjectFactory 2003-07-22 16:37:15,800 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFactory - registered: 8a7b78e8nullf68c5fa7null00f6null8c5faf05null0000 (java:comp/env/hibernate/SessionFactory) 2003-07-22 16:37:15,800 INFO net.sf.hibernate.impl.SessionFactoryObjectFactory - Factory name: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,801 INFO net.sf.hibernate.util.NamingHelper - JNDI InitialContext properties:{} 2003-07-22 16:37:15,802 DEBUG net.sf.hibernate.util.NamingHelper - binding: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,808 DEBUG net.sf.hibernate.util.NamingHelper - binding: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,811 WARN net.sf.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI 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.<init>(SessionFactoryImpl.java:282) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:618) at com.rhi.mjq.persistence.HbSessionHelper.<clinit>(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 com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:70) 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.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291) 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.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    Hibernate JIRA | 1 decade ago | abe zafar
    javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'
  2. 0

    The following exception is thrown when Hibernate is loading Hibernate.cfg.xml. In the code snippet below the third line, the call to buildSessionFactory() throws the exception. Configuration conf = new Configuration(); conf.configure(); // to load default "hibernate.cfg.xml" sf = conf.buildSessionFactory(); 2003-07-22 16:37:13,753 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: active -> active_flag, type: string 2003-07-22 16:37:13,754 DEBUG net.sf.hibernate.cfg.Configuration - java:comp/env/hibernate/SessionFactory<-org.dom4j.tree.DefaultAttribute@ec44cb [Attribute: name resource value "mapping/Country.hbm.xml"] 2003-07-22 16:37:13,754 INFO net.sf.hibernate.cfg.Configuration - Mapping resource: mapping/Country.hbm.xml 2003-07-22 16:37:13,768 DEBUG net.sf.hibernate.util.DTDEntityResolver - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/ 2003-07-22 16:37:13,769 DEBUG net.sf.hibernate.util.DTDEntityResolver - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath 2003-07-22 16:37:13,793 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.rhi.domain.Country -> domain_value 2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: id -> domain_value_id, type: integer 2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: name -> domain_value, type: string 2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property: active -> active_flag, type: string 2003-07-22 16:37:13,795 INFO net.sf.hibernate.cfg.Configuration - Configured SessionFactory: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:13,796 DEBUG net.sf.hibernate.cfg.Configuration - properties: {show_sql=false, java.vendor=Sun Microsystems Inc., org.xml.sax.parser=weblogic.xml.jaxp.RegistryParser, connection.datasource=platinumDataSource, os.name=SunOS, sun.boot.class.path=/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpath=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.4.2-b28, default_schema=mjpp, weblogic.Name=myserver, jmx.implementation.vendor=Sun Microsystems, user.name=abezaf01, hibernate.session_factory_name=java:comp/env/hibernate/SessionFactory, jmx.implementation.name=JMX RI, user.language=en, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, sun.boot.library.path=/usr/j2sdk1.4.2/jre/lib/sparc, dialect=net.sf.hibernate.dialect.DB2Dialect, jmx.specification.name=Java Management Extensions, java.version=1.4.2, version=2.4.1, user.timezone=US/Pacific, sun.arch.data.model=32, hibernate.use_outer_join=false, javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl, jmx.specification.version=1.0 Final Release, java.endorsed.dirs=/usr/j2sdk1.4.2/jre/lib/endorsed, vde.home=./myserver/ldap, sun.cpu.isalist=sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implementation.version=1.0, file.encoding.pkg=sun.io, weblogic.mbeanLegalClause.ByPass=false, file.separator=/, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=48.0, java.home=/usr/j2sdk1.4.2/jre, java.vm.info=mixed mode, os.version=5.8, hibernate.connection.datasource=platinumDataSource, org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB, path.separator=:, java.vm.version=1.4.2-b28, java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory, vendor-url=http://xml.apache.org/xalan-j, java.protocol.handler.pkgs=weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=Sun Microsystems, java.awt.printerjob=sun.print.PSPrinterJob, vendor=Apache Software Foundation, java.security.policy==./mjpconfig/mjplus.policy, sun.io.unicode.encoding=UnicodeBig, query.substitutions=true='Y',false='N', java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url, user.home=/home/abezaf01, hibernate.query.substitutions=true='Y',false='N', java.specification.vendor=Sun Microsystems Inc., org.xml.sax.driver=weblogic.apache.xerces.parsers.SAXParser, java.library.path=/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=http://java.sun.com/, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hibernate.dialect.DB2Dialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=big, sun.os.patch.level=unknown, java.io.tmpdir=/var/tmp/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=mjpp, os.arch=sparc, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.ext.dirs=/usr/j2sdk1.4.2/jre/lib/ext, user.dir=/home/abezaf01/wlsdomains/v8domain, java.security.manager=, line.separator= , java.vm.name=Java HotSpot(TM) Server VM, java.security.auth.login.config==./mjpconfig/login.config, javax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, file.encoding=ISO646-US, org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB, javax.xml.rpc.ServiceFactory=com.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.ProductionModeEnabled=, java.specification.version=1.4, hibernate.show_sql=false} 2003-07-22 16:37:13,797 DEBUG net.sf.hibernate.cfg.Binder - Second pass for collection: com.rhi.domain.Company.compAddresses 2003-07-22 16:37:13,797 INFO net.sf.hibernate.cfg.Binder - Mapping collection: com.rhi.domain.Company.compAddresses -> company_address 2003-07-22 16:37:13,798 DEBUG net.sf.hibernate.cfg.Binder - Mapped collection key: company_id, company_region_id, one-to-many: com.rhi.domain.CompanyAddress 2003-07-22 16:37:13,944 INFO net.sf.hibernate.impl.SessionFactoryImpl - building session factory 2003-07-22 16:37:13,947 DEBUG net.sf.hibernate.impl.SessionFactoryImpl - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., show_sql=false, org.xml.sax.parser=weblogic.xml.jaxp.RegistryParser, connection.datasource=platinumDataSource, os.name=SunOS, sun.boot.class.path=/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpath=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.4.2-b28, default_schema=mjpp, weblogic.Name=myserver, jmx.implementation.vendor=Sun Microsystems, user.name=abezaf01, hibernate.session_factory_name=java:comp/env/hibernate/SessionFactory, jmx.implementation.name=JMX RI, user.language=en, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, sun.boot.library.path=/usr/j2sdk1.4.2/jre/lib/sparc, dialect=net.sf.hibernate.dialect.DB2Dialect, jmx.specification.name=Java Management Extensions, java.version=1.4.2, version=2.4.1, user.timezone=US/Pacific, sun.arch.data.model=32, hibernate.use_outer_join=false, javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl, jmx.specification.version=1.0 Final Release, java.endorsed.dirs=/usr/j2sdk1.4.2/jre/lib/endorsed, vde.home=./myserver/ldap, sun.cpu.isalist=sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implementation.version=1.0, file.encoding.pkg=sun.io, weblogic.mbeanLegalClause.ByPass=false, file.separator=/, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=48.0, java.home=/usr/j2sdk1.4.2/jre, java.vm.info=mixed mode, os.version=5.8, hibernate.connection.datasource=platinumDataSource, org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB, path.separator=:, java.vm.version=1.4.2-b28, java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory, vendor-url=http://xml.apache.org/xalan-j, java.protocol.handler.pkgs=weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=Sun Microsystems, java.awt.printerjob=sun.print.PSPrinterJob, vendor=Apache Software Foundation, java.security.policy==./mjpconfig/mjplus.policy, sun.io.unicode.encoding=UnicodeBig, java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url, query.substitutions=true='Y',false='N', user.home=/home/abezaf01, hibernate.query.substitutions=true='Y',false='N', java.specification.vendor=Sun Microsystems Inc., org.xml.sax.driver=weblogic.apache.xerces.parsers.SAXParser, java.library.path=/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=http://java.sun.com/, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hibernate.dialect.DB2Dialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=big, sun.os.patch.level=unknown, java.io.tmpdir=/var/tmp/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=mjpp, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, os.arch=sparc, java.ext.dirs=/usr/j2sdk1.4.2/jre/lib/ext, user.dir=/home/abezaf01/wlsdomains/v8domain, line.separator= , java.security.manager=, java.vm.name=Java HotSpot(TM) Server VM, java.security.auth.login.config==./mjpconfig/login.config, javax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB, file.encoding=ISO646-US, javax.xml.rpc.ServiceFactory=com.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.ProductionModeEnabled=, java.specification.version=1.4, hibernate.show_sql=false} 2003-07-22 16:37:13,970 INFO net.sf.hibernate.dialect.Dialect - Using dialect: net.sf.hibernate.dialect.DB2Dialect 2003-07-22 16:37:14,019 INFO net.sf.hibernate.util.NamingHelper - JNDI InitialContext properties:{} 2003-07-22 16:37:14,029 INFO net.sf.hibernate.connection.DatasourceConnectionProvider - Using datasource: platinumDataSource 2003-07-22 16:37:14,030 INFO net.sf.hibernate.impl.SessionFactoryImpl - Use outer join fetching: false 2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Use scrollable result sets: true 2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Default schema set to: mjpp 2003-07-22 16:37:15,789 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFactory - initializing class SessionFactoryObjectFactory 2003-07-22 16:37:15,800 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFactory - registered: 8a7b78e8nullf68c5fa7null00f6null8c5faf05null0000 (java:comp/env/hibernate/SessionFactory) 2003-07-22 16:37:15,800 INFO net.sf.hibernate.impl.SessionFactoryObjectFactory - Factory name: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,801 INFO net.sf.hibernate.util.NamingHelper - JNDI InitialContext properties:{} 2003-07-22 16:37:15,802 DEBUG net.sf.hibernate.util.NamingHelper - binding: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,808 DEBUG net.sf.hibernate.util.NamingHelper - binding: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,811 WARN net.sf.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI 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.<init>(SessionFactoryImpl.java:282) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:618) at com.rhi.mjq.persistence.HbSessionHelper.<clinit>(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 com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:70) 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.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291) 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.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

    Hibernate JIRA | 1 decade ago | abe zafar
    javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'
  3. 0

    Unable to redploy ejb-jar file in wls7

    Google Groups | 1 decade ago | John
    javax.naming.OperationNotSupportedException: unbind not allowed in a ReadOnlyContext; remaining name 'comp/env/ejb/bloBean']
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to redploy ejb-jar file in wls7

    Oracle Community | 1 decade ago | 3004
    javax.naming.OperationNotSupportedException: unbind not allowed in a ReadOnlyContext;>> > remaining name 'comp/env/ejb/bloBean'
  6. 0

    Unable to redploy ejb-jar file in wls7

    Oracle Community | 1 decade ago | 3004
    javax.naming.OperationNotSupportedException: unbind not allowed in a ReadOnlyContext; remaining name 'comp/env/ejb/bloBean'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.OperationNotSupportedException

      rebind not allowed in a ReadOnlyContext; remaining name 'comp/env/hibernate/SessionFactory'

      at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException()
    2. weblogic.jndi.factories
      ReadOnlyContextWrapper.rebind
      1. weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:145)
      2. weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:161)
      3. weblogic.jndi.factories.java.ReadOnlyContextWrapper.rebind(ReadOnlyContextWrapper.java:63)
      3 frames
    3. weblogic.jndi.internal
      AbstractURLContext.rebind
      1. weblogic.jndi.internal.AbstractURLContext.rebind(AbstractURLContext.java:149)
      1 frame
    4. Java RT
      InitialContext.rebind
      1. javax.naming.InitialContext.rebind(InitialContext.java:367)
      1 frame
    5. net.sf.hibernate
      Configuration.buildSessionFactory
      1. net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
      2. net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
      3. net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:282)
      4. net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:618)
      4 frames
    6. com.rhi.mjq
      ClientDataServiceImpl.getStates
      1. com.rhi.mjq.persistence.HbSessionHelper.<clinit>(HbSessionHelper.java:28)
      2. com.rhi.mjq.persistence.dao.ClientDataDao.findIfActive(ClientDataDao.java:60)
      3. com.rhi.mjq.persistence.dao.ClientDataDao.findAllStates(ClientDataDao.java:34)
      4. com.rhi.mjq.ejb.bean.ClientDataBean.getStates(Unknown Source)
      5. com.rhi.mjq.ejb.bean.ClientDataSession_hhkrc6_ELOImpl.getStates(ClientDataSession_hhkrc6_ELOImpl.java:45)
      6. com.rhi.mjq.web.service.clientdata.ClientDataServiceImpl.getStates(Unknown Source)
      6 frames
    7. com.rhi.domain
      ClientDataService__ClientDataEndpoint__Tie.processingHook
      1. com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.invoke_getStates(ClientDataService__ClientDataEndpoint__Tie.java:65)
      2. com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.processingHook(ClientDataService__ClientDataEndpoint__Tie.java:192)
      2 frames
    8. Metro Web Services Runtime OSGi Bundle
      JAXRPCServlet.doPost
      1. com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:235)
      2. com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:309)
      3. com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:70)
      3 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2 frames
    10. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
      3. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
      4. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
      4 frames
    11. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
      1 frame
    12. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
      1 frame
    13. Atmosphere weblogic
      ServletRequestImpl.execute
      1. weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
      2. weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
      2 frames
    14. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
      2 frames