-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Hibernate Issues
PostPosted: Thu Feb 21, 2013 7:35 am 
Newbie

Joined: Mon Nov 05, 2012 1:28 am
Posts: 3
Hi,

can anybody help me for this issue in Hibernate.properties file not found.

This is the error which i am getting from my project.

[2/19/13 18:05:15:524 CST] 00000024 SystemErr R 26 [Default : 5] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GA

[2/19/13 18:05:15:527 CST] 00000024 SystemErr R 29 [Default : 5] INFO org.hibernate.cfg.Environment - hibernate.properties not found

[2/19/13 18:05:15:530 CST] 00000024 SystemErr R 32 [Default : 5] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist

[2/19/13 18:05:15:534 CST] 00000024 SystemErr R 36 [Default : 5] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling

[2/19/13 18:05:15:691 CST] 00000024 SystemErr R 193 [Default : 5] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.awpl.model.Appliedbenefits -> APPLIEDBENEFITS

[2/19/13 18:05:15:763 CST] 00000024 SystemErr R 265 [Default : 5] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.awpl.model.Clientpolicies -> CLIENTPOLICIES

[2/19/13 18:05:15:767 CST] 00000024 LocalSessionF I org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory Building new Hibernate SessionFactory
[2/19/13 18:05:15:770 CST] 00000024 SystemErr R 272 [Default : 5] INFO org.hibernate.cfg.HbmBinder - Mapping collection: com.awpl.model.Clientpolicies.appliedbenefitses -> APPLIEDBENEFITS

[2/19/13 18:05:15:812 CST] 00000024 SystemErr R 314 [Default : 5] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider

[2/19/13 18:05:15:997 CST] 00000024 SystemErr R 499 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - RDBMS: DB2/AIX64, version: SQL09056

[2/19/13 18:05:15:997 CST] 00000024 SystemErr R 499 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: IBM DB2 JDBC Universal Driver Architecture, version: 3.59.81

[2/19/13 18:05:16:026 CST] 00000024 SystemErr R 528 [Default : 5] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.DB2Dialect

[2/19/13 18:05:16:034 CST] 00000024 SystemErr R 536 [Default : 5] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)

[2/19/13 18:05:16:036 CST] 00000024 SystemErr R 538 [Default : 5] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

[2/19/13 18:05:16:036 CST] 00000024 SystemErr R 538 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled

[2/19/13 18:05:16:036 CST] 00000024 SystemErr R 538 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: on_close

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Default schema: db2inst1

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled

[2/19/13 18:05:16:037 CST] 00000024 SystemErr R 539 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

[2/19/13 18:05:16:039 CST] 00000024 SystemErr R 541 [Default : 5] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled

[2/19/13 18:05:16:040 CST] 00000024 SystemErr R 542 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled

[2/19/13 18:05:16:045 CST] 00000024 SystemErr R 547 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout

[2/19/13 18:05:16:046 CST] 00000024 SystemErr R 548 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled

[2/19/13 18:05:16:046 CST] 00000024 SystemErr R 548 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled

[2/19/13 18:05:16:046 CST] 00000024 SystemErr R 548 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo

[2/19/13 18:05:16:046 CST] 00000024 SystemErr R 548 [Default : 5] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled

[2/19/13 18:05:16:070 CST] 00000024 SystemErr R 572 [Default : 5] INFO org.hibernate.impl.SessionFactoryImpl - building session factory

[2/19/13 18:05:16:258 CST] 00000024 SystemErr R 760 [Default : 5] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured

[2/19/13 18:05:16:275 CST] 00000024 ContextLoader I org.springframework.web.context.ContextLoader initWebApplicationContext Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
[2/19/13 18:05:16:276 CST] 00000024 ContextLoader I org.springframework.web.context.ContextLoader initWebApplicationContext Root WebApplicationContext: initialization completed in 1040 ms
[2/19/13 18:05:16:401 CST] 00000024 servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [ClaimsWebAppEAR] [/ClaimsWebAppln] [action]: Initialization successful.
[2/19/13 18:05:16:405 CST] 00000024 webcontainer I com.ibm.ws.wswebcontainer.VirtualHost addWebApplication SRVE0250I: Web Module ClaimsWebApplication has been bound to dsia_host[PLADSSIT:80,PLADSSIT:8080,PLADSSIT:443,PLADSSIT:9082,PLADSSIT:9444,PLADSLPAR1:80,PLADSLPAR1:8080,PLADSLPAR1:443,PLADSLPAR1:9082,PLADSLPAR1:9444,localhost:80,localhost:8080,pladssit.awpl.com:8080,PLADSLPAR1:5060,PLADSLPAR1:5061,PLADSLPAR1:9443,PLADSSIT:5060,PLADSSIT:5061,PLADSSIT:9443,pladssit.awpl.com:80,pladssit.awpl.com:443,pladssit.awpl.com:9082,pladssit.awpl.com:9444,pladssit.awpl.com:5061,pladssit.awpl.com:5060,pladssit.awpl.com:9443].
[2/19/13 18:05:16:412 CST] 00000024 ApplicationMg A WSVR0221I: Application started: ClaimsWebAppEAR
[2/19/13 18:05:16:414 CST] 00000024 CompositionUn A WSVR0191I: Composition unit WebSphere:cuname=ClaimsWebAppEAR in BLA WebSphere:blaname=ClaimsWebAppEAR started.
SystemErr R 608 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled

