找不到合适的司机

时间:2013-07-06 11:54:29

标签: postgresql jboss driver

我有一个使用hibernate与db一起工作的简单应用程序。当我在main方法中检查连接和一些方法时,一切都很好。但是当我在服务器上部署它时,它会抛出

 javax.servlet.ServletException: Cant instantiate class: managed.ClientsBean.

javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)

root cause:
com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: managed.ClientsBean.
...


 root cause: 
 javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
...

 root cause: 
org.hibernate.exception.JDBCConnectionException: Could not open connection

root cause 
java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:5432/project

但我也有jboss\standalone\deployments的那个司机。我怎么能让jboss看到它?