Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes JBoss AS7 deployment error relate with datasource missing dependents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss AS7 deployment error relate with datasource missing dependents" Watch "JBoss AS7 deployment error relate with datasource missing dependents" New topic
Author

JBoss AS7 deployment error relate with datasource missing dependents

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
I have deploy a war file in JBoss AS7 and when i enable it, it gives me the below error,

14:00:05,700 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "JSPServletPoc.war"
14:00:29,749 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
14:00:30,156 INFO [org.jboss.as.server] (HttpManagementService-threads - 7) JBAS015870: Deploy of deployment "JSPServletPoc.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.JSPServletPoc.JSPServletPoc.env.jdbc.MySQLDSJndijboss.naming.context.java.jboss.resources.jdbc.MySQLDSJndiMissing[jboss.naming.context.java.module.JSPServletPoc.JSPServletPoc.env.jdbc.MySQLDSJndijboss.naming.context.java.jboss.resources.jdbc.MySQLDSJndi]"]}
14:00:30,437 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment JSPServletPoc.war in 236ms
14:00:30,437 INFO [org.jboss.as.controller] (HttpManagementService-threads - 7) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.resources.jdbc.MySQLDSJndi (missing) dependents: [service jboss.naming.context.java.module.JSPServletPoc.JSPServletPoc.env.jdbc.MySQLDSJndi]



I have already configure a data source as MySQLDSJndi and enable it too.

I dont find any problem with setting the data source where i gave the data source name as MySQLDSJndi and the JNDI name as java:/MySQLDSJndi. Further I have given the user name and password and the connection url as jdbc:mysql://localhost:3306/testdb

Also i have a doubt why the error message,


I have checked inside the jar for file named “META-INF/services/java.sql.Driver” because that file is what makes the jar to be JDBC-compliant jar file and it exists too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss AS7 deployment error relate with datasource missing dependents
 
Similar Threads
How to Enable SSL on Tomcat 7 on Linux?
Chapter 3, Head First Servlets and JSP
Error in First Hibernate Example
Jboss 5.1 Jndi related problem
Step by steyp JNDI look up with jboss 7.1