[2/19/13 15:15:54:464 CST] 00000022 SystemErr R 608 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled

[2/19/13 15:15:54:464 CST] 00000022 SystemErr R 608 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: on_close

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Default schema: db2inst1

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled

[2/19/13 15:15:54:465 CST] 00000022 SystemErr R 609 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

[2/19/13 15:15:54:467 CST] 00000022 SystemErr R 611 [Default : 3] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled

[2/19/13 15:15:54:468 CST] 00000022 SystemErr R 612 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled

[2/19/13 15:15:54:473 CST] 00000022 SystemErr R 617 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout

[2/19/13 15:15:54:474 CST] 00000022 SystemErr R 618 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled

[2/19/13 15:15:54:474 CST] 00000022 SystemErr R 618 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled

[2/19/13 15:15:54:474 CST] 00000022 SystemErr R 618 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo

[2/19/13 15:15:54:474 CST] 00000022 SystemErr R 618 [Default : 3] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled

[2/19/13 15:15:54:498 CST] 00000022 SystemErr R 642 [Default : 3] INFO org.hibernate.impl.SessionFactoryImpl - building session factory

[2/19/13 15:15:54:686 CST] 00000022 SystemErr R 830 [Default : 3] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured


Top
 Profile  
 
 Post subject: Re: Hibernate Issues
PostPosted: Thu Feb 21, 2013 10:40 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
This is not an error. It's getting logged on INFO... Does the work as you wish? If so, there's no error.


Top
 Profile  
 
 Post subject: Re: Hibernate Issues
PostPosted: Fri Feb 22, 2013 1:26 am 
Newbie

Joined: Mon Nov 05, 2012 1:28 am
Posts: 3
CDillinger wrote:
This is not an error. It's getting logged on INFO... Does the work as you wish? If so, there's no error.


HI Dilinger,

But i am not getting the proper output which i want when i am checking the logs files after that its showing me this error and after that another line also showing that my application started. But i am getting confused on this error. If my application working fine and after that its showing me that hibernate.properties file not found.


Top
 Profile  
 
 Post subject: Re: Hibernate Issues
PostPosted: Fri Feb 22, 2013 2:37 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
None of my hibernate projects ever had a file named hibernate.properties. There must be something wrong with you mappings or with your source. The output you posted looks okay.


Top
 Profile  
 
 Post subject: Re: Hibernate Issues
PostPosted: Fri Feb 22, 2013 2:59 am 
Newbie

Joined: Mon Nov 05, 2012 1:28 am
Posts: 3
CDillinger wrote:
None of my hibernate projects ever had a file named hibernate.properties. There must be something wrong with you mappings or with your source. The output you posted looks okay.

Hi Dilinger,

Thanks for reply. I am showing you some internal code which i have done in my project. Please help where i have done the mistake. Actually what i did is in Spring Configuration file i kept my all hibernate configuration connectivity. Through this Spring Configuration files i am doing all mapping with hbm files. Please check this code and please help me on this scenarios.

spring-config.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
<property name="driverClassName"><value>com.ibm.db2.jcc.DB2Driver</value></property>
<property name="url"><value>jdbc:db2://DBDATAURL:50000/CLAIMSDB</value></property>
<property name="username"><value>system</value></property>

<property name="password"><value>password</value></property>
</bean>


<bean id="DatabaseHelper" class="com.awpl.pruindo.db.DBHelper">
<property name="dataSource"> <ref local="dataSource"/> </property>
<property name="schema"><value>system</value></property>
</bean>

<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource"><ref local="dataSource"/></property>
<property name="mappingResources">
<list>
<value>com/awpl/pruindo/config/Appliedbenefits.hbm.xml</value>
<value>com/awpl/pruindo/config/Clientpolicies.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.DB2Dialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.default_schema">system</prop>
</props>
</property>
</bean>

<bean id="HibernateSpringDaoTarget" class="com.awpl.pruindo.dao.hibernate.SpringHibernatDAOImpl">
<property name="sessionFactory"><ref local="sessionFactory"/></property>
</bean>

