4 Replies Latest reply on Aug 5, 2011 2:15 PM by P Mishra

    JBoss start Connection Exception

    P Mishra Newbie

      I just installed the JBoss 7 - jboss-as-7.0.0.Final and have no ears deployed. I am getting an error during start up in the domain mode (domain.bat). standalone.bat works fine.

       

      What's JBoss trying to connect to ? ... a datasource ?

       

       

      The error's below.

       

      [Host Controller] 08:51:14,499 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.0.GA
      [Host Controller] 08:51:15,529 ERROR


      (MSC service thread 1-4) MSC00001: Failed to start service jboss.host.controller.process-controller-connection: org.jboss.msc.service.StartException in

      service jboss.host.controller.process-controller-connection: java.net.ConnectException: Connection refused: connect

      [Host Controller]       at org.jboss.as.host.controller.ProcessControllerConnectionService.start(ProcessControllerConnectionService.java:125) [jboss-as-host-controller-7.0.0.Final.jar:7.0.0.Final]
      [Host Controller]       at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765) [jboss-msc-1
      .0.0.GA.jar:1.0.0.GA]
      [Host Controller]       at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291) [jboss-m
      sc-1.0.0.GA.jar:1.0.0.GA].

       

      Thanks in advance.

        • 1. Re: JBoss start Connection Exception
          Stuart Douglas Master

          It is trying to connect to the other service instances in the domain, as in domain mode there is more than one process. It it possible you have a firewall that is blocking this?

          1 of 1 people found this helpful
          • 2. Re: JBoss start Connection Exception
            P Mishra Newbie

            Thanks for replying. My company chose to use the standalone and am trying to get the applictaion deployed in there I am getting the exception below. I am using iBatis in the persistence layer ... is the exception related to that ?

             

            hc-sysmgmt-sample.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."hc-sysmgmt-sample.war".INST
            ALL: Failed to process phase INSTALL of deployment "hc-sysmgmt-sample.war"
                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
            Caused by: java.lang.NullPointerException
                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addProviderProperties(PersistenceUnitDeploymentProcessor.
            java:346)
                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:253)

                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.ja
            va:164)
                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:94)
                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
                    ... 5 more

            • 3. Re: JBoss start Connection Exception
              Scott Marlow Master

              No, the persistence issue is not causing the Connection refused error.  It sounds like two separate problems to me.

               

              What does your persistence.xml look like?  Currrently, AS7 works with Hibernate 4 as the persistence provider.  We added a way to work with Hibernate 3 as well recently.  I googled for information on IBatis but didn't get clear answers.  Is it a JPA 2.0 persistence provider?  We are also working on the ability to plug in other persistence providers (that effort is continuing on a git branch).

               

              Scott

              • 4. Re: JBoss start Connection Exception
                P Mishra Newbie

                No persistence xml is being used. The Spring is being bound to the iBatis in a context xml. The jndi definition to the datasource are being defined a spring context file and is used in iBatis definitions. The deployment's working fine in Weblogic. The error's appearing when I try to deploy the same war in JBoss AS7.

                 

                As per my knowledge iBatis doesnt match the JPA 2.0. It give's more control on SQL statements. Is iBatis in list of persistence provider plug ins that's being worked upon ?