码迷,mamicode.com
首页 > 其他好文 > 详细

服务启动报错

时间:2016-01-07 18:25:50      阅读:339      评论:0      收藏:0      [点我收藏+]

标签:managing   failed   source   error   

ERROR [com.deppon.foss.framework.server.components.jobgrid.GridJobStoreTX] (ServerService Thread Pool -- 48) ClusterManager: Error managing cluster: Failed to obtain DB connection from data source ‘myDS‘: java.sql.SQLException: Could not retrieve datasource via JNDI url ‘jdbc/fossds‘ java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/jdbc/fossds: org.quartz.JobPersistenceException: Failed to obtain DB connection from data source ‘myDS‘: java.sql.SQLException: Could not retrieve datasource via JNDI url ‘jdbc/fossds‘ java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/jdbc/fossds [See nested exception: java.sql.SQLException: Could not retrieve datasource via JNDI url ‘jdbc/fossds‘ java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/jdbc/fossds]


满满的都是数据源的报错,找来找去,原来是把数据库的用户的密码给改了,导致数据源配置文件里的用户名密码和真正的密码不相符,修改一下密码就可以了。。。数据源的报错一般都来看一下这个文件,想一下是不是你自己做了什么操作

/opt/jboss6/jboss-eap-6.2/standalone/configuration/standalone.xml  文件中

 <datasources>

                <datasource jndi-name="java:/jdbc/fossds" pool-name="foosDS" enabled="true" use-java-context="true">

                    <connection-url>jdbc:oracle:thin:@192.168.20.115:1521:hrdb</connection-url>

                    <driver>hr-oracle</driver>

                    <pool>

                        <min-pool-size>50</min-pool-size>

                        <max-pool-size>200</max-pool-size>

                    </pool>

                    <security>

                        <user-name>ehreos</user-name>

                        <password>dbhr115hr</password>

                    </security>

                    <validation>

                        <background-validation>true</background-validation>

                        <background-validation-millis>5000</background-validation-millis>

                        <exception-sorter class-name="org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter"/>

                    </validation>

                    <timeout>

                        <blocking-timeout-millis>30000</blocking-timeout-millis>

                        <idle-timeout-minutes>30</idle-timeout-minutes>

                    </timeout>

                </datasource>

就这两个红字的地方,一定要注意

服务启动报错

标签:managing   failed   source   error   

原文地址:http://10983441.blog.51cto.com/10973441/1732618

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!