6 Replies Latest reply on Jul 10, 2003 10:03 PM by xiaoyi

    when deploy the adapter,the error message coming up,please h

    xiaoyi Newbie

      when i deploy my adapter,the wrong message is below.My ejbadapter-service.xml is attached.
      could you tell me the reason?thanks
      !
      2003-07-04 10:23:03,799 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@3c59b045{ url=file:/E:/jboss4/jboss-head/build/output/jboss-4.0.0alpha/server/default/deploy/jca-res.rar, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: exception in init of file:/E:/jboss4/jboss-head/build/output/jboss-4.0.0alpha/server/default/deploy/jca-res.rar; - nested throwable: (java.lang.NullPointerException)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:581)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:557)
      at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
      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:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:529)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:233)
      at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      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:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1036)
      at $Proxy1.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:401)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      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:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
      at $Proxy6.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:218)
      at org.jboss.deployment.DeploymentInfo.start(DeploymentInfo.java:274)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1036)
      at $Proxy1.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:401)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      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:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:795)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:593)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:557)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:541)
      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:143)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:89)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:139)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:172)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:330)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:238)
      at org.jboss.Main.boot(Main.java:165)
      at org.jboss.Main$1.run(Main.java:403)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.lang.NullPointerException
      at org.dom4j.io.SAXReader.read(SAXReader.java:217)
      at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:435)
      at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:305)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:649)
      ... 79 more
      2003-07-04 10:23:04,019 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/E:/jboss4/jboss-head/build/output/jboss-4.0.0alpha/server/default/deploy/jca-res.rar -> file:/E:/jboss4/jboss-head/build/output/jboss-4.0.0alpha/server/default/deploy/jca-res.rar

        • 1. Re: when deploy the adapter,the error message coming up,plea
          Adrian Brock Master

          Since the error is in findDd,
          I suspect there is a problem with your dtd.
          The error reporting could be better.

          Regards,
          Adrian

          • 2. Re: when deploy the adapter,the error message coming up,plea
            xiaoyi Newbie

            to warjort.
            Could you tell me in detail?
            What is my dtd?
            is that the ra.xml?
            my adapter is involed of ra.xml and some class files.

            • 3. Re: when deploy the adapter,the error message coming up,plea
              Adrian Brock Master

              It is not a valid jar

              [ejort@htimes2 deleteme]$ jar -tf jca-res.rar
              Error in JAR file format. zip-style comment?
              [ejort@htimes2 deleteme]$ unzip -l jca-res.rar
              Archive: jca-res.rar
              End-of-central-directory signature not found. Either this file is not
              a zipfile, or it constitutes one disk of a multi-part archive. In the
              latter case the central directory and zipfile comment will be found on
              the last disk(s) of this archive.
              unzip: cannot find zipfile directory in one of jca-res.rar or
              jca-res.rar.zip, and cannot find jca-res.rar.ZIP, period.

              Regards,
              Adrian

              • 4. Re: when deploy the adapter,the error message coming up,plea
                xiaoyi Newbie

                hi ,warjort,thank you!
                what is the "ejort@htimes2 deleteme]$ "?
                Is it the ant command?
                And when i excute "jar -tf jca-res.rar" on command line of system.it is ok.
                whether is it the wrong of my adapter classes??

                i can't find the reason...
                - nested throwable: (java.lang.NullPointerException)
                at org.jboss.deployment.MainDeployer.init(MainDeployer.java:720)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
                at sun.reflect.GeneratedMethodAccessor36.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:549)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
                at $Proxy7.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:200)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
                at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
                at sun.reflect.GeneratedMethodAccessor7.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:549)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:392)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at


                • 5. Re: when deploy the adapter,the error message coming up,plea
                  Adrian Brock Master

                  It is a command prompt.

                  Maybe the jar was corrupted when you posted it
                  or when I tried to download it?
                  What does jar -tf jca-res.rar show for you?

                  Regards,
                  Adrian

                  • 6. Re: when deploy the adapter,the error message coming up,plea
                    xiaoyi Newbie

                    hi,warjort!
                    nothing is shown on the command screen when i try the command.
                    Now i post it again,and you will try it.
                    thanks!