java项目启动服务器出错 10
用的公司的服务器,启动方式是tomcat-runjava.sql.SQLException:Io异常:TheNetworkAdaptercouldnotestablish...
用的公司的服务器,启动方式是tomcat-run
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!
java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!
还有这些错org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in file [C:\Documents and Settings\Administrator\桌面\sts-dws\dws-server\target\classes\spring\context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [C:\Documents and Settings\Administrator\桌面\sts-dws\dws-server\target\classes\spring\context.xml]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [C:\Documents and Settings\Administrator\桌面\sts-dws\dws-server\target\classes\spring\context.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: spring-jpa] Unable to build EntityManagerFactory 展开
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!
java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!
还有这些错org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in file [C:\Documents and Settings\Administrator\桌面\sts-dws\dws-server\target\classes\spring\context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [C:\Documents and Settings\Administrator\桌面\sts-dws\dws-server\target\classes\spring\context.xml]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [C:\Documents and Settings\Administrator\桌面\sts-dws\dws-server\target\classes\spring\context.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: spring-jpa] Unable to build EntityManagerFactory 展开
4个回答
展开全部
1。IP错误。
在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp
数据库服务器不正确:ping 服务器IP是否正确。不正确,将URL更改为正确
端口号错误:一般不会错误。
进行一下操作:在DOS上键入sqlplus,检查oracle是否开启
一却正常,执行下面第2步。
2。防火墙
如果机器上安装有放火墙,可能是服务器端口号屏蔽而造成的。关闭防火墙后,尝试重新连接。
仍然不行,执行第3步。
3。数据库监听未启动 修改PC上注册表中的ImagePath值。
在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp
数据库服务器不正确:ping 服务器IP是否正确。不正确,将URL更改为正确
端口号错误:一般不会错误。
进行一下操作:在DOS上键入sqlplus,检查oracle是否开启
一却正常,执行下面第2步。
2。防火墙
如果机器上安装有放火墙,可能是服务器端口号屏蔽而造成的。关闭防火墙后,尝试重新连接。
仍然不行,执行第3步。
3。数据库监听未启动 修改PC上注册表中的ImagePath值。
追问
ping得起
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
数据库链接异常
追问
咋整呢?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
看下配置对了木有
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你看下数据库 oracle 服务 与监听是否都连接了。
追问
怎么看,我连的是公司的数据库
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询