myeclipse+mysql+tomcat无法查找数据源???????
我已经导入mysql-comm....jar文件了,也配置了,怎么无法找到数据源?急啊?
JDBC Driver class not found: com.mysql.jdbc.Driver
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:66)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1815)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)
at register.HibernateUtil. <clinit> (HibernateUtil.java:18)
at register.RegisterServlet.doGet(RegisterServlet.java:33)
[解决办法]
文件放到tomcat里面
[解决办法]
换个驱动试试。
[解决办法]
是不是 mysql 的服务关了呀
或者连接属性配置错误
[解决办法]
同上