我有一个使用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看到它?
答案 0 :(得分:1)