• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

JBoss 5.1.0 won't start as a service but will do so when you run it from the command prompt

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a Windows Server 2003 Standard Edition SP2 box, with 2 Gigs of RAM, JBoss won't start as a service but will do so when you run it from the command prompt using run.bat. The service was installed using "service.bat install". It gives this run.log output when run as a service:

Starting JBoss Application Server 5.0 [2011-04-12 10:02:45]
Calling C:\Ward\jboss-5.1.0.GA\bin\run.conf.bat
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\Ward\jboss-5.1.0.GA

JAVA: C:\Program Files\Java\jdk1.5.0_10\bin\java

JAVA_OPTS: -Dprogram.name=run.bat -Xrs -server "-Djava.library.path=C:\Ward\jboss-5.1.0.GA\bin\native;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Ward\jboss-5.1.0.GA\bin"

CLASSPATH: C:\Ward\jboss-5.1.0.GA\bin\run.jar

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

10:02:45,981 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:02:45,981 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
10:02:45,981 INFO [ServerImpl] Bootstrap URL: null
10:02:45,981 INFO [ServerImpl] Home Dir: C:\Ward\jboss-5.1.0.GA
10:02:45,981 INFO [ServerImpl] Home URL: file:/C:/Ward/jboss-5.1.0.GA/
10:02:45,981 INFO [ServerImpl] Library URL: file:/C:/Ward/jboss-5.1.0.GA/lib/
10:02:45,981 INFO [ServerImpl] Patch URL: null
10:02:45,981 INFO [ServerImpl] Common Base URL: file:/C:/Ward/jboss-5.1.0.GA/common/
10:02:45,981 INFO [ServerImpl] Common Library URL: file:/C:/Ward/jboss-5.1.0.GA/common/lib/
10:02:46,012 INFO [ServerImpl] Server Name: default
10:02:46,012 INFO [ServerImpl] Server Base Dir: C:\Ward\jboss-5.1.0.GA\server
10:02:46,012 INFO [ServerImpl] Server Base URL: file:/C:/Ward/jboss-5.1.0.GA/server/
10:02:46,012 INFO [ServerImpl] Server Config URL: file:/C:/Ward/jboss-5.1.0.GA/server/default/conf/
10:02:46,012 INFO [ServerImpl] Server Home Dir: C:\Ward\jboss-5.1.0.GA\server\default
10:02:46,012 INFO [ServerImpl] Server Home URL: file:/C:/Ward/jboss-5.1.0.GA/server/default/
10:02:46,012 INFO [ServerImpl] Server Data Dir: C:\Ward\jboss-5.1.0.GA\server\default\data
10:02:46,012 INFO [ServerImpl] Server Library URL: file:/C:/Ward/jboss-5.1.0.GA/server/default/lib/
10:02:46,012 INFO [ServerImpl] Server Log Dir: C:\Ward\jboss-5.1.0.GA\server\default\log
10:02:46,012 INFO [ServerImpl] Server Native Dir: C:\Ward\jboss-5.1.0.GA\server\default\tmp\native
10:02:46,012 INFO [ServerImpl] Server Temp Dir: C:\Ward\jboss-5.1.0.GA\server\default\tmp
10:02:46,012 INFO [ServerImpl] Server Temp Deploy Dir: C:\Ward\jboss-5.1.0.GA\server\default\tmp\deploy
10:02:47,028 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Ward/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
10:02:48,715 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
10:02:48,715 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
10:02:49,684 INFO [CopyMechanism] VFS temp dir: C:\Ward\jboss-5.1.0.GA\server\default\tmp
10:02:49,684 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:02:51,824 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
10:02:51,824 INFO [ServerInfo] Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
10:02:51,824 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_10-b03,Sun Microsystems Inc.
10:02:51,824 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
10:02:51,824 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xrs -Djava.library.path=C:\Ward\jboss-5.1.0.GA\bin\native;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Ward\jboss-5.1.0.GA\bin -Djava.endorsed.dirs=C:\Ward\jboss-5.1.0.GA\lib\endorsed
10:02:51,887 INFO [JMXKernel] Legacy JMX core initialized
10:02:56,512 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@d47880[domain=default, server=default, name=default]
10:03:00,512 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
10:03:13,418 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
10:03:13,418 INFO [NativeServerConfig] 3.1.2.GA
10:03:17,699 INFO [AttributeCallbackItem] Owner callback not implemented.
10:03:26,887 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@c713d2[ defaultDomain='jboss' ]
10:03:49,511 ERROR [ProfileDeployAction] Failed to add deployment: FuelView.ear
org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(FuelView.ear)
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(Thread.java:595)
Caused by: java.lang.RuntimeException: Error determining structure: FuelView.ear
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
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)
... 21 more
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Error creating BeanAdapterFactory for org.jboss.xb.spi.DefaultBeanAdapterBuilder
at org.jboss.metadata.javaee.spec.DescriptionGroupMetaData.descriptions
at org.jboss.metadata.ear.spec.Ear50MetaData.descriptionGroup
at org.jboss.metadata.ear.spec.Ear50MetaData
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
... 25 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Error creating BeanAdapterFactory for org.jboss.xb.spi.DefaultBeanAdapterBuilder
at org.jboss.metadata.javaee.spec.DescriptionGroupMetaData.descriptions
at org.jboss.metadata.ear.spec.Ear50MetaData.descriptionGroup
at org.jboss.metadata.ear.spec.Ear50MetaData
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.rethrowWithLocation(JBossXBNoSchemaBuilder.java:2018)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.createRootElementBinding(JBossXBNoSchemaBuilder.java:346)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.createRootElements(JBossXBNoSchemaBuilder.java:321)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.build(JBossXBNoSchemaBuilder.java:232)
at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:291)
at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:181)
at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:160)
at org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:261)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:274)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 28 more
Caused by: java.lang.RuntimeException: Error creating BeanAdapterFactory for org.jboss.xb.spi.DefaultBeanAdapterBuilder
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.createAdapterFactory(JBossXBNoSchemaBuilder.java:1895)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateType(JBossXBNoSchemaBuilder.java:861)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateBean(JBossXBNoSchemaBuilder.java:779)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateBean(JBossXBNoSchemaBuilder.java:767)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateTypeBinding(JBossXBNoSchemaBuilder.java:523)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.resolveTypeBinding(JBossXBNoSchemaBuilder.java:482)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.bindProperty(JBossXBNoSchemaBuilder.java:1684)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.bindModelGroup(JBossXBNoSchemaBuilder.java:1803)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.bindProperty(JBossXBNoSchemaBuilder.java:1344)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateType(JBossXBNoSchemaBuilder.java:1118)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateBean(JBossXBNoSchemaBuilder.java:779)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateBean(JBossXBNoSchemaBuilder.java:767)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.generateTypeBinding(JBossXBNoSchemaBuilder.java:523)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.resolveTypeBinding(JBossXBNoSchemaBuilder.java:482)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.createElementBinding(JBossXBNoSchemaBuilder.java:361)
at org.jboss.xb.builder.JBossXBNoSchemaBuilder.createRootElementBinding(JBossXBNoSchemaBuilder.java:341)
... 48 more
Caused by: java.lang.OutOfMemoryError: Java heap space
10:03:53,246 ERROR [ProfileDeployAction] Failed to add deployment: jbossws.sar
org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jbossws.sar)
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(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: Java heap space
10:04:04,167 ERROR [ScopedProfileServiceController] Error installing to Deploy: name=ProfileKey@1e852be[domain=default, server=default, name=applications] state=Start mode=On Demand requiredState=Installed
java.lang.OutOfMemoryError: Java heap space
10:04:06,636 ERROR [STDERR] Failed to boot JBoss:
10:04:07,370 ERROR [STDERR] java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
10:04:08,277 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:310)
10:04:09,480 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
10:04:10,402 ERROR [STDERR] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
10:04:11,042 ERROR [STDERR] at org.jboss.Main.boot(Main.java:221)
10:04:11,698 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:556)
10:04:12,308 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
10:04:12,964 ERROR [STDERR] Caused by: java.lang.OutOfMemoryError: Java heap space
10:34:17,535 ERROR [STDERR] Exception in thread "RMI TCP Connection(1
10:34:17,863 ERROR [STDERR] )-127.0.0.1"
10:34:17,863 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
10:34:19,472 ERROR [STDERR] Exception in thread "RMI TCP Connection(3)-127.0.0.1"
10:34:22,222 ERROR [STDERR] Exception in thread "RMI TCP Connection(2)-127.0.0.1"
10:34:22,519 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
Shutdown JBoss Application Server 5.0 service [2011-04-12 10:34:36]

I currently have the run.conf.bat memory allocation set to xms 128M, xmx 1024M, MaxPermSize 512M.
Can you give me a clue as to why it won't start as a Windows service but will do so from the command line? Thanks in advance.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Known issue. Follow the workaround suggested in this thread http://community.jboss.org/thread/65882?tstart=0
 
Julius Siojo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for pointing me to that solution. Moving "set JAVA_OPTS=-Xrs %JAVA_OPTS%" to run.conf.bat did the trick. I really appreciate it.
 
Do not threaten THIS beaver! Not even with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic