Yes, that is true, I had Hibernate 3.1
Now I have changed the jars at runtime and at tools to Hibernate 3.2.6 but the code error is still there.
This is my full stack:
INFO 230508 083809 [/generador] Initializing Spring root WebApplicationContext
INFO 230508 083809 ContextLoader Root WebApplicationContext: initialization started
INFO 230508 083809 XmlWebApplicationContext Refreshing org.springframework.web.context.support.XmlWebApplicationContext@943dc4: display name [Root WebApplicationContext]; startup date [Fri May 23 08:38:09 CEST 2008]; root of context hierarchy
INFO 230508 083809 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/datasource-jndi.xml]
INFO 230508 083809 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/dao.xml]
[/b]INFO 230508 083809 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/bl.xml]
INFO 230508 083809 XmlWebApplicationContext Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@943dc4]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc3c84
INFO 230508 083809 efaultListableBeanFactory Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc3c84: defining beans [dataSource,sessionFactory,transactionManager,driversBL,driversBLTarget,tablasBL,tablasBLTarget,hibernateBL,hibernateBLTarget]; root of factory hierarchy
INFO 230508 083809 Environment Hibernate 3.2.6
INFO 230508 083809 Environment hibernate.properties not found
INFO 230508 083809 Environment Bytecode provider name : cglib
INFO 230508 083809 Environment using JDK 1.4 java.sql.Timestamp handling
INFO 230508 083809 LocalSessionFactoryBean Building new Hibernate SessionFactory
INFO 230508 083809 ConnectionProviderFactory Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
INFO 230508 083810 SettingsFactory RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options
INFO 230508 083810 SettingsFactory JDBC driver: Oracle JDBC driver, version: 8.1.7.0.0
INFO 230508 083810 Dialect Using dialect: org.hibernate.dialect.OracleDialect
WARN 230508 083810 Oracle9Dialect The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
WARN 230508 083810 OracleDialect The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
INFO 230508 083810 TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
INFO 230508 083810 ctionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO 230508 083810 SettingsFactory Automatic flush during beforeCompletion(): disabled
INFO 230508 083810 SettingsFactory Automatic session close at end of transaction: disabled
INFO 230508 083810 SettingsFactory JDBC batch size: 15
INFO 230508 083810 SettingsFactory JDBC batch updates for versioned data: disabled
INFO 230508 083810 SettingsFactory Scrollable result sets: enabled
INFO 230508 083810 SettingsFactory JDBC3 getGeneratedKeys(): disabled
INFO 230508 083810 SettingsFactory Connection release mode: on_close
INFO 230508 083810 SettingsFactory Default batch fetch size: 1
INFO 230508 083810 SettingsFactory Generate SQL with comments: disabled
INFO 230508 083810 SettingsFactory Order SQL updates by primary key: disabled
INFO 230508 083810 SettingsFactory Order SQL inserts for batching: disabled
INFO 230508 083810 SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO 230508 083810 ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
INFO 230508 083810 SettingsFactory Query language substitutions: {}
INFO 230508 083810 SettingsFactory JPA-QL strict compliance: disabled
INFO 230508 083810 SettingsFactory Second-level cache: enabled
INFO 230508 083810 SettingsFactory Query cache: disabled
INFO 230508 083810 SettingsFactory Cache provider: org.hibernate.cache.NoCacheProvider
INFO 230508 083810 SettingsFactory Optimize cache for minimal puts: disabled
INFO 230508 083810 SettingsFactory Structured second-level cache entries: disabled
INFO 230508 083810 SettingsFactory Statistics: disabled
INFO 230508 083810 SettingsFactory Deleted entity synthetic identifier rollback: disabled
INFO 230508 083810 SettingsFactory Default entity-mode: pojo
INFO 230508 083810 SettingsFactory Named query checking : enabled
INFO 230508 083811 SessionFactoryImpl building session factory
INFO 230508 083811 ssionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
INFO 230508 083811 bernateTransactionManager Using DataSource [org.apache.tomcat.dbcp.dbcp.BasicDataSource@21447f] of Hibernate SessionFactory for HibernateTransactionManager
INFO 230508 083811 ContextLoader Root WebApplicationContext: initialization completed in 2913 ms
INFO 230508 083812 ContextLoaderPlugIn ContextLoaderPlugIn for Struts ActionServlet 'action, module '': initialization started
INFO 230508 083812 [/generador] Initializing WebApplicationContext for Struts ActionServlet 'action', module ''
INFO 230508 083812 XmlWebApplicationContext Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1edd9b3: display name [WebApplicationContext for namespace 'action-servlet']; startup date [Fri May 23 08:38:12 CEST 2008]; parent: org.springframework.web.context.support.XmlWebApplicationContext@943dc4
INFO 230508 083812 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/action-servlet.xml]
INFO 230508 083812 XmlWebApplicationContext Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1edd9b3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@a9a32c
INFO 230508 083812 efaultListableBeanFactory Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a9a32c: defining beans [/generador]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc3c84
INFO 230508 083812 ContextLoaderPlugIn Using context class 'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action'
INFO 230508 083812 ContextLoaderPlugIn ContextLoaderPlugIn for Struts ActionServlet 'action', module '': initialization completed in 31 ms
INFO 230508 083812 TilesPlugin Tiles definition factory loaded for module ''.
INFO 230508 083830 Configuracion Carga del fichero de propiedades file:/C:/java/apache-tomcat%205.5/webapps/generador/WEB-INF/classes/generador.properties
INFO 230508 083831 TilesRequestProcessor Tiles definition factory found for request processor ''.
INFO 230508 083831 BaseDispatchAction
INFO 230508 083949 BaseDispatchAction accion /generador.iniciar
INFO 230508 083949 BaseDispatchAction forward /seleccion-drivers.jsp
INFO 230508 083951 BaseDispatchAction
INFO 230508 083951 BaseDispatchAction accion /generador.aceptarSeleccionDrivers
INFO 230508 083951 DriversBL oracle.jdbc.driver.OracleDriver
INFO 230508 083951 DriversBL Conexion con la base de datos: extraccion de las tablas
INFO 230508 083951 GeneradorAction Ya se ha consultado la base de datos
INFO 230508 083951 BaseDispatchAction forward /seleccion-tablas.jsp
INFO 230508 083955 BaseDispatchAction
INFO 230508 083955 BaseDispatchAction accion /generador.almacenarDatos
INFO 230508 083955 GeneradorAction Tabla seleccionada 0: CAT_CATEGORIAS
INFO 230508 083955 TablasBL select * from CAT_CATEGORIAS
INFO 230508 083955 BaseDispatchAction forward /seleccion-parametros.jsp
INFO 230508 083959 BaseDispatchAction
INFO 230508 083959 BaseDispatchAction accion /generador.configuraPlantillas
INFO 230508 083959 JDBCMetaDataConfiguration Ignoring sessionfactory mapping
INFO 230508 083959 OverrideRepository Override file: c:\proyecto\generador\temp\hibernate.reveng.xml
INFO 230508 084000 ManagerConnectionProvider Using Hibernate built-in connection pool (not for production use!)
INFO 230508 084000 ManagerConnectionProvider Hibernate connection pool size: 20
INFO 230508 084000 ManagerConnectionProvider autocommit mode: false
INFO 230508 084000 ManagerConnectionProvider using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@des09:1521:orcl
INFO 230508 084000 ManagerConnectionProvider connection properties: {user=****, password=***}
INFO 230508 084000 SettingsFactory RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
INFO 230508 084000 SettingsFactory JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0
INFO 230508 084000 Dialect Using dialect: org.hibernate.dialect.OracleDialect
WARN 230508 084000 Oracle9Dialect The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
WARN 230508 084000 OracleDialect The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
INFO 230508 084000 TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
INFO 230508 084000 ctionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO 230508 084000 SettingsFactory Automatic flush during beforeCompletion(): disabled
INFO 230508 084000 SettingsFactory Automatic session close at end of transaction: disabled
INFO 230508 084000 SettingsFactory JDBC batch size: 15
INFO 230508 084000 SettingsFactory JDBC batch updates for versioned data: disabled
INFO 230508 084000 SettingsFactory Scrollable result sets: enabled
INFO 230508 084000 SettingsFactory JDBC3 getGeneratedKeys(): disabled
INFO 230508 084000 SettingsFactory Connection release mode: auto
INFO 230508 084000 SettingsFactory Default batch fetch size: 1
INFO 230508 084000 SettingsFactory Generate SQL with comments: disabled
INFO 230508 084000 SettingsFactory Order SQL updates by primary key: disabled
INFO 230508 084000 SettingsFactory Order SQL inserts for batching: disabled
INFO 230508 084000 SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO 230508 084000 ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
INFO 230508 084000 SettingsFactory Query language substitutions: {}
INFO 230508 084000 SettingsFactory JPA-QL strict compliance: disabled
INFO 230508 084000 SettingsFactory Second-level cache: enabled
INFO 230508 084000 SettingsFactory Query cache: disabled
INFO 230508 084000 SettingsFactory Cache provider: org.hibernate.cache.NoCacheProvider
INFO 230508 084000 SettingsFactory Optimize cache for minimal puts: disabled
INFO 230508 084000 SettingsFactory Structured second-level cache entries: disabled
INFO 230508 084000 SettingsFactory Statistics: disabled
INFO 230508 084000 SettingsFactory Deleted entity synthetic identifier rollback: disabled
INFO 230508 084000 SettingsFactory Default entity-mode: pojo
INFO 230508 084000 SettingsFactory Named query checking : enabled
INFO 230508 084006 ManagerConnectionProvider cleaning up connection pool: jdbc:oracle:thin:@des09:1521:orcl
ERROR 230508 084006 BaseDispatchAction c:\proyecto\generador\temp\model.xml:40: java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at com.iritec.generador.bl.HibernateBL.generar(HibernateBL.java:415)
at com.iritec.generador.bl.HibernateBL.configuracionHibernate(HibernateBL.java:62)
at com.iritec.generador.bl.HibernateBL$$FastClassByCGLIB$$d0b20932.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.iritec.generador.bl.HibernateBL$$EnhancerByCGLIB$$738b0b33.configuracionHibernate(<generated>)
at com.iritec.generador.controller.action.GeneradorAction.configuraPlantillas(GeneradorAction.java:359)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.iritec.generador.controller.action.BaseDispatchAction.execute(BaseDispatchAction.java:45)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass.secondPass(JDBCBinder.java:923)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1136)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1121)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:299)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:315)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 44 more
--- Nested Exception ---
java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass.secondPass(JDBCBinder.java:923)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1136)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1121)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:299)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:315)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at com.iritec.generador.bl.HibernateBL.generar(HibernateBL.java:415)
at com.iritec.generador.bl.HibernateBL.configuracionHibernate(HibernateBL.java:62)
at com.iritec.generador.bl.HibernateBL$$FastClassByCGLIB$$d0b20932.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.iritec.generador.bl.HibernateBL$$EnhancerByCGLIB$$738b0b33.configuracionHibernate(<generated>)
at com.iritec.generador.controller.action.GeneradorAction.configuraPlantillas(GeneradorAction.java:359)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.iritec.generador.controller.action.BaseDispatchAction.execute(BaseDispatchAction.java:45)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
INFO 230508 084006 BaseDispatchAction forward /error.jsp
INFO 230508 084006 ManagerConnectionProvider cleaning up connection pool: jdbc:oracle:thin:@des09:1521:orcl
Do you have more suggestions?
|