6 Replies Latest reply on Jul 13, 2011 2:03 AM by Floh-VerbaVoice

    Install lcds: Hibernate problem

    Floh-VerbaVoice Level 1

      Hi,

      I tried following the steps in http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Installing/lcds31_install.html#JBo ss

       

      Here we're using OpenSuse with  JBoss 4.2.1. So I extracted lcds-samples.war to /opt/jboss/server/lc_mysql/deploy/lcds-samples.war/ then restarted JBoss. But there are errors:

       

      2011-07-07 13:22:40,139 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/lcds-samples, warUrl=.../deploy/lcds-samples.war/
      2011-07-07 13:14:23,285 INFO  [STDOUT] [LCDS][WARN] No login command was found for 'JBossWeb/2.0.0.GA'. Please ensure that the login-command tag has the correct server attribute value, or use 'all' to use the login command regardless of the server.
      2011-07-07 13:14:23,587 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Environment <clinit>
      INFO: Hibernate 3.2.5
      2011-07-07 13:14:23,593 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Environment <clinit>
      INFO: hibernate.properties not found
      2011-07-07 13:14:23,595 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Environment buildBytecodeProvider
      INFO: Bytecode provider name : cglib
      2011-07-07 13:14:23,598 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Environment <clinit>
      INFO: using JDK 1.4 java.sql.Timestamp handling
      2011-07-07 13:14:23,640 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Configuration configure
      INFO: configuring from resource: /hibernate.cfg.xml
      2011-07-07 13:14:23,641 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Configuration getConfigurationInputStream
      INFO: Configuration resource: /hibernate.cfg.xml
      2011-07-07 13:14:23,683 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Configuration addResource
      INFO: Reading mappings from resource : flex/samples/contact/Contact.hbm.xml
      2011-07-07 13:14:23,753 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
      INFO: Mapping class: flex.samples.contact.Contact -> contact
      2011-07-07 13:14:23,772 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.cfg.Configuration doConfigure
      INFO: Configured SessionFactory: null
      2011-07-07 13:14:23,824 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: Using Hibernate built-in connection pool (not for production use!)
      2011-07-07 13:14:23,824 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: Hibernate connection pool size: 1
      2011-07-07 13:14:23,825 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: autocommit mode: false
      2011-07-07 13:14:23,826 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost:9002/flexdemodb
      2011-07-07 13:14:23,827 ERROR [STDERR] Jul 7, 2011 1:14:23 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: connection properties: {user=sa, password=****}
      2011-07-07 13:14:24,237 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: RDBMS: HSQL Database Engine, version: 1.8.0
      2011-07-07 13:14:24,237 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      2011-07-07 13:14:24,251 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.dialect.Dialect <init>
      INFO: Using dialect: org.hibernate.dialect.HSQLDialect
      2011-07-07 13:14:24,263 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
      INFO: Using default transaction strategy (direct JDBC transactions)
      2011-07-07 13:14:24,266 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
      INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      2011-07-07 13:14:24,266 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Automatic flush during beforeCompletion(): disabled
      2011-07-07 13:14:24,267 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Automatic session close at end of transaction: disabled
      2011-07-07 13:14:24,267 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC batch size: 15
      2011-07-07 13:14:24,267 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC batch updates for versioned data: disabled
      2011-07-07 13:14:24,272 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Scrollable result sets: enabled
      2011-07-07 13:14:24,272 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC3 getGeneratedKeys(): disabled
      2011-07-07 13:14:24,273 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Connection release mode: auto
      2011-07-07 13:14:24,273 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Default batch fetch size: 1
      2011-07-07 13:14:24,274 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Generate SQL with comments: disabled
      2011-07-07 13:14:24,274 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Order SQL updates by primary key: disabled
      2011-07-07 13:14:24,275 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Order SQL inserts for batching: disabled
      2011-07-07 13:14:24,275 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
      INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      2011-07-07 13:14:24,277 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
      INFO: Using ASTQueryTranslatorFactory
      2011-07-07 13:14:24,278 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Query language substitutions: {}
      2011-07-07 13:14:24,278 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JPA-QL strict compliance: disabled
      2011-07-07 13:14:24,279 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Second-level cache: enabled
      2011-07-07 13:14:24,279 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Query cache: disabled
      2011-07-07 13:14:24,279 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory createCacheProvider
      INFO: Cache provider: org.hibernate.cache.NoCacheProvider
      2011-07-07 13:14:24,280 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Optimize cache for minimal puts: disabled
      2011-07-07 13:14:24,280 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Structured second-level cache entries: disabled
      2011-07-07 13:14:24,285 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Echoing all SQL to stdout
      2011-07-07 13:14:24,285 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Statistics: disabled
      2011-07-07 13:14:24,286 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Deleted entity synthetic identifier rollback: disabled
      2011-07-07 13:14:24,286 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Default entity-mode: pojo
      2011-07-07 13:14:24,287 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Named query checking : enabled
      2011-07-07 13:14:24,309 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.impl.SessionFactoryImpl <init>
      INFO: building session factory
      2011-07-07 13:14:24,490 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
      INFO: Not binding factory to JNDI, no JNDI name configured
      2011-07-07 13:14:24,630 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: Using Hibernate built-in connection pool (not for production use!)
      2011-07-07 13:14:24,631 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: Hibernate connection pool size: 1
      2011-07-07 13:14:24,631 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: autocommit mode: false
      2011-07-07 13:14:24,631 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost:9002/flexdemodb
      2011-07-07 13:14:24,632 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      INFO: connection properties: {user=sa, password=****}
      2011-07-07 13:14:24,636 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: RDBMS: HSQL Database Engine, version: 1.8.0
      2011-07-07 13:14:24,636 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      2011-07-07 13:14:24,637 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.dialect.Dialect <init>
      INFO: Using dialect: org.hibernate.dialect.HSQLDialect
      2011-07-07 13:14:24,638 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
      INFO: Using default transaction strategy (direct JDBC transactions)
      2011-07-07 13:14:24,638 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
      INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      2011-07-07 13:14:24,638 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Automatic flush during beforeCompletion(): disabled
      2011-07-07 13:14:24,639 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Automatic session close at end of transaction: disabled
      2011-07-07 13:14:24,639 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC batch size: 15
      2011-07-07 13:14:24,640 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC batch updates for versioned data: disabled
      2011-07-07 13:14:24,640 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Scrollable result sets: enabled
      2011-07-07 13:14:24,641 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JDBC3 getGeneratedKeys(): disabled
      2011-07-07 13:14:24,641 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Connection release mode: auto
      2011-07-07 13:14:24,641 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Default batch fetch size: 1
      2011-07-07 13:14:24,642 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Generate SQL with comments: disabled
      2011-07-07 13:14:24,642 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Order SQL updates by primary key: disabled
      2011-07-07 13:14:24,643 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Order SQL inserts for batching: disabled
      2011-07-07 13:14:24,643 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
      INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      2011-07-07 13:14:24,644 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
      INFO: Using ASTQueryTranslatorFactory
      2011-07-07 13:14:24,644 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Query language substitutions: {}
      2011-07-07 13:14:24,644 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: JPA-QL strict compliance: disabled
      2011-07-07 13:14:24,645 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Second-level cache: enabled
      2011-07-07 13:14:24,645 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Query cache: disabled
      2011-07-07 13:14:24,646 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory createCacheProvider
      INFO: Cache provider: org.hibernate.cache.NoCacheProvider
      2011-07-07 13:14:24,646 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Optimize cache for minimal puts: disabled
      2011-07-07 13:14:24,646 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Structured second-level cache entries: disabled
      2011-07-07 13:14:24,647 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Echoing all SQL to stdout
      2011-07-07 13:14:24,647 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Statistics: disabled
      2011-07-07 13:14:24,648 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Deleted entity synthetic identifier rollback: disabled
      2011-07-07 13:14:24,648 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Default entity-mode: pojo
      2011-07-07 13:14:24,648 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.cfg.SettingsFactory buildSettings
      INFO: Named query checking : enabled
      2011-07-07 13:14:24,652 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.impl.SessionFactoryImpl <init>
      INFO: building session factory
      2011-07-07 13:14:24,656 ERROR [STDERR] Jul 7, 2011 1:14:24 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
      INFO: Not binding factory to JNDI, no JNDI name configured
      

       

      I tried the following part in documentation (I know, we're not using 5.x but just to be sure if it helps):

      •There is a Hibernate library conflict issue when deploying LiveCycle Data Services applications to JBoss 5.x servers. You can avoid this issue by creating a jboss-classloading.xml file in the WEB-INF directory of your web application.The file must contain the following text. Change the references to the lcds-samples web application to match your web application name.

      <?xml version="1.0" encoding="UTF-8"?>
      <classloading xmlns="urn:jboss:classloading:1.0" name="lcds-samples.war"
      domain="lcds-samples_domain">
      parent-domain="Ignored"
      export-all="NON_EMPTY"
      import-all="true">
      </classloading>

       

      Unfortunatelly it didn't help. So could you help me please?

       

      cu Floh