Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2007, 05:27 PM
Member
 
Join Date: May 2007
Posts: 39
Nick15 is on a distinguished road
error in JBoss with hibernate, EJB3 and postgres
Hello
I am new in JBoss and appeared this error when I executed the application(EJB3) in JBoss (jboss-4.0.5.GA)



17:33:41,593 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)

17:33:41,609 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20

17:33:41,609 INFO [DriverManagerConnectionProvider] autocommit mode: true

17:33:41,625 INFO [DriverManagerConnectionProvider] using driver: org.postgresql.Driver at URL: jdbcostgresql://xxxxxx/xxxxxx

17:33:41,625 INFO [DriverManagerConnectionProvider] connection properties: {user=xxxx password=xxxx, autocommit=true, release_mode=auto}

17:33:41,640 WARN [SettingsFactory] Could not obtain connection metadata

java.sql.SQLException: No suitable driver

at java.sql.DriverManager.getConnection(DriverManager .java:545)

at java.sql.DriverManager.getConnection(DriverManager .java:140)

at org.hibernate.connection.DriverManagerConnectionPr ovider.getConnection(DriverManagerConnectionProvid er.java:110)

at org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:76)

at org.hibernate.cfg.Configuration.buildSettings(Conf iguration.java:1933)


any ideas?



Nick
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-08-2007, 06:17 PM
Member
 
Join Date: Apr 2007
Location: Pennsylvania,USA
Posts: 46
sandor is on a distinguished road
Well I am not a jBoss expert but in Tomcat you need to have the database driver in a certain folder under tomcat. Perhaps jBoss needs a database driver located someplace?
I have an instance of jboss up and running and it has my drivers in a lib folder under jboss/server/default/lib but if you gave the server a name then it would be
jboss/server/serverNameYouGaveIt/lib.
Check there and see if there is a driver in there.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-14-2007, 06:01 PM
Member
 
Join Date: May 2007
Posts: 38
Marty is on a distinguished road
you don´t load the driver

Check this things:
Have the jar with driver that you want to use IN the classpath
In the hibernate config has the driver property with the complete name of the driver´s class.
In PostgreSQL web site you can download the jar and its driver.

good luck
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-14-2007, 06:10 PM
Member
 
Join Date: Apr 2007
Location: Pennsylvania,USA
Posts: 46
sandor is on a distinguished road
I am pretty sure you need the driver in the jboss lib directory as well as in the classpath. Tomcat is the same way. No driver there, no connection.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate error Marty Database 4 06-04-2008 06:03 AM
Postgres and j2ee problem bbq Database 1 07-05-2007 05:30 AM
EJB3 question bbq Enterprise JavaBeans 2 07-04-2007 09:58 AM
Hibernate Error yuchuang Database 2 05-15-2007 11:24 AM
Tables In Ejb3 Alan Enterprise JavaBeans 1 05-10-2007 05:36 PM


All times are GMT +3. The time now is 04:16 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org