</beans>


Appliedbenefits.hbm.xml :

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Feb 10, 2010 7:47:54 PM by Hibernate Tools 3.2.4.GA -->
<hibernate-mapping>
<class name="com.awpl.model.Appliedbenefits" table="APPLIEDBENEFITS">
<composite-id name="id" class="com.awpl.model.AppliedbenefitsId">
<key-property name="benefitslno" type="short">
<column name="BENEFITSLNO" />
</key-property>
<key-property name="claimsslno" type="long">
<column name="CLAIMSSLNO"/>
</key-property>
<key-property name="polslno" type="short">
<column name="POLSLNO" />
</key-property>
</composite-id>
<many-to-one name="clientpolicies" class="com.awpl.model.Clientpolicies" update="false" insert="false" fetch="select">
<column name="CLAIMSSLNO" not-null="true" />
<column name="POLSLNO" not-null="true" />
</many-to-one>
<property name="claimnumber" type="string">
<column name="CLAIMNUMBER" length="15"/>
</property>
<property name="alterationnumber" type="string">
<column name="ALTERATIONNUMBER" />
</property>
<property name="alterationdate" type="date">
<column name="ALTERATIONDATE" length="10"/>
</property>
<property name="ridercode" type="string">
<column name="RIDERCODE" length="10" not-null="true" />
</property>
<property name="ridernumber" type="string">
<column name="RIDERNUMBER" length="10" not-null="true" />
</property>
<property name="riderstatus" type="string">
<column name="RIDERSTATUS" length="15" not-null="true" />
</property>
<property name="lifeassuredno" type="string">
<column name="LIFEASSUREDNO" length="10" not-null="true" />
</property>
<property name="coverageno" type="string">
<column name="COVERAGENO" length="15" not-null="true" />
</property>
<property name="clientnumber" type="string">
<column name="CLIENTNUMBER" length="15" not-null="true" />
</property>
<property name="sumassured" type="double">
<column name="SUMASSURED" precision="53" scale="0" not-null="true" />
</property>
<property name="appliedbenefit" type="string">
<column name="APPLIEDBENEFIT" length="5" not-null="true" />
</property>
<property name="alterationtype" type="string">
<column name="ALTERATIONTYPE" length="20" />
</property>
<property name="docid" type="string">
<column name="DOCID" length="10" not-null="true" />
</property>
</class>
</hibernate-mapping>

Clientpolicies.hbm.xml :

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Feb 10, 2010 7:47:54 PM by Hibernate Tools 3.2.4.GA -->
<hibernate-mapping>
<class name="com.awpl.model.Clientpolicies" table="CLIENTPOLICIES">
<composite-id name="id" class="com.awpl.model.ClientpoliciesId">
<key-property name="claimsslno" type="long">
<column name="CLAIMSSLNO" />
</key-property>
<key-property name="polslno" type="short">
<column name="POLSLNO" />
</key-property>
</composite-id>
<property name="policynumber" type="string">
<column name="POLICYNUMBER" length="10" not-null="true" />
</property>
<property name="processinstance" type="string">
<column name="PROCESSINSTANCE" length="150" not-null="true" />
</property>
<property name="processstatus" type="string">
<column name="PROCESSSTATUS" length="15" not-null="true" />
</property>
<property name="startdate" type="timestamp">
<column name="STARTDATE" length="26" not-null="true" />
</property>
<set name="appliedbenefitses" inverse="true" lazy="true" table="APPLIEDBENEFITS" fetch="select">
<key>
<column name="CLAIMSSLNO" not-null="true" />
<column name="POLSLNO" not-null="true" />
</key>
<one-to-many class="com.awpl.model.Appliedbenefits" />
</set>
</class>
</hibernate-mapping>


These are xml files can you please help me from this files where is the problem. Another thing that i am thinking that there is some problem in spring-config.xml files. Please help me.

Thanks & Regards
Sailendra Narayan Jena


Top
 Profile  
 
 Post subject: Re: Hibernate Issues
PostPosted: Fri Feb 22, 2013 3:05 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
Hibernate starts without an error and shows that it found two mappings:
[2/19/13 18:05:15:691 CST] 00000024 SystemErr R 193 [Default : 5] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.awpl.model.Appliedbenefits -> APPLIEDBENEFITS
[2/19/13 18:05:15:763 CST] 00000024 SystemErr R 265 [Default : 5] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.awpl.model.Clientpolicies -> CLIENTPOLICIES

There seems to be no TECHNICAL error with that mappings. So it can only be inside the code that submits a statement. Does hibernate send any statements to your database? Does it show an SQLError then or is it just that it doesn't give you the result you expect?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.