0

我有一个简单的应用程序,它使用休眠来处理数据库。当我检查连接和主要方法中的一些方法时,一切都很好。但是当我将它部署在服务器上时,它会抛出

 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看到它?

4

1 回答 1

1

看这里:

https://community.jboss.org/wiki/DataSourceConfigurationInAS7

和这里

JBoss 7 上的 JDBC Postgresql 驱动程序

于 2013-07-07T13:13:17.633 回答