12 Replies Latest reply on Sep 24, 2009 2:47 AM by Benoit Durruty

    Pb start jboss in windows service mode

    Benoit Durruty Newbie

      Hello,
      I try to start jboss in service windows on windows server 2003 r2 french.
      I ran on bin folder service.bat install.
      The new service appaired in the services list of windows.
      I started the service but I can't connect on my web site.
      If I stop the service and run jboss by run.bat, it's ok.
      In the run.log, I have these informations:

      Starting JBoss Application Server 5.1 [2009-09-08 15:08:56]
      Calling C:\jboss_home\bin\run.conf.bat
      JAVA_HOME is not set. Unexpected results may occur.
      Set JAVA_HOME to the directory of your local JDK to avoid this message.
      ===============================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: C:\jboss_home

      JAVA: java

      JAVA_OPTS: -Dprogram.name=run.bat -Xrs

      CLASSPATH: ;C:\jboss_home\bin\run.jar

      ===============================================================================

      15:08:58,202 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      15:08:58,202 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
      15:08:58,202 INFO [ServerImpl] Bootstrap URL: null
      15:08:58,202 INFO [ServerImpl] Home Dir: C:\jboss_home
      15:08:58,202 INFO [ServerImpl] Home URL: file:/C:/jboss_home/
      15:08:58,202 INFO [ServerImpl] Library URL: file:/C:/jboss_home/lib/
      15:08:58,202 INFO [ServerImpl] Patch URL: null
      15:08:58,202 INFO [ServerImpl] Common Base URL: file:/C:/jboss_home/common/
      15:08:58,202 INFO [ServerImpl] Common Library URL: file:/C:/jboss_home/common/lib/
      15:08:58,218 INFO [ServerImpl] Server Name: default
      15:08:58,218 INFO [ServerImpl] Server Base Dir: C:\jboss_home\server
      15:08:58,218 INFO [ServerImpl] Server Base URL: file:/C:/jboss_home/server/
      15:08:58,218 INFO [ServerImpl] Server Config URL: file:/C:/jboss_home/server/default/conf/
      15:08:58,218 INFO [ServerImpl] Server Home Dir: C:\jboss_home\server\default
      15:08:58,218 INFO [ServerImpl] Server Home URL: file:/C:/jboss_home/server/default/
      15:08:58,218 INFO [ServerImpl] Server Data Dir: C:\jboss_home\server\default\data
      15:08:58,218 INFO [ServerImpl] Server Library URL: file:/C:/jboss_home/server/default/lib/
      15:08:58,218 INFO [ServerImpl] Server Log Dir: C:\jboss_home\server\default\log
      15:08:58,218 INFO [ServerImpl] Server Native Dir: C:\jboss_home\server\default\tmp\native
      15:08:58,218 INFO [ServerImpl] Server Temp Dir: C:\jboss_home\server\default\tmp
      15:08:58,218 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss_home\server\default\tmp\deploy
      15:08:59,452 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss_home/server/default/conf/bootstrap.xml
      15:09:00,390 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
      15:09:00,406 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
      15:09:00,874 INFO [CopyMechanism] VFS temp dir: C:\jboss_home\server\default\tmp
      15:09:00,874 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
      15:09:02,937 INFO [ServerInfo] Java version: 1.6.0_16,Sun Microsystems Inc.
      15:09:02,937 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
      15:09:02,937 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 14.2-b01,Sun Microsystems Inc.
      15:09:02,937 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
      15:09:02,937 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xrs -Djava.endorsed.dirs=C:\jboss_home\lib\endorsed
      15:09:03,015 INFO [JMXKernel] Legacy JMX core initialized
      15:09:07,031 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@f6fd54[domain=default, server=default, name=default]
      15:09:11,265 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      15:09:23,140 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      15:09:23,140 INFO [NativeServerConfig] 3.1.2.GA
      15:09:24,468 INFO [AttributeCallbackItem] Owner callback not implemented.
      15:09:27,218 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@15151aa[ defaultDomain='jboss' ]
      15:09:44,265 ERROR [ProfileDeployAction] Failed to add deployment: admin-console.war
      org.jboss.deployers.spi.DeploymentException: Error populating deployment vfsfile:/C:/jboss_home/server/default/deploy/admin-console.war/
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder.populateContext(AbstractStructureBuilder.java:86)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:89)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      at java.util.zip.ZipFile$2.nextElement(Unknown Source)
      at java.util.zip.ZipFile$2.nextElement(Unknown Source)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:491)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:619)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:773)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
      at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
      at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
      at org.jboss.virtual.VFSUtils.getManifest(VFSUtils.java:252)
      at org.jboss.virtual.VFSUtils.addManifestLocations(VFSUtils.java:185)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder.applyContextInfo(VFSStructureBuilder.java:210)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder.populateContext(AbstractStructureBuilder.java:82)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:89)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      15:09:48,906 ERROR [ProfileDeployAction] Failed to add deployment: mail-ra.rar
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(mail-ra.rar)
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      at java.util.zip.InflaterInputStream.(Unknown Source)
      at java.util.zip.ZipFile$1.(Unknown Source)
      at java.util.zip.ZipFile.getInputStream(Unknown Source)
      at java.util.zip.ZipFile.getInputStream(Unknown Source)
      at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.openStream(ZipFileWrapper.java:214)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:560)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:619)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:773)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
      at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
      at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
      at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
      at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      15:10:35,062 ERROR [ProfileDeployAction] Failed to add deployment: PowerMobileWebApp.war
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(PowerMobileWebApp.war)
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      15:10:42,702 ERROR [ProfileDeployAction] Failed to add deployment: jmx-invoker-service.xml
      15:10:53,452 ERROR [ScopedProfileServiceController] Error installing to Deploy: name=ProfileKey@1d50fd2[domain=default, server=default, name=applications] state=Start mode=On Demand requiredState=Installed
      java.lang.OutOfMemoryError: Java heap space
      15:10:58,562 ERROR [STDERR] Failed to boot JBoss:
      15:10:58,562 ERROR [STDERR] java.lang.IllegalStateException: Incompletely deployed:

      *** PROFILES IN ERROR: Name -> Error
      Profile: ProfileKey@1d50fd2[domain=default, server=default, name=applications] in error due to java.lang.OutOfMemoryError: Java heap space

      *** PROFILES MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      ProfileKey@f6fd54[domain=default, server=default, name=default] is missing following dependencies: ProfileKey@1d50fd2[domain=default, server=default, name=applications]{Installed:**ERROR**}
      15:10:58,562 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.logErrors(AbstractProfileService.java:567)
      15:10:58,562 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.validate(AbstractProfileService.java:348)
      15:10:58,562 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.validateProfile(AbstractProfileService.java:331)
      15:10:58,562 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:272)
      15:10:58,562 ERROR [STDERR] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      15:10:58,562 ERROR [STDERR] at org.jboss.Main.boot(Main.java:221)
      15:10:58,562 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:556)
      15:10:58,562 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
      Shutdown JBoss Application Server 5.1 service [2009-09-08 15:16:45]

      Thanks for your help

      Sanouk

        • 1. Re: Pb start jboss in windows service mode
          Peter Johnson Master

          Always follow the "caused by" trail of the first exception stack trace. If you do that, you will see that the root cause is:

          Caused by: java.lang.OutOfMemoryError: Java heap space

          It looks like you have modified the run.bat because the typical heap settings did not show up in this line:

          JAVA_OPTS: -Dprogram.name=run.bat -Xrs

          What mechanism are you using to run JBoss AS as a service? The service.bat that comes with JBoss AS, or some other means?

          • 2. Re: Pb start jboss in windows service mode
            Benoit Durruty Newbie

            Hello Peter,

            JBoss is installed on a virtual machine with 512Ko mémory and 20Go HD space.
            I can run JBoss without service mode by lach start.bat -b 0.0.0.0 without problems.
            To install the service mode, I lauch "service.bat install" downloaded with JBoss 5.1.0 GA.
            When the service is installed, I lauch it.
            I modified nothing in the settings, I always use the default settings files.

            Thanks for your help

            Sanouk

            • 3. Re: Pb start jboss in windows service mode
              jaikiran pai Master

               

              JAVA_HOME is not set. Unexpected results may occur.
              Set JAVA_HOME to the directory of your local JDK to avoid this message.


              You probably haven't set the JAVA_HOME in the environment properties.


              • 4. Re: Pb start jboss in windows service mode
                Benoit Durruty Newbie

                Sorry but I set the envoronnement variable JAVA_HOME.
                I would be also the error when I started in normal mode (run.bat -b 0.0.0.0)

                Sanouk

                • 5. Re: Pb start jboss in windows service mode
                  Peter Johnson Master

                  Ah, but did you set JAVA_HOME in the "user variables" or in the "system variables" in the Environment Variables dialog? For a service, only the "system variables" are available (unless you set up a user for running JBoss AS as a service and you logged in as that user and set that user's variables.)

                  By the way, 512MB is too small - your performance will be horrible. The OS itself takes up that much space.

                  • 6. Re: Pb start jboss in windows service mode
                    Benoit Durruty Newbie

                    It's a good remark, it look where is my environment variable.
                    I know it's a little small for memory but it's a rented server for project research.
                    Sanouk

                    • 7. Re: Pb start jboss in windows service mode
                      Benoit Durruty Newbie

                      Hello,
                      I am terribly sorry for my long response, I has some problems with my server and jboss so I try the soluce in my dev computer (Win XP, 2Go RAM).
                      I set JAVA_HOME variable in "user variables" and "system variables".
                      I start the service jboos, it seems better but I have other problems.
                      The CPU charge for java.exe is 100% and I can't do anything.
                      In the run.log file I have these errors:

                      Starting JBoss Application Server 5.1 [2009-09-18 15:51:15]
                      Calling C:\jboss_home\bin\run.conf.bat
                      ===============================================================================

                      JBoss Bootstrap Environment

                      JBOSS_HOME: C:\jboss_home

                      JAVA: C:\Program Files\Java\jdk1.6.0_16\bin\java

                      JAVA_OPTS: -Dprogram.name=run.bat -Xrs -server

                      CLASSPATH: C:\jboss_home\bin\run.jar

                      ===============================================================================

                      15:51:24,043 INFO [ServerImpl] Starting JBoss (Microcontainer)...
                      15:51:24,054 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
                      15:51:24,054 INFO [ServerImpl] Bootstrap URL: null
                      15:51:24,054 INFO [ServerImpl] Home Dir: C:\jboss_home
                      15:51:24,054 INFO [ServerImpl] Home URL: file:/C:/jboss_home/
                      15:51:24,054 INFO [ServerImpl] Library URL: file:/C:/jboss_home/lib/
                      15:51:24,074 INFO [ServerImpl] Patch URL: null
                      15:51:24,074 INFO [ServerImpl] Common Base URL: file:/C:/jboss_home/common/
                      15:51:24,074 INFO [ServerImpl] Common Library URL: file:/C:/jboss_home/common/lib/
                      15:51:24,074 INFO [ServerImpl] Server Name: default
                      15:51:24,074 INFO [ServerImpl] Server Base Dir: C:\jboss_home\server
                      15:51:24,074 INFO [ServerImpl] Server Base URL: file:/C:/jboss_home/server/
                      15:51:24,074 INFO [ServerImpl] Server Config URL: file:/C:/jboss_home/server/default/conf/
                      15:51:24,074 INFO [ServerImpl] Server Home Dir: C:\jboss_home\server\default
                      15:51:24,074 INFO [ServerImpl] Server Home URL: file:/C:/jboss_home/server/default/
                      15:51:24,074 INFO [ServerImpl] Server Data Dir: C:\jboss_home\server\default\data
                      15:51:24,074 INFO [ServerImpl] Server Library URL: file:/C:/jboss_home/server/default/lib/
                      15:51:24,074 INFO [ServerImpl] Server Log Dir: C:\jboss_home\server\default\log
                      15:51:24,074 INFO [ServerImpl] Server Native Dir: C:\jboss_home\server\default\tmp\native
                      15:51:24,074 INFO [ServerImpl] Server Temp Dir: C:\jboss_home\server\default\tmp
                      15:51:24,074 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss_home\server\default\tmp\deploy
                      15:51:31,244 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss_home/server/default/conf/bootstrap.xml
                      15:51:39,669 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
                      15:51:39,669 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
                      15:51:40,624 INFO [CopyMechanism] VFS temp dir: C:\jboss_home\server\default\tmp
                      15:51:40,644 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                      15:51:43,781 INFO [ServerInfo] Java version: 1.6.0_16,Sun Microsystems Inc.
                      15:51:43,781 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
                      15:51:43,781 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.2-b01,Sun Microsystems Inc.
                      15:51:43,781 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                      15:51:43,801 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xrs -Djava.endorsed.dirs=C:\jboss_home\lib\endorsed
                      15:51:43,862 INFO [JMXKernel] Legacy JMX core initialized
                      15:51:49,210 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1e3bfb6[domain=default, server=default, name=default]
                      15:52:00,169 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                      15:52:26,491 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
                      15:52:26,491 INFO [NativeServerConfig] 3.1.2.GA
                      15:52:44,639 INFO [AttributeCallbackItem] Owner callback not implemented.
                      15:53:22,673 ERROR [BasicMBeanRegistry] Cannot register MBean
                      java.lang.OutOfMemoryError: Java heap space
                      at java.lang.String.substring(String.java:1939)
                      at java.lang.String.substring(String.java:1904)
                      at javax.management.modelmbean.DescriptorSupport.(DescriptorSupport.java:448)
                      at javax.management.modelmbean.ModelMBeanOperationInfo.createDefaultDescriptor(ModelMBeanOperationInfo.java:452)
                      at javax.management.modelmbean.ModelMBeanOperationInfo.(ModelMBeanOperationInfo.java:137)
                      at org.jboss.mx.metadata.MBeanInfoConversion.toModelMBeanInfo(MBeanInfoConversion.java:136)
                      at org.jboss.mx.modelmbean.XMBean.(XMBean.java:229)
                      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:202)
                      at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                      at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
                      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
                      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.registerMBeans(AbstractDeploymentContext.java:1030)
                      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.addComponent(AbstractDeploymentContext.java:722)
                      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.addComponent(AbstractDeploymentUnit.java:251)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:52)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      15:53:26,695 WARN [ClassLoaderManager] Unexpected error during load of:org.jboss.ha.framework.server.deployers.AbstractHAPartitionDependencyDeployer
                      java.lang.OutOfMemoryError: Java heap space
                      at java.util.Arrays.copyOf(Arrays.java:2786)
                      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
                      at org.jboss.classloader.plugins.ClassLoaderUtils.readBytes(ClassLoaderUtils.java:212)
                      at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:148)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:543)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
                      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                      at java.lang.ClassLoader.defineClass1(Native Method)
                      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
                      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
                      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                      15:53:29,229 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss_home/server/default/deployers/clustering-deployer-jboss-beans.xml state=PreReal mode=Manual requiredState=Real
                      org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/C:/jboss_home/server/default/deployers/clustering-deployer-jboss-beans.xml
                      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      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 org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                      at org.jboss.Main.boot(Main.java:221)
                      at org.jboss.Main$1.run(Main.java:556)
                      at java.lang.Thread.run(Thread.java:619)
                      Caused by: java.lang.NoClassDefFoundError: org/jboss/ha/framework/server/deployers/AbstractHAPartitionDependencyDeployer
                      at java.lang.ClassLoader.defineClass1(Native Method)
                      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
                      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
                      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:63)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
                      ... 34 more
                      Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.ha.framework.server.deployers.AbstractHAPartitionDependencyDeployer, msg=Java heap space
                      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:165)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                      ... 54 more
                      Caused by: java.lang.OutOfMemoryError: Java heap space
                      at java.util.Arrays.copyOf(Arrays.java:2786)
                      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
                      at org.jboss.classloader.plugins.ClassLoaderUtils.readBytes(ClassLoaderUtils.java:212)
                      at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:148)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:543)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
                      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
                      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                      at java.lang.ClassLoader.defineClass1(Native Method)
                      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
                      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
                      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
                      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
                      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
                      15:53:40,359 ERROR [BasicMBeanRegistry] Cannot register MBean
                      15:53:43,083 WARN [AbstractDeploymentContext] Unable to register deployment mbean DependenciesMDDeployer
                      javax.management.RuntimeErrorException
                      at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:182)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                      at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
                      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
                      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.registerMBeans(AbstractDeploymentContext.java:1030)
                      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.addComponent(AbstractDeploymentContext.java:722)
                      at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.addComponent(AbstractDeploymentUnit.java:251)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:52)
                      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      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 org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                      at org.jboss.Main.boot(Main.java:221)
                      at org.jboss.Main$1.run(Main.java:556)
                      at java.lang.Thread.run(Thread.java:619)
                      Caused by: java.lang.OutOfMemoryError: Java heap space
                      15:53:52,735 ERROR [BasicMBeanRegistry] Cannot register MBean
                      java.lang.OutOfMemoryError: Java heap space
                      15:55:23,715 ERROR [AbstractKernelController] Error installing to PreInstall: name=DeploymentAliasesParserDeployer state=Real
                      java.lang.OutOfMemoryError: Java heap space
                      Shutdown JBoss Application Server 5.1 service [2009-09-18 16:02:40]


                      I read OutofMemory, is that my problem?

                      Thanks

                      Sanouk

                      • 8. Re: Pb start jboss in windows service mode
                        Peter Johnson Master

                        I'll repeat an earlier observation:

                        PeterJ wrote:
                        It looks like you have modified the run.bat because the typical heap settings did not show up in this line:

                        JAVA_OPTS: -Dprogram.name=run.bat -Xrs


                        I suspect you read a post somewhere that you need to set -Xrs to prevent JBoss AS from responding to signals and shutting down. However, you set JAVA_OPTS improperly, overwriting the heap sizes and other settings that were made in run.conf.bat.

                        • 9. Re: Pb start jboss in windows service mode
                          Sarabjit Rupaal Newbie

                          Sanouk mentioned he is using the version "Release ID: JBoss [The Oracle] 5.1.0.GA".

                          In this release the strategy for VM configuration is bit complex from 5.0. The JAVA_OPTS are set to a nominal standard value by the run.conf.bat (which inturn is called via run.bat), value is set only if JAVA_OPTS are not set by any other means.

                          In Sanouk's case service.bat is setting JAVA_OPTS=-Xrs, hence it is not being changed by run.conf.bat as is visible from the logs:

                          JAVA_OPTS: -Dprogram.name=run.bat -Xrs -server


                          So in the absence of any memory arguments VM is giving the OutOfMemoryError.

                          To resolve you can apply two approaches & modify the service.bat appropriately:

                          Comment out the following so that they can be automatically be set via run.conf.bat.
                          rem set JAVA_OPTS=-Xrs


                          Or Specify the appropriate values for your memory requirements such as:

                          JAVA_OPTS=-Xrs -Xms256M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true



                          Regards
                          Sarabjit S. Rupaal


                            • 10. Re: Pb start jboss in windows service mode
                              jaikiran pai Master

                               

                              "s_rupaal" wrote:

                              In Sanouk's case service.bat is setting JAVA_OPTS=-Xrs, hence it is not being changed by run.conf.bat as is visible from the logs:



                              That's a good point. Looking at the service.bat that is shipped by default in AS 5.1.0 i see that the JAVA_OPTS=-Xrs is being set in that file. Effectively as you mention, the other JAVA_OPTS are being ignored from run.bat.conf. Looks like a bug. I'm surprised there haven't been other similar posts related to this, so far.


                              • 11. Re: Pb start jboss in windows service mode
                                jaikiran pai Master

                                 

                                "jaikiran" wrote:
                                Looks like a bug. I'm surprised there haven't been other similar posts related to this, so far.


                                It's already been reported in JIRA here https://jira.jboss.org/jira/browse/JBNATIVE-59