我无法在jboss as7中配置数据源

时间:2014-11-24 12:38:54

标签: java mysql netbeans jdbc jboss

当我右键点击项目时 - >解决数据源问题 - >添加连接 - >测试连接

我发现了这个错误

“不能建立到JDBC连接:MySQL的://本地主机:3306 / demodb的zeroDateTimeBehavior = convertToNull使用com.mysql.jdbc.Driver(拒绝访问用户 '为myuser' @ '本地主机'(使用密码:YES) )“

我已经在standalone.xml中检查了相同的所有配置,甚至搜索了很多但找不到所需的解决方案。

如果有人试一试,我会很高兴。

JBAS014775:    New missing/unsatisfied dependencies:`service jboss.naming.context.java.jboss.datasources.cfpDS (missing) dependents: [service jboss.persistenceunit."cfp-ejbs.jar#cfpPU"] 

18:01:58,430 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"cfp-ejbs.jar#cfpPU\"jboss.naming.context.java.jboss.datasources.cfpDSMissing[jboss.persistenceunit.\"cfp-ejbs.jar#cfpPU\"jboss.naming.context.java.jboss.datasources.cfpDS]"]}}}

0 个答案:

没有答案