4 Replies Latest reply on Dec 23, 2008 4:32 AM by abhay gupta

    Error deploying MEJB to Jboss AS

    abhay gupta Newbie

      Please help, i am running jboss 5.0.0.GA simply by deploying the ejb-management.jar (MEJB) provided in the package itself from docs/example/jmx/ to the default/deploy folder and i am getting exception in Parsing i.e.

      06:40:18,905 WARN [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd
      ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/scratch/jboss-5.0.0.GA/server/default/deploy/ejb-management.jar state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/scratch/jboss-5.0.0.GA/server/default/deploy/ejb-management.jar
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: No route to host
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323)
      ... 27 more
      Caused by: java.net.NoRouteToHostException: No route to host
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.Socket.connect(Socket.java:520)
      at java.net.Socket.connect(Socket.java:470)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
      at sun.net.www.http.HttpClient.(HttpClient.java:231)
      at sun.net.www.http.HttpClient.New(HttpClient.java:304)
      at sun.net.www.http.HttpClient.New(HttpClient.java:321)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
      at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
      at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
      at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
      ... 35 more
      06:40:21,928 WARN [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS IN ERROR: Name -> Error

      vfszip:/scratch/jboss-5.0.0.GA/server/default/deploy/ejb-management.jar -> java.net.NoRouteToHostException: No route to host


      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
      loyersImpl.java:863)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)


      These errors i get when I deployed "ejb-management.jar" from docs/examples/jmx to server/default/deploy of jboss 5.0.0.GA .... itself



        • 1. Re: Error deploying MEJB to Jboss AS
          Ales Justin Master

          Does the app. server have an access to www?

          As you can see, it tries to connect here http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd :

          Caused by: java.net.NoRouteToHostException: No route to host
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
          at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
          at java.net.Socket.connect(Socket.java:520)
          at java.net.Socket.connect(Socket.java:470)
          at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
          at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
          at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
          at sun.net.www.http.HttpClient.(HttpClient.java:231)
          at sun.net.www.http.HttpClient.New(HttpClient.java:304)
          at sun.net.www.http.HttpClient.New(HttpClient.java:321)
          at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
          at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
          at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
          at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
          at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
          at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
          

          but has problems doing so.


          • 2. Re: Error deploying MEJB to Jboss AS
            abhay gupta Newbie

            ok ... i think app server is unable to connect to internet .... so may be unable to resolve that dtd .. thanks ..
            but well in earlier versions ... it seems to be working fine ... i have been using 4.0.2 and 4.2.X but i didn't received any such errors there ...

            and .. finally can you tell me how to make server able to use www ??

            • 3. Re: Error deploying MEJB to Jboss AS
              Ales Justin Master

               

              "abhayorc" wrote:

              and .. finally can you tell me how to make server able to use www ??

              There's probably a reason why the server is not seeing www. ;-)

              "abhayorc" wrote:

              but well in earlier versions ... it seems to be working fine ... i have been using 4.0.2 and 4.2.X but i didn't received any such errors there ...

              It was probably able to resolve stuff locally.
              And this is what you should do now as well - provide local (to a server) copies of the files.

              It's been a while since I had to do something similar,
              so I have little clue on how exactly to do this,
              but I guess many different parsing stuff faces similar problem,
              so it shouldn't be a huge problem finding some docs.


              • 4. Re: Error deploying MEJB to Jboss AS
                abhay gupta Newbie

                thanks a lot , the issue is resolved as i copied the dtd file itself in deployment folder ...