cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <v_pe...@ukr.net>
Subject Re: Cocoon 2.1.5 And Hibernate : startup issues
Date Fri, 30 Apr 2004 08:23:13 GMT
Hello iyy,

First of all check your hibernate settings. I suspect that
SQLServerDriver will not work with Sybase.

Next you may change log level of log4j used by hibernate from "INFO"
to "DEBUG" to see some error messages from hibernate.

And last why do you use "2.1 beta 5" of hibernate? You can use the
last "2.1.3" version.

hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver
and
hibernate.dialect=net.sf.hibernate.dialect.SybaseDialect

Friday, April 30, 2004, 11:02:49 AM, you wrote:

> Hi,

> Thanks for reply. No specific errors are listed.
> I placed some System.outs in Hibernate and found that,
> in Hibernate.cfg.Configuration.java , execution stops at the return
> statement
> of the function :

>  public SessionFactory buildSessionFactory() throws HibernateException {
>   secondPassCompile();
>   validate();
>   Environment.verifyProperties(properties);
>   Properties copy = new Properties();
>   copy.putAll(properties);
>   Settings settings = buildSettings();
>   configureCaches(settings);
>   log.info("finished configuring cache");
>   SessionFactoryImpl x = new SessionFactoryImpl(this, settings);
>   //return new SessionFactoryImpl(this, settings);
>   return x;
>  }

> Hibernate logs the following info:


> INFO [HttpProcessor[8080][4]] (Environment.java:432) - Hibernate 2.1 beta 5
> INFO [HttpProcessor[8080][4]] (Environment.java:466) - loaded properties
> from resource hibernate.properties:
> {hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDri
> ver, hibernate.cglib.use_reflection_optimizer=true,
> hibernate.cache.provider_class=net.sf.hibernate.cache.Hashtabl
> eCacheProvider, hibernate.max_fetch_depth=1,
> hibernate.dialect=net.sf.hibernate.dialect.SybaseDialect,
> hibernate.jdbc.use_streams_for_binary=true, hibernate.jdbc.batch_size=0,
> hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N',
> hibernate.use_outer_join=true, hibernate.connection.username
> =sa,
> hibernate.connection.url=jdbc:microsoft:sqlserver://myserver:1433;DatabaseNa
> me=dbname;User=sa;Password=;SelectMethod=cursor, hibernate.show_sql=true,
> hibernate.connection.password=, hibernate.statement_cache.size=25,
> hibernate.connection.pool_size=1}
> INFO [HttpProcessor[8080][4]] (Environment.java:480) - using java.io streams
> to persist binary types
> INFO [HttpProcessor[8080][4]] (Environment.java:481) - using CGLIB
> reflection optimizer
> INFO [HttpProcessor[8080][4]] (Configuration.java:794) - Configuration
> resource: /hibernate.cfg.xml
> INFO [HttpProcessor[8080][4]] (Configuration.java:285) - Mapping resource:
> apparelxml/part_category_master.hbm.xml
> INFO [HttpProcessor[8080][4]] (Binder.java:197) - Mapping class:
dbname.map_file->> table_name
> INFO [HttpProcessor[8080][4]] (Configuration.java:981) - Configured
> SessionFactory: null
> INFO [HttpProcessor[8080][4]] (Configuration.java:563) - processing
> one-to-many association mappings
> INFO [HttpProcessor[8080][4]] (Configuration.java:572) - processing
> one-to-one association property references
> INFO [HttpProcessor[8080][4]] (Configuration.java:597) - processing foreign
> key constraints
> INFO [HttpProcessor[8080][4]] (Dialect.java:82) - Using dialect:
> net.sf.hibernate.dialect.SybaseDialect
> INFO [HttpProcessor[8080][4]] (SettingsFactory.java:58) - Maximim outer join
> fetch depth: 1
> INFO [HttpProcessor[8080][4]] (SettingsFactory.java:62) - Use outer join
> fetching: true
> INFO [HttpProcessor[8080][4]] (DriverManagerConnectionProvider.java:41) -
> Using Hibernate built-in connection pool (not for production use!)
> INFO [HttpProcessor[8080][4]] (DriverManagerConnectionProvider.java:42) -
> Hibernate connection pool size: 1
> INFO [HttpProcessor[8080][4]] (DriverManagerConnectionProvider.java:71) -
> using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL:
> jdbc:microsoft:sqlserver://terra:1433;DatabaseName=apparelxmldev;User=sa;Pas
> sword=;SelectMethod=cursor
> INFO [HttpProcessor[8080][4]] (DriverManagerConnectionProvider.java:72) -
> connection properties: {user=sa, password=}
> INFO [HttpProcessor[8080][4]] (TransactionManagerLookupFactory.java:33) - No
> TransactionManagerLookup configured (in JTA environment, use of process
> level read-write cache is not recommended)
> INFO [HttpProcessor[8080][4]] (SettingsFactory.java:89) - Use scrollable
> result sets: true
> INFO [HttpProcessor[8080][4]] (SettingsFactory.java:96) - echoing all SQL to
> stdout
> INFO [HttpProcessor[8080][4]] (SettingsFactory.java:99) - Query language
> substitutions: {true=1, yes='Y', false=0, no='N'}
> INFO [HttpProcessor[8080][4]] (SettingsFactory.java:110) - cache provider:
> net.sf.hibernate.cache.HashtableCacheProvider
> INFO [HttpProcessor[8080][4]] (Configuration.java:990) - instantiating and
> configuring caches

> //STOPS HERE !!!!!!!!!!!!!

> //but in earliar version logs continuted as follows:

> INFO [HttpProcessor[8080][4]] (SessionFactoryImpl.java:118) - building
> session factory
> INFO [HttpProcessor[8080][4]] (SessionFactoryObjectFactory.java:82) - no
> JNDI name configured
> Hibernate: //my sql statement translated by Hibernate


> ----- Original Message -----
> From: "Peter Velychko" <v_peter@ukr.net>
> To: <users@cocoon.apache.org>
> Sent: Friday, April 30, 2004 12:49 PM
> Subject: Re: Cocoon 2.1.5 And Hibernate : startup issues


>> Hello iyy,
>>
>> Are you get any error messages?
>>
>> Friday, April 30, 2004, 7:58:08 AM, you wrote:
>>
>> > Hi,
>>
>> > I was successful in using Hibernate 2.1 under Cocoon 2.1.3.
>>
>> > But when I try to start Hibernate 2.1 under Cocoon 2.1.5 .
>>
>> > Hibernate fails when it tries to set up cache.
>>
>> > I think that it is an issue with either commons-*.jar or x*.jar files.
>>
>> > If any one knows how to solve this problem, please help.
>>
>> > Thanks in advance.
>>
>> > iyyappan
>>
>>
>> --
>> Best regards,
>> Peter Velychko
>> v_peter@ukr.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


-- 
Best regards,
Peter Velychko                            
v_peter@ukr.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message