1 2 Previous Next 20 Replies Latest reply on Apr 5, 2011 10:11 AM by peterj

    How to run JBoss AS as Windows Service

      I'm new to setting up JBoss AS on Windows, but I wonder what is the preferred way to install as service. I searched the internet and the forums for quite some time and I found two possible solutions.

      Executing service.bat install
      Using JavaService as described in the Installation And Getting Started Guide.

      Running service.bat fails as jbosssvc.exe reports some strange error (Fehler in .EXE Datei). I already submitted a bug report for that. https://jira.jboss.org/jira/browse/JBAS-6613
      Java Service package seems to be quite old... Does it still work?
      Please advise!

        • 1. Re: How to run JBoss AS as Windows Service
          jaikiran

          Which version of AS do you use? And do you see that error in a popup message?

          • 2. Re: How to run JBoss AS as Windows Service

            Oops, sorry...

            I use JBoss AS 5.0.1GA.
            I am trying to install JBoss as windows service by executing service.bat install on the command line - no graphical interface. I get the error on Windows XP and Windows Server 2003. See my bug report for that issue.

            My question is more general: What is the preferred way to start JBoss as Windows Service?
            Using Java Service or jbosssvc.exe?

            The last option does not even work at the moment, although the README describes the installation procedure in the /bin directory...

            • 3. Re: How to run JBoss AS as Windows Service
              jaikiran

               

              "jochen.reinhardt" wrote:


              My question is more general: What is the preferred way to start JBoss as Windows Service?
              Using Java Service or jbosssvc.exe?

              Using JBoss Native (=jbosssvc.exe).


              • 4. Re: How to run JBoss AS as Windows Service
                jaikiran

                Can you post the entire console output when you run that command?

                • 5. Re: How to run JBoss AS as Windows Service

                  That is the complete console output:
                  Error in .EXE Datei
                  No more. It seems to be broken. Maybe it is missing some kind of runtime environment like Visual Studio 200X to work.

                  I tried it on several PCs, with several download attempts - the same result everywhere. Currently I am installing another test system. Maybe I can find out more details.

                  How is jbosssvc.exe compiled / linked? Is it a 32 or 64 bit binary?

                  • 6. Re: How to run JBoss AS as Windows Service
                    dimitris

                    I think it's a 32-bit binary that can run on both 32/64.

                    • 7. Re: How to run JBoss AS as Windows Service
                      dimitris

                      Ok, I think I've found it. When the file gets copied, filtering was *enabled* and this probably alters the binary content.

                       <!-- Compile bin scripts -->
                       <target name="compile-bin" depends="init">
                       <mkdir dir="${build.bin}"/>
                       <copy todir="${build.bin}" filtering="yes">
                      


                      • 8. Re: How to run JBoss AS as Windows Service
                        dimitris

                        Can you try the file attached to the case?
                        https://jira.jboss.org/jira/browse/JBAS-6613

                        • 9. Re: How to run JBoss AS as Windows Service

                          I'll try that as soon as my system here is set up. I'm in a different office today, so I do not have access to the system where the errors had occured. I'll give you an update as soon as possible.

                          Thanks a lot in advance.

                          • 10. Re: How to run JBoss AS as Windows Service

                            The attached file works a treat. Thanks a lot again. Very good job!

                            • 11. Re: How to run JBoss AS as Windows Service
                              yhovart

                              Hi,

                              I'm getting similar problems running JBoss 5.1.0-GA as a service on Windows using service.bat :

                              service.bat install works fine
                              service.bat start does not

                              I've tried with the jbosssvs.exe file attached to the JIRA.

                              Here is the run.log i get running on my developement computer:

                              Starting JBoss Application Server 5.1 [2009-06-04 17:06:43]
                              Calling C:\_dev\jboss-5.1.0.GA\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:\_dev\jboss-5.1.0.GA
                              
                               JAVA: java
                              
                               JAVA_OPTS: -Dprogram.name=run.bat -Xrs
                              
                               CLASSPATH: ;C:\_dev\jboss-5.1.0.GA\bin\run.jar
                              
                              ===============================================================================
                              
                              17:06:44,203 INFO [ServerImpl] Starting JBoss (Microcontainer)...
                              17:06:44,203 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
                              17:06:44,203 INFO [ServerImpl] Bootstrap URL: null
                              17:06:44,203 INFO [ServerImpl] Home Dir: C:\_dev\jboss-5.1.0.GA
                              17:06:44,203 INFO [ServerImpl] Home URL: file:/C:/_dev/jboss-5.1.0.GA/
                              17:06:44,203 INFO [ServerImpl] Library URL: file:/C:/_dev/jboss-5.1.0.GA/lib/
                              17:06:44,203 INFO [ServerImpl] Patch URL: null
                              17:06:44,203 INFO [ServerImpl] Common Base URL: file:/C:/_dev/jboss-5.1.0.GA/common/
                              17:06:44,203 INFO [ServerImpl] Common Library URL: file:/C:/_dev/jboss-5.1.0.GA/common/lib/
                              17:06:44,203 INFO [ServerImpl] Server Name: default
                              17:06:44,203 INFO [ServerImpl] Server Base Dir: C:\_dev\jboss-5.1.0.GA\server
                              17:06:44,203 INFO [ServerImpl] Server Base URL: file:/C:/_dev/jboss-5.1.0.GA/server/
                              17:06:44,203 INFO [ServerImpl] Server Config URL: file:/C:/_dev/jboss-5.1.0.GA/server/default/conf/
                              17:06:44,203 INFO [ServerImpl] Server Home Dir: C:\_dev\jboss-5.1.0.GA\server\default
                              17:06:44,203 INFO [ServerImpl] Server Home URL: file:/C:/_dev/jboss-5.1.0.GA/server/default/
                              17:06:44,203 INFO [ServerImpl] Server Data Dir: C:\_dev\jboss-5.1.0.GA\server\default\data
                              17:06:44,203 INFO [ServerImpl] Server Library URL: file:/C:/_dev/jboss-5.1.0.GA/server/default/lib/
                              17:06:44,203 INFO [ServerImpl] Server Log Dir: C:\_dev\jboss-5.1.0.GA\server\default\log
                              17:06:44,203 INFO [ServerImpl] Server Native Dir: C:\_dev\jboss-5.1.0.GA\server\default\tmp\native
                              17:06:44,203 INFO [ServerImpl] Server Temp Dir: C:\_dev\jboss-5.1.0.GA\server\default\tmp
                              17:06:44,203 INFO [ServerImpl] Server Temp Deploy Dir: C:\_dev\jboss-5.1.0.GA\server\default\tmp\deploy
                              17:06:44,671 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/_dev/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
                              17:06:45,078 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
                              17:06:45,093 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
                              17:06:45,296 INFO [CopyMechanism] VFS temp dir: C:\_dev\jboss-5.1.0.GA\server\default\tmp
                              17:06:45,296 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                              17:06:46,140 INFO [ServerInfo] Java version: 1.6.0_12,Sun Microsystems Inc.
                              17:06:46,140 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
                              17:06:46,140 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.2-b01,Sun Microsystems Inc.
                              17:06:46,140 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                              17:06:46,156 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xrs -Djava.endorsed.dirs=C:\_dev\jboss-5.1.0.GA\lib\endorsed
                              17:06:46,171 INFO [JMXKernel] Legacy JMX core initialized
                              17:06:47,562 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@71d29a[domain=default, server=default, name=default]
                              17:06:49,031 INFO [WebService] Using RMI server codebase: http://10.0.0.199:8083/
                              17:06:53,562 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
                              17:06:53,562 INFO [NativeServerConfig] 3.1.2.GA
                              17:06:54,562 INFO [AttributeCallbackItem] Owner callback not implemented.
                              17:06:56,937 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@15a3a1[ defaultDomain='jboss' ]
                              17:07:10,859 ERROR [ProfileDeployAction] Failed to add deployment: jbossweb.sar
                              org.jboss.deployers.spi.DeploymentException: Error populating deployment vfsfile:/C:/_dev/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/
                               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.Arrays.copyOf(Unknown Source)
                               at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
                               at java.lang.AbstractStringBuilder.append(Unknown Source)
                               at java.lang.StringBuilder.append(Unknown Source)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.initPath(AbstractVirtualFileHandler.java:419)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.getPathName(AbstractVirtualFileHandler.java:220)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.readLocalPathName(AbstractVirtualFileHandler.java:260)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.getLocalPathName(AbstractVirtualFileHandler.java:244)
                               at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:583)
                               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)
                              17:07:16,125 ERROR [ProfileDeployAction] Failed to add deployment: instances.war
                              org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(instances.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
                               at java.util.Arrays.copyOfRange(Unknown Source)
                               at java.lang.String.<init>(Unknown Source)
                               at java.lang.StringBuilder.toString(Unknown Source)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.getPathName(AbstractVirtualFileHandler.java:221)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.readLocalPathName(AbstractVirtualFileHandler.java:260)
                               at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.getLocalPathName(AbstractVirtualFileHandler.java:244)
                               at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:583)
                               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)
                              17:07:20,046 ERROR [ProfileDeployAction] Failed to add deployment: scheduler-service.xml
                              17:07:25,765 ERROR [ScopedProfileServiceController] Error installing to Deploy: name=ProfileKey@1662250[domain=default, server=default, name=applications] state=Start mode=On Demand requiredState=Installed
                              17:07:29,906 ERROR [STDERR] Failed to boot JBoss:
                              17:07:30,218 ERROR [STDERR] java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
                              17:07:30,593 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:310)
                              17:07:31,218 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                              17:07:31,843 ERROR [STDERR] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                              17:07:31,843 ERROR [STDERR] at org.jboss.Main.boot(Main.java:221)
                              17:07:32,156 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:556)
                              17:07:32,781 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
                              17:07:33,093 ERROR [STDERR] Caused by: java.lang.OutOfMemoryError: Java heap space
                              



                              Here is the one on the production station:

                              2009-06-04 17:22:37,449 INFO [org.apache.coyote.http11.Http11Protocol] (main) Initialisation de Coyote HTTP/1.1 sur http-xxxxxxxx%2Fxx.x.x.xx-8080
                              2009-06-04 17:22:37,464 INFO [org.apache.coyote.ajp.AjpProtocol] (main) Initializing Coyote AJP/1.3 on ajp-xxxx-xxxx%2Fxx.x.x.xx-8009
                              2009-06-04 17:22:37,480 INFO [org.apache.catalina.core.StandardService] (main) D�marrage du service jboss.web
                              2009-06-04 17:22:37,495 INFO [org.apache.catalina.core.StandardEngine] (main) Starting Servlet Engine: JBoss Web/2.1.3.GA
                              2009-06-04 17:22:37,542 INFO [org.apache.catalina.startup.Catalina] (main) Server startup in -9803 ms
                              2009-06-04 17:22:39,449 INFO [org.quartz.simpl.SimpleThreadPool] (main) Job execution threads will use class loader of thread: main
                              2009-06-04 17:22:39,496 INFO [org.quartz.core.QuartzScheduler] (main) Quartz Scheduler v.1.5.2 created.
                              2009-06-04 17:22:39,496 INFO [org.quartz.simpl.RAMJobStore] (main) RAMJobStore initialized.
                              2009-06-04 17:22:39,496 INFO [org.quartz.impl.StdSchedulerFactory] (main) Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
                              2009-06-04 17:22:39,496 INFO [org.quartz.impl.StdSchedulerFactory] (main) Quartz scheduler version: 1.5.2
                              2009-06-04 17:22:39,496 INFO [org.quartz.core.QuartzScheduler] (main) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                              2009-06-04 17:22:42,121 INFO [javax.enterprise.resource.webcontainer.jsf.config] (main) Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
                              2009-06-04 17:22:59,436 INFO [javax.enterprise.resource.webcontainer.jsf.config] (main) Initializing Mojarra (1.2_12-b01-FCS) for context '/instances'
                              2009-06-04 17:22:59,436 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (main) JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
                              2009-06-04 17:23:04,202 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/instances]] (main) Initializing Spring root WebApplicationContext
                              2009-06-04 17:23:10,515 ERROR [org.springframework.web.context.ContextLoader] (main) Context initialization failed
                              2009-06-04 17:23:16,532 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/instances]] (main) Exception lors de l'envoi de l'�v�nement contexte initialis� (context initialized) � l'instance de classe d'�coute (listener) org.springframework.web.context.ContextLoaderListener
                              java.lang.OutOfMemoryError: PermGen space
                               at org.apache.commons.logging.impl.Log4jProxy.log(Log4jProxy.java:309)
                               at org.apache.commons.logging.impl.Log4jProxy.error(Log4jProxy.java:283)
                               at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:208)
                               at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220)
                               at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
                               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                               at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                               at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                               at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                               at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                               at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                               at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                               at java.lang.reflect.Method.invoke(Unknown Source)
                               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                               at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                               at $Proxy38.start(Unknown Source)
                               at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                               at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                               at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                               at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                               at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                               at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                              2009-06-04 17:23:16,532 ERROR [org.apache.catalina.core.StandardContext] (main) Error listenerStart
                              2009-06-04 17:23:16,532 ERROR [org.apache.catalina.core.StandardContext] (main) Erreur de d�marrage du contexte [/instances] suite aux erreurs pr�c�dentes
                              2009-06-04 17:23:16,532 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/instances]] (main) Closing Spring root WebApplicationContext
                              2009-06-04 17:23:24,486 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/instances]] (main) Exception lors de l'envoi de l'�v�nement contexte d�truit (context destroyed) � l'instance de classe d'�coute org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
                              java.lang.OutOfMemoryError: PermGen space
                              


                              • 12. Re: How to run JBoss AS as Windows Service
                                yhovart

                                I've read a few post on forums saying the OutOfMemory may be misleading...

                                If anyone got an idea, thx

                                • 13. Re: How to run JBoss AS as Windows Service
                                  jaikiran

                                   

                                  JAVA_HOME is not set. Unexpected results may occur.


                                  You haven't set the JAVA_HOME environment variable. Set it to point to a valid JDK (1.5).


                                  • 14. Re: How to run JBoss AS as Windows Service
                                    peterj

                                    You have also not set any heap sizes so you are getting the defaults which obviously are not large enough. What changes did you make to the heap size entry in run.bat?

                                    1 2 Previous Next