7 Replies Latest reply on May 21, 2004 4:07 AM by Dock Tsai

    nukes-ds.xml deploy fail

    Dock Tsai Newbie

      I am new to Jboss and Nukes. I try to setup the nukes according to the install instruction. But when I start the Jboss I get error. It seems the datasorce deploy fail. Can some body tell me what goes wrong..

      2004-05-19 13:31:22,771 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.3/server/default/deploy/nukes-ds.xml
      2004-05-19 13:31:22,831 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deloyment: file:/C:/jboss-3.2.3/server/default/deploy/nukes-ds.xml
      org.jboss.deployment.DeploymentException: exception in init of file:/C:/jboss-3.2.3/server/default/deploy/nukes-ds.xml; - nested throwable: (java.lang.IllegalArgumentException: The value of param jboss.server.data.dir must be a valid Java Object)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:722)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.IllegalArgumentException: The value of param jboss.server.data.dir must be a valid Java Object
      at org.apache.xalan.transformer.TransformerImpl.setParameter(TransformerImpl.java:1496)
      at org.jboss.deployment.XSLSubDeployer.setParameters(XSLSubDeployer.java:241)
      at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:199)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
      ... 48 more

        • 1. Re: nukes-ds.xml deploy fail
          jae Master

          The same story with the original nukes-ds.xml . I tried to make sure I can see mySQL data via SQuirreL...

          2004-05-20 20:53:11,875 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/jms/jms-ds.xml -> file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/jms/jms-ds.xml

          2004-05-20 20:53:11,875 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

          2004-05-20 20:53:11,875 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

          2004-05-20 20:53:11,885 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.XSLSubDeployer@4bfe6b

          2004-05-20 20:53:11,885 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

          2004-05-20 20:53:11,885 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

          org.jboss.deployment.DeploymentException: Could not read dd; - nested throwable: (java.io.FileNotFoundException: C:\Program%20Files\jboss-4.0.0DR3\server\default\deploy\nukes-ds.xml)

          at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:271)

          at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:191)

          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:728)

          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:663)

          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:636)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:324)

          at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:168)

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:469)

          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:174)

          at $Proxy7.deploy(Unknown Source)

          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:303)

          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:477)

          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)

          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)


          • 2. Re: nukes-ds.xml deploy fail
            Apprentice


            Looks like the nukes-ds.xml datasource definition file is not valid XML. Post it so we can have a look. Also check the JBoss JCA/JBoss forum http://www.jboss.org/index.html?module=bb&op=viewforum&f=136 for datasource issues.


            Sherman

            • 3. Re: nukes-ds.xml deploy fail
              alexj Newbie

              Can I post mine? exactly the same problem...

              <?xml version="1.0" encoding="UTF-8"?>
              
              <datasources>
               <local-tx-datasource>
               <jndi-name>NukesDS</jndi-name>
               <connection-url>jdbc:mysql://localhost:3306/nukes</connection-url>
               <driver-class>com.mysql.jdbc.Driver</driver-class>
               <user-name>nukes</user-name>
               <password>nukes</password>
               </local-tx-datasource>
              </datasources>



              • 4. Re: nukes-ds.xml deploy fail
                alexj Newbie

                The same story with the original nukes-ds.xml . I tried to make sure I can see mySQL data via SQuirreL...

                2004-05-20 20:53:11,875 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/jms/jms-ds.xml -> file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/jms/jms-ds.xml

                2004-05-20 20:53:11,875 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

                2004-05-20 20:53:11,875 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

                2004-05-20 20:53:11,885 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.XSLSubDeployer@4bfe6b

                2004-05-20 20:53:11,885 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

                2004-05-20 20:53:11,885 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.0DR3/server/default/deploy/nukes-ds.xml

                org.jboss.deployment.DeploymentException: Could not read dd; - nested throwable: (java.io.FileNotFoundException: C:\Program%20Files\jboss-4.0.0DR3\server\default\deploy\nukes-ds.xml)

                at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:271)

                at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:191)

                at org.jboss.deployment.MainDeployer.init(MainDeployer.java:728)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:663)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:636)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:324)

                at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:168)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:469)

                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:174)

                at $Proxy7.deploy(Unknown Source)

                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:303)

                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:477)

                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)

                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)


                • 5. Re: nukes-ds.xml deploy fail
                  Apprentice


                  Hi, alexj,

                  I'm pretty sure that Nukes does not work with JBoss 4.0.0 yet.

                  Is your driver jar on the JBoss classpath somewhere, like in server/default/lib?


                  Sherman

                  • 6. Re: nukes-ds.xml deploy fail
                    Dock Tsai Newbie

                    I am using Jboss 3.2.3 and the datasource file is directly copy from the nukes package. I check the log it seems the default hsql-ds.xml also fail too. following is my nukes-ds.xml.

                    <?xml version="1.0" encoding="UTF-8"?>
                    
                    <datasources>
                     <local-tx-datasource>
                     <jndi-name>NukesDS</jndi-name>
                     <connection-url>jdbc:mysql://localhost:3306/nukes</connection-url>
                     <driver-class>org.gjt.mm.mysql.Driver</driver-class>
                     <user-name>nukes</user-name>
                     <password>nukes</password>
                     </local-tx-datasource>
                    </datasources>
                    


                    I do put the mysql-connector-java-3.0.11-stable-bin.jar under server/default/lib and I test with a simple java program that I can really query from the nukes table.



                    • 7. Re: nukes-ds.xml deploy fail
                      Dock Tsai Newbie

                      I found what cause the error!!

                      Because I also try Apache cocoon before and follow the instruction to add newest lib for XML parser

                      under JDK jre/lib/endorsed/

                      xalan-2.6.0.jar
                      xercesImpl-2.6.2.jar
                      xml-apis.jar


                      after I remove the libs, everything go smooth.