Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-263

Error during deployment of null while deploying JDBC data source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 7.0.0.CR1
    • 7.0.0.Alpha1
    • Server
    • None
    • Hide

      Create the a data source as follows inside standalone.xml file:

      <subsystem xmlns="urn:jboss:domain:datasources:1.0">
      <datasources>
      <datasource jndi-name="OracleDS" enabled="true" use-java-context="true" pool-name="OracleDS">
      <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:IDMAKER</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <module>com.database.oracle</module>
      <pool>
      <prefill>false</prefill>
      <use-strict-min>false</use-strict-min>
      </pool>
      <security>
      <user-name>dmkr_admin</user-name>
      <password>Admin12</password>
      </security>
      <validation>
      <validate-on-match>false</validate-on-match>
      <background-validation>false</background-validation>
      <useFastFail>false</useFastFail>
      </validation>
      <time-out>
      <set-tx-query-timeout>false</set-tx-query-timeout>
      </time-out>
      <statement>
      <share-prepared-statements>false</share-prepared-statements>
      </statement>
      </datasource>
      </datasources>
      </subsystem>

      Create a module.xml file in modules\com\database\oracle\main with this content:

      <module xmlns="urn:jboss:module:1.0" name="com.database.oracle">
      <resources>
      <resource-root path="ojdbc6.jar"/>
      <resource-root path="xdb.jar"/>
      </resources>
      <dependencies>
      <module name="system"/>
      </dependencies>
      </module>

      copy ojdbc6.jar and xdb.jar into the main directory and start JBOSS.

      Show
      Create the a data source as follows inside standalone.xml file: <subsystem xmlns="urn:jboss:domain:datasources:1.0"> <datasources> <datasource jndi-name="OracleDS" enabled="true" use-java-context="true" pool-name="OracleDS"> <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:IDMAKER</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <module>com.database.oracle</module> <pool> <prefill>false</prefill> <use-strict-min>false</use-strict-min> </pool> <security> <user-name>dmkr_admin</user-name> <password>Admin12</password> </security> <validation> <validate-on-match>false</validate-on-match> <background-validation>false</background-validation> <useFastFail>false</useFastFail> </validation> <time-out> <set-tx-query-timeout>false</set-tx-query-timeout> </time-out> <statement> <share-prepared-statements>false</share-prepared-statements> </statement> </datasource> </datasources> </subsystem> Create a module.xml file in modules\com\database\oracle\main with this content: <module xmlns="urn:jboss:module:1.0" name="com.database.oracle"> <resources> <resource-root path="ojdbc6.jar"/> <resource-root path="xdb.jar"/> </resources> <dependencies> <module name="system"/> </dependencies> </module> copy ojdbc6.jar and xdb.jar into the main directory and start JBOSS.
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration
    • Medium

    Description

      When I try to define a JDBC data source in standalone.xml file I get this error:

      16:49:05,640 DEBUG [modules] Module module:org.jboss.as.aggregate:main defined by default
      16:49:05,781 INFO [logging] Removing bootstrap log handlers
      16:49:07,000 INFO [org.jboss.remoting] (pool-1-thread-1) JBoss Remoting version 3.1.0.Beta2
      16:49:07,875 INFO [org.jboss.as.jmx.JMXConnectorService] (pool-1-thread-2) Starting remote JMX connector
      16:49:09,390 INFO [org.apache.coyote.http11.Http11Protocol] (pool-1-thread-1) Starting Coyote HTTP/1.1 on http-8080
      16:49:09,703 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (pool-1-thread-1) live server is starting..
      16:49:09,796 WARNING [org.hornetq.core.server.impl.HornetQServerImpl] (pool-1-thread-1) Security risk! It has been detected that the cluster admin user and password have
      not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
      16:49:10,203 INFO [org.jboss.as.connector] (pool-1-thread-2) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.Beta3)
      16:49:10,265 INFO [org.jboss.as.deployment] (pool-1-thread-2) Activating deployment: jdbc-local.rar
      16:49:10,328 WARN [org.jboss.vfs] (pool-1-thread-2) VFS was unable to set the URLStreamHandlerFactory. This will have unpredictable results
      16:49:10,609 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (pool-1-thread-1) Started Netty Acceptor version 3.2.1.Final-r2319 localhost:5445 for CORE protoc
      l
      16:49:10,625 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (pool-1-thread-1) Started Netty Acceptor version 3.2.1.Final-r2319 localhost:5455 for CORE protoc
      l
      16:49:10,625 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (pool-1-thread-1) HornetQ Server version 2.1.2.Final (Colmeia, 120) started
      16:49:11,031 INFO [org.jboss.as.connector.deployer.radeployer] (pool-1-thread-2) Required license terms for file:/C:/java/jboss-7.0.0.Alpha1/standalone/tmp/vfs/deployme
      t8fd40c46841880d3/jdbc-local.rar-824cb8cb9fbaa5a8/contents/
      16:49:11,203 ERROR [org.jboss.as.connector.deployer.dsdeployer] (pool-1-thread-2) Error during the deployment of null: java.lang.NullPointerException
      at org.jboss.jca.deployers.common.AbstractDsDeployer.createObjectsAndInjectValue(AbstractDsDeployer.java:157)
      at org.jboss.as.connector.deployers.processors.DsDeploymentProcessor$AS7Deployer.doDeploy(DsDeploymentProcessor.java:189)
      at org.jboss.as.connector.deployers.processors.DsDeploymentProcessor.processDeployment(DsDeploymentProcessor.java:116)
      at org.jboss.as.deployment.chain.DeploymentChainImpl.processDeployment(DeploymentChainImpl.java:60)
      at org.jboss.as.model.ServerDeploymentStartStopHandler.activate(ServerDeploymentStartStopHandler.java:201)
      at org.jboss.as.model.ServerDeploymentStartStopHandler.deploy(ServerDeploymentStartStopHandler.java:88)
      at org.jboss.as.model.ServerDeploymentStartStopHandler.deploy(ServerDeploymentStartStopHandler.java:72)
      at org.jboss.as.connector.subsystems.datasources.JDBCRARDeployService.start(JDBCRARDeployService.java:65)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:923)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_11]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_11]
      at java.lang.Thread.run(Thread.java:619) [:1.6.0_11]

      16:49:11,203 INFO [org.jboss.as.deployment] (pool-1-thread-2) Activating deployment: jdbc-xa.rar
      16:49:11,390 INFO [org.jboss.as.connector.deployer.radeployer] (pool-1-thread-2) Required license terms for file:/C:/java/jboss-7.0.0.Alpha1/standalone/tmp/vfs/deployme
      t8fd40c46841880d3/jdbc-xa.rar-e44d65dbfb7acab/contents/
      16:49:11,468 INFO [org.jboss.as.deployment] (pool-1-thread-2) Started FileSystemDeploymentService for directory C:\java\jboss-7.0.0.Alpha1\standalone\deployments
      16:49:11,484 INFO [org.jboss.as.server] (pool-1-thread-2) JBoss AS 7.0.0.Alpha1 "Halloween" started in 15297ms. - Services [Total: 151, On-demand: 7. Started: 144]

      Attachments

        Activity

          People

            smaestri@redhat.com Stefano Maestri
            joe_roberts_z_jira Carl Roberts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: