Announcement Announcement Module
Collapse
No announcement yet.
Running spring batch adin with JNDI datasource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running spring batch adin with JNDI datasource

    Sorry title should be "Running spring batch admin with JNDI datasource"

    Hi,

    I am trying to run admin with JNDI Data-source but it is failling
    replacing
    Code:
    <bean id="dataSource"
    		class="org.apache.commons.dbcp.BasicDataSource">
    		<property name="driverClassName" value="com.mysql.jdbc.Driver" />
    		<property name="url" value="jdbc:mysql://servername/springbatch" />
    		<property name="username" value="user" />
    		<property name="password" value="user" />
    		<property name="testWhileIdle" value="${batch.jdbc.testWhileIdle}"/>
    		<property name="validationQuery" value="${batch.jdbc.validationQuery}"/>
    
    	</bean>
    with
    Code:
    <jee:jndi-lookup jndi-name="java:jboss/database/springbatchXADS" id="dataSource" expected-type="org.apache.commons.dbcp.BasicDataSource">
    in data-source-context.xml

    please let me know if i am missing something.

    I tried to google but no success.

    error log :
    Code:
    19:22:50,932 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
    19:22:51,110 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
    19:22:51,114 INFO  [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011907: Register module: Module "deployment.spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT.war:main" from Service Module Loader
    19:22:51,251 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart
    19:22:51,252 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT] startup failed due to previous errors
    19:22:51,253 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.web.deployment.default-host."/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT": 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_15]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]
    	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
    
    19:22:51,459 INFO  [org.jboss.as.server] (management-handler-thread - 12) JBAS015870: Deploy of deployment "spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host.\"/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT\"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host.\"/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT\": JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}
    19:22:51,461 INFO  [org.jboss.as.controller] (management-handler-thread - 12) JBAS014774: Service status report
    JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host."/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT": JBAS018040: Failed to start context
    
    19:22:51,488 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister module: Module "deployment.spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT.war:main" from Service Module Loader
    [2013-07-15 07:22:51,807] Artifact spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT.war: Error during artifact deployment. See server log for details.
    19:22:51,811 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment spring-batch-admin-sample-1.2.2.BUILD-SNAPSHOT.war in 345ms

  • #2
    I don't see nothing specific in the log related to problems with the DataSource.
    The error is JBAS018040: Failed to start context

    How did you configured the application to let jboss find the applicationContext?

    Comment

    Working...
    X