0 Replies Latest reply on Jun 20, 2011 3:08 PM by sailla

    jboss6 v5 as windows service

    sailla Newbie

      Hey,

       

      thinking of using

       

      service.bat which uses (jbosssvc.exe)to install jboss6 v 5  as windows service.

      question is how to bind to a particular port or machine name. 

      thanks

      sailaja

       

       

      presently i am using Javaservice.exe to run jboss6 v5 as windows service. It is running in production now. but thing is it will not stop properly thereby the jboss will not start even after i try 3 or 4 times. Then i install jboss6 again in production. This is a highly becoming a problem.

      by the command

      net start  Jboss6

       

      and net stop Jboss 6

       

       

      script givenbelow

      :install
      JavaService.exe -install JBoss6 %1\jre\bin\%3\jvm.dll -Xmx384m -Djava.class.path=%1\lib\tools.jar;%2\bin\run.jar -Djboss.bind.address=IronMantisGX -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %2\bin\out.txt -current %2\bin
      goto eof

      :uninstall
      JavaService.exe -uninstall JBoss6
      goto eof

       

       

       

       

       

      The error which comes is

      2011-06-17 21:14:25,732 ERROR [org.jboss.profileservice.bootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "JMSConnectionFactoryManageMO" is missing the following dependencies:
          Dependency "<UNKNOWN JMSConnectionFactoryManageMO>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **")
        Deployment "JMSQueueManageMO" is missing the following dependencies:
          Dependency "<UNKNOWN JMSQueueManageMO>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **")
        Deployment "JMSServerMO" is missing the following dependencies:
          Dependency "<UNKNOWN JMSServerMO>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **")
        Deployment "JMSTopicManageMO" is missing the following dependencies:
          Dependency "<UNKNOWN JMSTopicManageMO>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **")
        Deployment "org.hornetq:module=JMS,name="InVMConnectionFactory",type=ConnectionFactory" is missing the following dependencies:
          Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "org.hornetq:module=JMS,name="NettyConnectionFactory",type=ConnectionFactory" is missing the following dependencies:
          Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "org.hornetq:module=JMS,name="NettyThroughputConnectionFactory",type=ConnectionFactory" is missing the following dependencies:
          Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "org.hornetq:module=JMS,type=Queue,name="DLQ"" is missing the following dependencies:
          Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "org.hornetq:module=JMS,type=Queue,name="ExpiryQueue"" is missing the following dependencies:
          Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "org.hornetq:module=JMS,type=Topic,name="topic/ironTopic"" is missing the following dependencies:
          Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**")

      DEPLOYMENTS IN ERROR:
        Deployment "JMSServerManager" is in error due to the following reason(s): java.lang.NullPointerException, **ERROR**
        Deployment "<UNKNOWN JMSServerMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **
        Deployment "<UNKNOWN JMSConnectionFactoryManageMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **
        Deployment "<UNKNOWN JMSTopicManageMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **
        Deployment "<UNKNOWN JMSQueueManageMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha7]
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha7]
      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.20100911-M5]
      at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118) [:0.1.0.Alpha1]
      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133) [:6.0.0.20100911-M5]
      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.20100911-M5]
      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
      at java.lang.Thread.run(Thread.java:619) [:1.6.0]

      2011-06-17 21:14:25,794 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-IronMantisGX%2F172.20.127.248-8080
      2011-06-17 21:14:25,810 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-IronMantisGX%2F172.20.127.248-8009
      2011-06-17 21:14:25,810 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.20100911-M5 "Neo"] Started in 34s:282ms