-->
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.  [ 2 posts ] 
Author Message
 Post subject: Eclipse-Galileo doesn't recognize ' localhost ' in url
PostPosted: Tue Jun 30, 2009 11:45 am 
Newbie

Joined: Tue Jun 30, 2009 11:30 am
Posts: 2
Hibernate doesn't recognize "hibernate.connection.url" value or "hibernate.connection.username" value. Eclipse-Galileo indicates that 'localhost' and 'cs' are spelled incorrectly. On a previously functional web application, hibernate fails to make a connection to mysql database 'd170'. 'localhost' in c:/Windows/system32/drivers/etc/hosts is 127.0.0.1. mysql-connector-java-5.1.7-bin.jar is in the proper place in the application server applib. This appears to be an easy problem, but I've spent several hours looking at it, and I can't come-up with a solution. Can someone help me? Thanks.

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/d170</property>
<property name="hibernate.connection.username">cs</property>
<property name="hibernate.connection.password">java</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">false</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping resource="assignment/mappings/hh_Employee.hbm.xml" />
<mapping resource="assignment/mappings/hh_Project.hbm.xml" />
<mapping resource="assignment/mappings/hh_Company.hbm.xml" />
<mapping resource="assignment/mappings/hh_TimeCard.hbm.xml" />
</session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject: Re: Eclipse-Galileo doesn't recognize ' localhost ' in url
PostPosted: Tue Jun 30, 2009 3:02 pm 
Newbie

Joined: Tue Jun 30, 2009 11:30 am
Posts: 2
I was able to get the "known good" web application to execute on Eclipse-Galileo despite the fact that my hibernate.cfg.xml file appears to have errors at "hibernate.connection.url" value and "hibernate.connection.username" value. I can't seem to find any settings in Eclipse that affect the red-underlines and the tool-tips that indicate a spelling error. I guess that it is just an annoyance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.