博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jboss数据库连接异常报错
阅读量:6092 次
发布时间:2019-06-20

本文共 2469 字,大约阅读时间需要 8 分钟。

运行Jboss

报错:
22:01:44,725 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) register: jboss.ws:context=,endpoint=org.tongda.busonline.facade.rest.impl.BusOnlineRestFacadeImpl
22:01:48,815 WARN [com.arjuna.ats.arjuna] (Transaction Expired Entry Monitor) ARJUNA012210: Unable to use InetAddress.getLocalHost() to resolve address.
22:01:49,153 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
22:03:20,960 INFO [stdout] (MSC service thread 1-2) 22:03:20,958 INFO [DruidDataSource] {dataSource-1} inited
22:03:26,238 INFO [stdout] (MSC service thread 1-2) 22:03:26,238 INFO [DruidDataSource] {dataSource-2} inited
22:04:05,074 INFO [stdout] (MSC service thread 1-2) 22:04:05,074 INFO [DruidDataSource] {dataSource-2} closed
22:04:05,076 INFO [stdout] (MSC service thread 1-2) 22:04:05,076 INFO [DruidDataSource] {dataSource-1} closed
22:04:05,273 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
22:04:05,273 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [] startup failed due to previous errors
22:04:05,308 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

解决方法:

配置静态IP
修改/etc/hosts文件 配置上自己主机的主机名
/etc/sysconfig/network
注意自己的主机名是否和其它主机名冲突

[root@Test0 src]# vi /etc/hosts

添加自己的主机名到 127.0.0.1 后面 注意有空格
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 Test0 localhost

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

转载于:https://blog.51cto.com/13172370/2043525

你可能感兴趣的文章
c# 连等算式都在做什么
查看>>
使用c:forEach 控制5个换行
查看>>
java web轻量级开发面试教程摘录,java web面试技巧汇总,如何准备Spring MVC方面的面试...
查看>>
使用ansible工具部署ceph
查看>>
linux系列博文---->深入理解linux启动运行原理(一)
查看>>
Android反编译(一) 之反编译JAVA源码
查看>>
结合当前公司发展情况,技术团队情况,设计一个适合的技术团队绩效考核机制...
查看>>
python-45: opener 的使用
查看>>
cad图纸转换完成的pdf格式模糊应该如何操作?
查看>>
Struts2与Struts1区别
查看>>
网站内容禁止复制解决办法
查看>>
Qt多线程
查看>>
我的友情链接
查看>>
想说一点东西。。。。
查看>>
css知多少(8)——float上篇
查看>>
NLB网路负载均衡管理器详解
查看>>
水平添加滚动条
查看>>
PHP中”单例模式“实例讲解
查看>>
VM EBS R12迁移,启动APTier . AutoConfig错误
查看>>
atitit.细节决定成败的适合情形与缺点
查看>>