3 Replies Latest reply on Feb 16, 2006 6:34 AM by Armin Gattung

    JBOSS + Hibernate +Spring

    Suresh Akula Newbie

      Hi to All,

      I am facing the below problem while I am deploying the application.

      we are using JB0SS 4.1
      HIbernate 3.1 beta3.
      Spring 1.2.4.
      Database Oracle --> Thin Driver.

      I appreciate if any give me some suggestion on this.

      Thanks
      Suresh Akula


      2005-09-17 00:50:57,531 INFO [org.hibernate.cfg.SettingsFactory] RDBMS: Oracle, version: Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
      With the Partitioning option
      JServer Release 9.0.1.1.1 - Production
      2005-09-17 00:50:57,531 INFO [org.hibernate.cfg.SettingsFactory] JDBC driver: Oracle JDBC driver, version: 9.0.1.1.0
      2005-09-17 00:50:57,625 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.Oracle9Dialect
      2005-09-17 00:50:57,718 INFO [org.hibernate.transaction.TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      2005-09-17 00:50:57,718 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled
      2005-09-17 00:50:57,734 DEBUG [org.hibernate.cfg.SettingsFactory] Wrap result sets: disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Connection release mode: null
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled
      2005-09-17 00:50:57,734 INFO [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      2005-09-17 00:50:57,765 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      2005-09-17 00:50:57,765 INFO [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}
      2005-09-17 00:50:57,765 INFO [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled
      2005-09-17 00:50:57,765 INFO [org.hibernate.cfg.SettingsFactory] Query cache: disabled
      2005-09-17 00:50:57,765 INFO [org.hibernate.cfg.SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
      2005-09-17 00:50:57,859 INFO [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled
      2005-09-17 00:50:57,859 INFO [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled
      2005-09-17 00:50:57,875 DEBUG [org.hibernate.exception.SQLExceptionConverterFactory] Using dialect defined converter
      2005-09-17 00:50:57,875 INFO [org.hibernate.cfg.SettingsFactory] Echoing all SQL to stdout
      2005-09-17 00:50:57,875 INFO [org.hibernate.cfg.SettingsFactory] Statistics: disabled
      2005-09-17 00:50:57,875 INFO [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      2005-09-17 00:50:57,890 INFO [org.hibernate.cfg.SettingsFactory] Default entity-mode: POJO
      2005-09-17 00:50:58,765 INFO [org.hibernate.impl.SessionFactoryImpl] building session factory
      2005-09-17 00:50:58,765 DEBUG [org.hibernate.impl.SessionFactoryImpl] Session factory constructed with filter configurations : {}
      2005-09-17 00:50:58,765 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., catalina.base=C:\jboss-4.0.1sp1\server\default, catalina.useNaming=false, os.name=Windows XP, sun.boot.class.path=C:\jboss-4.0.1sp1\bin\\..\lib\endorsed\resolver.jar;C:\jboss-4.0.1sp1\bin\\..\lib\endorsed\xalan.jar;C:\jboss-4.0.1sp1\bin\\..\lib\endorsed\xercesImpl.jar;C:\jboss-4.0.1sp1\bin\\..\lib\endorsed\xml-apis.jar;C:\j2sdk1.4.2_08\jre\lib\rt.jar;C:\j2sdk1.4.2_08\jre\lib\i18n.jar;C:\j2sdk1.4.2_08\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_08\jre\lib\jsse.jar;C:\j2sdk1.4.2_08\jre\lib\jce.jar;C:\j2sdk1.4.2_08\jre\lib\charsets.jar;C:\j2sdk1.4.2_08\jre\classes, sun.java2d.fontpath=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.4.2_08-b03, user.name=Administrator, shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar, jboss.bind.address=0.0.0.0, jboss.home.dir=C:\jboss-4.0.1sp1, user.language=en, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, sun.boot.library.path=C:\j2sdk1.4.2_08\jre\bin, jboss.home.url=file:/C:/jboss-4.0.1sp1/, java.version=1.4.2_08, user.timezone=Asia/Calcutta, jboss.server.home.dir=C:\jboss-4.0.1sp1\server\default, sun.arch.data.model=32, java.endorsed.dirs=C:\jboss-4.0.1sp1\bin\\..\lib\endorsed, jboss.server.home.url=file:/C:/jboss-4.0.1sp1/server/default/, sun.cpu.isalist=pentium i486 i386, file.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=\, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=48.0, jboss.server.config.url=file:/C:/jboss-4.0.1sp1/server/default/conf/, user.country=US, java.home=C:\j2sdk1.4.2_08\jre, java.vm.info=mixed mode, jboss.lib.url=file:/C:/jboss-4.0.1sp1/lib/, os.version=5.1, path.separator=;, java.vm.version=1.4.2_08-b03, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, user.variant=, java.protocol.handler.pkgs=org.jboss.net.protocol, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., jboss.server.temp.dir=C:\jboss-4.0.1sp1\server\default\tmp, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, user.home=C:\Documents and Settings\Administrator, java.rmi.server.RMIClassLoaderSpi=org.jboss.system.JBossRMIClassLoader, java.specification.vendor=Sun Microsystems Inc., java.library.path=C:\j2sdk1.4.2_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\j2sdk1.4.2_08\bin;C:\apache-ant-1.6.5\bin, java.vendor.url=http://java.sun.com/, org.w3c.css.sac.parser=macromedia.css.LocatorParser, program.name=run.bat, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.Oracle9Dialect, common.loader=${catalina.home}/common/classes,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=C:\j2sdk1.4.2_08\lib\tools.jar;C:\jboss-4.0.1sp1\bin\\run.jar, jbossmx.loader.repository.class=org.jboss.mx.loading.UnifiedLoaderRepository3, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, catalina.home=C:\jboss-4.0.1sp1\server\default, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, jboss.server.lib.url=file:/C:/jboss-4.0.1sp1/server/default/lib/, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, java.rmi.server.codebase=http://Padma:8083/, java.io.tmpdir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar, jboss.server.data.dir=C:\jboss-4.0.1sp1\server\default\data, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, os.arch=x86, java.ext.dirs=C:\j2sdk1.4.2_08\jre\lib\ext, user.dir=C:\jboss-4.0.1sp1\bin, line.separator=
      , java.vm.name=Java HotSpot(TM) Client VM, jboss.server.base.dir=C:\jboss-4.0.1sp1\server, jboss.server.base.url=file:/C:/jboss-4.0.1sp1/server/, javax.management.builder.initial=org.jboss.mx.server.MBeanServerBuilderImpl, file.encoding=Cp1252, catalina.ext.dirs=C:\jboss-4.0.1sp1\server\default\lib, java.specification.version=1.4, jboss.server.name=default, hibernate.connection.pool_size=3, hibernate.show_sql=true}
      2005-09-17 00:50:58,781 DEBUG [net.sf.ehcache.CacheManager] Creating new CacheManager with default config
      2005-09-17 00:50:58,781 DEBUG [net.sf.ehcache.CacheManager] Configuring ehcache from classpath.
      2005-09-17 00:50:58,796 WARN [net.sf.ehcache.config.Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/jboss-4.0.1sp1/server/default/tmp/deploy/tmp3962usjade_nda-exp.war/WEB-INF/lib/ehcache-0.9.jar!/ehcache-failsafe.xml
      2005-09-17 00:50:58,812 DEBUG [net.sf.ehcache.config.Configuration$DiskStore] Disk Store Path: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
      2005-09-17 00:50:59,187 ERROR [org.hibernate.proxy.BasicLazyInitializer] CGLIB Enhancement failed: com.usjade.nda.hibernate.LobDirector
      java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
      at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:96)
      at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
      at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
      at org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131)
      at org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)
      at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
      at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:246)
      at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:410)
      at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108)
      at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:219)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1127)
      at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:777)
      at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:703)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
      at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:81)
      at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:66)
      at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:57)
      at com.usjade.nda.spring.ApplicationContextFactory.getApplicationContext(ApplicationContextFactory.java:48)
      at com.usjade.nda.service.SearchService.(SearchService.java:31)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at java.lang.Class.newInstance0(Class.java:308)
      at java.lang.Class.newInstance(Class.java:261)
      at flashgateway.translator.ClassUtil.createInstance(ClassUtil.java:56)
      at flashgateway.adapter.java.JavaAdapter.invokeFunction(JavaAdapter.java:53)
      at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:117)
      at flashgateway.filter.MessageSecurityFilter.invoke(MessageSecurityFilter.java:144)
      at flashgateway.filter.ServiceNameFilter.invoke(ServiceNameFilter.java:101)
      at flashgateway.filter.EnvelopeFilter.invoke(EnvelopeFilter.java:102)
      at flashgateway.filter.SessionFilter.invoke(SessionFilter.java:28)
      at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:57)
      at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:39)
      at flashgateway.filter.LogFilter.invoke(LogFilter.java:46)
      at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63)
      at flashgateway.filter.PacketSecurityFilter.invoke(PacketSecurityFilter.java:68)
      at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38)
      at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:89)
      at flashgateway.Gateway.invoke(Gateway.java:217)
      at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)