JBAS014775: New missing/unsatisfied dependencies:
xsalefter Sep 17, 2012 5:43 AMI knew that there is a lot of question like this when deploying MySQL JDBC driver but, instead of hiject another member's thread, I'll start my own thread. This is happen even when I only configure the JNDI datasouce and not yet deploying my application to JBoss AS 7.1.1 server:
{code}
16:26:44,509 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
16:26:44,695 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
16:26:44,741 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
16:26:45,432 INFO [org.xnio] XNIO Version 3.0.3.GA
16:26:45,434 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
16:26:45,445 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
16:26:45,453 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
16:26:45,482 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
16:26:45,487 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
16:26:45,509 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
16:26:45,512 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
16:26:45,519 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
16:26:45,524 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
16:26:45,526 INFO [org.jboss.as.connector] (MSC service thread 1-15) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
16:26:45,529 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
16:26:45,539 INFO [org.jboss.as.security] (MSC service thread 1-10) JBAS013100: Current PicketBox version=4.0.7.Final
16:26:45,612 INFO [org.jboss.as.naming] (MSC service thread 1-13) JBAS011802: Starting Naming Service
16:26:45,637 INFO [org.jboss.as.mail.extension] (MSC service thread 1-14) JBAS015400: Bound mail session [java:jboss/mail/Default]
16:26:45,652 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:26:45,707 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
16:26:46,002 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-15) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
16:26:46,052 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory D:\JavaPlatform\ApplicationServer\jboss-as-7.1.1.Final\standalone\deployments
16:26:46,059 INFO [org.jboss.as.remoting] (MSC service thread 1-13) JBAS017100: Listening on /127.0.0.1:9999
16:26:46,059 INFO [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on localhost/127.0.0.1:4447
16:26:46,093 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-10) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
16:26:46,325 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.com_mysql (missing) dependents: [service jboss.data-source.java:jboss/datasources/mysqlDS]
16:26:46,335 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:26:46,336 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 2052ms - Started 134 of 212 services (2 services failed or missing dependencies, 74 services are passive or on-demand)
{code}
This is a snippet from my standalone.xml:
{code:xml}
<subsystem xmlns="urn:jboss:domain:datasources:1.0"><datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<datasource jndi-name="java:jboss/datasources/mysqlDS" pool-name="mysqlDS" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/taskroller_dev</connection-url>
<driver>com.mysql</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>root</user-name>
<password>admin</password>
</security>
<statement>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<share-prepared-statements />
</statement>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="mysql" module="com.mysql">
<driver-class>com.mysql.jdbc.Driver</driver-class>
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
{code:xml}
This is my module.xml:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.21.jar" />
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.transaction" />
</dependencies>
</module>
{code:xml}
And this is sreenshot from <jboss-install-dir>/modules/com/mysql/main:
My question is, did I miss something?
Message was edited by: xsa lefter. Reason: Code formatting.