From: <leg...@at...> - 2003-08-13 18:28:11
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-255 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-255 Summary: javax.naming.OperationNotSupportedException is thrown at load = time Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components:=20 core Versions: 2.0 final Assignee:=20 Reporter: abe zafar Created: Wed, 13 Aug 2003 1:26 PM Updated: Wed, 13 Aug 2003 1:26 PM Environment: JDK1.4 on Weblogic application server 8.0 Description: The following exception is thrown when Hibernate is loading Hibernate.cfg.x= ml. In the code snippet below the third line, the call to buildSessionFacto= ry() throws the exception. Configuration conf =3D new Configuration(); conf.configure(); // to load default "hibernate.cfg.xml" sf =3D 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:com= p/env/hibernate/SessionFactory<-org.dom4j.tree.DefaultAttribute@ec44cb [Att= ribute: 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 - try= ing 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 - fou= nd 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 - Configur= ed SessionFactory: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:13,796 DEBUG net.sf.hibernate.cfg.Configuration - properti= es: {show_sql=3Dfalse, java.vendor=3DSun Microsystems Inc., org.xml.sax.par= ser=3Dweblogic.xml.jaxp.RegistryParser, connection.datasource=3DplatinumDat= aSource, os.name=3DSunOS, sun.boot.class.path=3D/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/j2sd= k1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpat= h=3D, java.vm.specification.vendor=3DSun Microsystems Inc., java.runtime.ve= rsion=3D1.4.2-b28, default_schema=3Dmjpp, weblogic.Name=3Dmyserver, jmx.imp= lementation.vendor=3DSun Microsystems, user.name=3Dabezaf01, hibernate.sess= ion_factory_name=3Djava:comp/env/hibernate/SessionFactory, jmx.implementati= on.name=3DJMX RI, user.language=3Den, java.naming.factory.initial=3Dweblogi= c.jndi.WLInitialContextFactory, sun.boot.library.path=3D/usr/j2sdk1.4.2/jre= /lib/sparc, dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, jmx.specificatio= n.name=3DJava Management Extensions, java.version=3D1.4.2, version=3D2.4.1,= user.timezone=3DUS/Pacific, sun.arch.data.model=3D32, hibernate.use_outer_= join=3Dfalse, javax.rmi.CORBA.UtilClass=3Dweblogic.iiop.UtilDelegateImpl, j= mx.specification.version=3D1.0 Final Release, java.endorsed.dirs=3D/usr/j2s= dk1.4.2/jre/lib/endorsed, vde.home=3D./myserver/ldap, sun.cpu.isalist=3Dspa= rcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-f= smuld sparcv7 sparc, jmx.implementation.version=3D1.0, file.encoding.pkg=3D= sun.io, weblogic.mbeanLegalClause.ByPass=3Dfalse, file.separator=3D/, java.= specification.name=3DJava Platform API Specification, hibernate.cglib.use_r= eflection_optimizer=3Dtrue, java.class.version=3D48.0, java.home=3D/usr/j2s= dk1.4.2/jre, java.vm.info=3Dmixed mode, os.version=3D5.8, hibernate.connect= ion.datasource=3DplatinumDataSource, org.omg.CORBA.ORBSingletonClass=3Dwebl= ogic.corba.orb.ORB, path.separator=3D:, java.vm.version=3D1.4.2-b28, java.u= til.prefs.PreferencesFactory=3Djava.util.prefs.FileSystemPreferencesFactory= , vendor-url=3Dhttp://xml.apache.org/xalan-j, java.protocol.handler.pkgs=3D= weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=3DSun = Microsystems, java.awt.printerjob=3Dsun.print.PSPrinterJob, vendor=3DApache= Software Foundation, java.security.policy=3D=3D./mjpconfig/mjplus.policy, = sun.io.unicode.encoding=3DUnicodeBig, query.substitutions=3Dtrue=3D'Y',fals= e=3D'N', java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.co= rba.j2ee.naming.url, user.home=3D/home/abezaf01, hibernate.query.substituti= ons=3Dtrue=3D'Y',false=3D'N', java.specification.vendor=3DSun Microsystems = Inc., org.xml.sax.driver=3Dweblogic.apache.xerces.parsers.SAXParser, java.l= ibrary.path=3D/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=3Dhttp://java.sun.com/, java.vm.vendor=3DSun Microsys= tems Inc., hibernate.dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, java.ru= ntime.name=3DJava(TM) 2 Runtime Environment, Standard Edition, java.class.p= ath=3D./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/l= ib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/h= ome/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/webl= ogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic= 81/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= =3Dfalse, java.vm.specification.name=3DJava Virtual Machine Specification, = java.vm.specification.version=3D1.0, javax.rmi.CORBA.PortableRemoteObjectCl= ass=3Dweblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=3Dbig,= sun.os.patch.level=3Dunknown, java.io.tmpdir=3D/var/tmp/, java.vendor.url.= bug=3Dhttp://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema= =3Dmjpp, os.arch=3Dsparc, java.awt.graphicsenv=3Dsun.awt.X11GraphicsEnviron= ment, java.ext.dirs=3D/usr/j2sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf0= 1/wlsdomains/v8domain, java.security.manager=3D, line.separator=3D , java.vm.name=3DJava HotSpot(TM) Server VM, java.security.auth.login.confi= g=3D=3D./mjpconfig/login.config, javax.xml.soap.MessageFactory=3Dcom.sun.xm= l.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, file.encoding=3DISO= 646-US, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, javax.xml.rpc.Serv= iceFactory=3Dcom.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.Production= ModeEnabled=3D, java.specification.version=3D1.4, hibernate.show_sql=3Dfals= e} 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 collect= ion: com.rhi.domain.Company.compAddresses -> company_address 2003-07-22 16:37:13,798 DEBUG net.sf.hibernate.cfg.Binder - Mapped collecti= on key: company_id, company_region_id, one-to-many: com.rhi.domain.CompanyA= ddress 2003-07-22 16:37:13,944 INFO net.sf.hibernate.impl.SessionFactoryImpl - bu= ilding session factory 2003-07-22 16:37:13,947 DEBUG net.sf.hibernate.impl.SessionFactoryImpl - in= stantiating session factory with properties: {java.vendor=3DSun Microsystem= s Inc., show_sql=3Dfalse, org.xml.sax.parser=3Dweblogic.xml.jaxp.RegistryPa= rser, connection.datasource=3DplatinumDataSource, os.name=3DSunOS, sun.boot= .class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.j= ar:/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/j= 2sdk1.4.2/jre/classes, sun.java2d.fontpath=3D, java.vm.specification.vendor= =3DSun Microsystems Inc., java.runtime.version=3D1.4.2-b28, default_schema= =3Dmjpp, weblogic.Name=3Dmyserver, jmx.implementation.vendor=3DSun Microsys= tems, user.name=3Dabezaf01, hibernate.session_factory_name=3Djava:comp/env/= hibernate/SessionFactory, jmx.implementation.name=3DJMX RI, user.language= =3Den, java.naming.factory.initial=3Dweblogic.jndi.WLInitialContextFactory,= sun.boot.library.path=3D/usr/j2sdk1.4.2/jre/lib/sparc, dialect=3Dnet.sf.hi= bernate.dialect.DB2Dialect, jmx.specification.name=3DJava Management Extens= ions, java.version=3D1.4.2, version=3D2.4.1, user.timezone=3DUS/Pacific, su= n.arch.data.model=3D32, hibernate.use_outer_join=3Dfalse, javax.rmi.CORBA.U= tilClass=3Dweblogic.iiop.UtilDelegateImpl, jmx.specification.version=3D1.0 = Final Release, java.endorsed.dirs=3D/usr/j2sdk1.4.2/jre/lib/endorsed, vde.h= ome=3D./myserver/ldap, sun.cpu.isalist=3Dsparcv9+vis2 sparcv9+vis sparcv9 s= parcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implem= entation.version=3D1.0, file.encoding.pkg=3Dsun.io, weblogic.mbeanLegalClau= se.ByPass=3Dfalse, file.separator=3D/, java.specification.name=3DJava Platf= orm API Specification, hibernate.cglib.use_reflection_optimizer=3Dtrue, jav= a.class.version=3D48.0, java.home=3D/usr/j2sdk1.4.2/jre, java.vm.info=3Dmix= ed mode, os.version=3D5.8, hibernate.connection.datasource=3DplatinumDataSo= urce, org.omg.CORBA.ORBSingletonClass=3Dweblogic.corba.orb.ORB, path.separa= tor=3D:, java.vm.version=3D1.4.2-b28, java.util.prefs.PreferencesFactory=3D= java.util.prefs.FileSystemPreferencesFactory, vendor-url=3Dhttp://xml.apach= e.org/xalan-j, java.protocol.handler.pkgs=3Dweblogic.utils|weblogic.utils|w= eblogic.net, jmx.specification.vendor=3DSun Microsystems, java.awt.printerj= ob=3Dsun.print.PSPrinterJob, vendor=3DApache Software Foundation, java.secu= rity.policy=3D=3D./mjpconfig/mjplus.policy, sun.io.unicode.encoding=3DUnico= deBig, java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.corb= a.j2ee.naming.url, query.substitutions=3Dtrue=3D'Y',false=3D'N', user.home= =3D/home/abezaf01, hibernate.query.substitutions=3Dtrue=3D'Y',false=3D'N', = java.specification.vendor=3DSun Microsystems Inc., org.xml.sax.driver=3Dweb= logic.apache.xerces.parsers.SAXParser, java.library.path=3D/usr/j2sdk1.4.2/= jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../l= ib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/be= a/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=3Dhttp:/= /java.sun.com/, java.vm.vendor=3DSun Microsystems Inc., hibernate.dialect= =3Dnet.sf.hibernate.dialect.DB2Dialect, java.runtime.name=3DJava(TM) 2 Runt= ime Environment, Standard Edition, java.class.path=3D./lib/util.jar:./lib/s= aaj-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/t= ools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/web= fousr/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/weblogic8= 1/server/lib/webservices.jar:, use_outer_join=3Dfalse, java.vm.specificatio= n.name=3DJava Virtual Machine Specification, java.vm.specification.version= =3D1.0, javax.rmi.CORBA.PortableRemoteObjectClass=3Dweblogic.iiop.PortableR= emoteObjectDelegateImpl, sun.cpu.endian=3Dbig, sun.os.patch.level=3Dunknown= , java.io.tmpdir=3D/var/tmp/, java.vendor.url.bug=3Dhttp://java.sun.com/cgi= -bin/bugreport.cgi, hibernate.default_schema=3Dmjpp, java.awt.graphicsenv= =3Dsun.awt.X11GraphicsEnvironment, os.arch=3Dsparc, java.ext.dirs=3D/usr/j2= sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf01/wlsdomains/v8domain, line.s= eparator=3D , java.security.manager=3D, java.vm.name=3DJava HotSpot(TM) Server VM, java= .security.auth.login.config=3D=3D./mjpconfig/login.config, javax.xml.soap.M= essageFactory=3Dcom.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_= 1Impl, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, file.encoding=3DISO= 646-US, javax.xml.rpc.ServiceFactory=3Dcom.sun.xml.rpc.client.ServiceFactor= yImpl, weblogic.ProductionModeEnabled=3D, java.specification.version=3D1.4,= hibernate.show_sql=3Dfalse} 2003-07-22 16:37:13,970 INFO net.sf.hibernate.dialect.Dialect - Using dial= ect: net.sf.hibernate.dialect.DB2Dialect 2003-07-22 16:37:14,019 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini= tialContext properties:{} 2003-07-22 16:37:14,029 INFO net.sf.hibernate.connection.DatasourceConnect= ionProvider - Using datasource: platinumDataSource 2003-07-22 16:37:14,030 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us= e outer join fetching: false 2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us= e scrollable result sets: true 2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - De= fault schema set to: mjpp 2003-07-22 16:37:15,789 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac= tory - initializing class SessionFactoryObjectFactory 2003-07-22 16:37:15,800 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac= tory - registered: 8a7b78e8nullf68c5fa7null00f6null8c5faf05null0000 (java:c= omp/env/hibernate/SessionFactory) 2003-07-22 16:37:15,800 INFO net.sf.hibernate.impl.SessionFactoryObjectFac= tory - Factory name: java:comp/env/hibernate/SessionFactory 2003-07-22 16:37:15,801 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini= tialContext 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.SessionFactoryObjectFac= tory - Could not bind factory to JNDI javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOn= lyContext; remaining name 'comp/env/hibernate/SessionFactory' =09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu= pportedException(ReadOnlyContextWrapper.java:145) =09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu= pportedException(ReadOnlyContextWrapper.java:161) =09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.rebind(ReadOnlyCo= ntextWrapper.java:63) =09at weblogic.jndi.internal.AbstractURLContext.rebind(AbstractURLContext.j= ava:149) =09at javax.naming.InitialContext.rebind(InitialContext.java:367) =09at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:74) =09at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(Session= FactoryObjectFactory.java:90) =09at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja= va:282) =09at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.= java:618) =09at com.rhi.mjq.persistence.HbSessionHelper.<clinit>(HbSessionHelper.java= :28) =09at com.rhi.mjq.persistence.dao.ClientDataDao.findIfActive(ClientDataDao.= java:60) =09at com.rhi.mjq.persistence.dao.ClientDataDao.findAllStates(ClientDataDao= .java:34) =09at com.rhi.mjq.ejb.bean.ClientDataBean.getStates(Unknown Source) =09at com.rhi.mjq.ejb.bean.ClientDataSession_hhkrc6_ELOImpl.getStates(Clien= tDataSession_hhkrc6_ELOImpl.java:45) =09at com.rhi.mjq.web.service.clientdata.ClientDataServiceImpl.getStates(Un= known Source) =09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.inv= oke_getStates(ClientDataService__ClientDataEndpoint__Tie.java:65) =09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.pro= cessingHook(ClientDataService__ClientDataEndpoint__Tie.java:192) =09at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:= 235) =09at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle= tDelegate.java:309) =09at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:7= 0) =09at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) =09at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) =09at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run= (ServletStubImpl.java:1053) =09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm= pl.java:387) =09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm= pl.java:305) =09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio= n.run(WebAppServletContext.java:6291) =09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate= dSubject.java:317) =09at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:= 97) =09at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe= rvletContext.java:3575) =09at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm= pl.java:2573) =09at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) =09at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |