File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes jboss not starting - config issue? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss not starting - config issue?" Watch "jboss not starting - config issue?" New topic
Author

jboss not starting - config issue?

Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
Trying jboss & haven't used it in several versions. Unzipped jboss-5.1.0.GA and tried to run from eclipse using jboss tools. Using eclipse 3.51.

When I start it I get the following:

20:55:13,880 INFO [ServerImpl] Starting JBoss (Microcontainer)...
20:55:13,880 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
20:55:13,880 INFO [ServerImpl] Bootstrap URL: null
20:55:13,880 INFO [ServerImpl] Home Dir: C:\apps\jboss-5.1.0.GA
20:55:13,880 INFO [ServerImpl] Home URL: file:/C:/apps/jboss-5.1.0.GA/
20:55:13,880 INFO [ServerImpl] Library URL: file:/C:/apps/jboss-5.1.0.GA/lib/
20:55:13,880 INFO [ServerImpl] Patch URL: null
20:55:13,880 INFO [ServerImpl] Common Base URL: file:/C:/apps/jboss-5.1.0.GA/common/
20:55:13,880 INFO [ServerImpl] Common Library URL: file:/C:/apps/jboss-5.1.0.GA/common/lib/
20:55:13,880 INFO [ServerImpl] Server Name: all
20:55:13,880 INFO [ServerImpl] Server Base Dir: C:\apps\jboss-5.1.0.GA\server
20:55:13,880 INFO [ServerImpl] Server Base URL: file:/C:/apps/jboss-5.1.0.GA/server/
20:55:13,880 INFO [ServerImpl] Server Config URL: file:/C:/apps/jboss-5.1.0.GA/server/all/conf/
20:55:13,880 INFO [ServerImpl] Server Home Dir: C:\apps\jboss-5.1.0.GA\server\all
20:55:13,880 INFO [ServerImpl] Server Home URL: file:/C:/apps/jboss-5.1.0.GA/server/all/
20:55:13,880 INFO [ServerImpl] Server Data Dir: C:\apps\jboss-5.1.0.GA\server\all\data
20:55:13,880 INFO [ServerImpl] Server Library URL: file:/C:/apps/jboss-5.1.0.GA/server/all/lib/
20:55:13,880 INFO [ServerImpl] Server Log Dir: C:\apps\jboss-5.1.0.GA\server\all\log
20:55:13,880 INFO [ServerImpl] Server Native Dir: C:\apps\jboss-5.1.0.GA\server\all\tmp\native
20:55:13,880 INFO [ServerImpl] Server Temp Dir: C:\apps\jboss-5.1.0.GA\server\all\tmp
20:55:13,880 INFO [ServerImpl] Server Temp Deploy Dir: C:\apps\jboss-5.1.0.GA\server\all\tmp\deploy
20:55:14,459 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/apps/jboss-5.1.0.GA/server/all/conf/bootstrap.xml
20:55:15,052 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
20:55:15,052 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
20:55:15,302 INFO [CopyMechanism] VFS temp dir: C:\apps\jboss-5.1.0.GA\server\all\tmp
20:55:15,302 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
20:55:16,130 INFO [ServerInfo] Java version: 1.6.0_07,Sun Microsystems Inc.
20:55:16,130 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
20:55:16,130 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b23,Sun Microsystems Inc.
20:55:16,130 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
20:55:16,130 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252
20:55:16,162 INFO [JMXKernel] Legacy JMX core initialized
20:55:17,755 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1aca5e2[domain=default, server=default, name=all]
20:55:19,427 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
20:55:20,287 ERROR [ScopedProfileServiceController] Error installing to Create: name=ProfileKey@b8501d[domain=default, server=default, name=farm] state=Configured mode=On Demand requiredState=Installed
java.lang.reflect.InvocationTargetException
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.system.server.profileservice.repository.AbstractProfileLifeCycleAction.invoke(AbstractProfileLifeCycleAction.java:97)
at org.jboss.system.server.profileservice.repository.AbstractProfileLifeCycleAction.invoke(AbstractProfileLifeCycleAction.java:77)
at org.jboss.system.server.profileservice.repository.AbstractProfileLifeCycleAction.install(AbstractProfileLifeCycleAction.java:49)
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.IllegalStateException: Must register RepositoryClusteringHandler before calling create()
at org.jboss.system.server.profileservice.repository.clustered.ClusteredDeploymentRepository.create(ClusteredDeploymentRepository.java:198)
at org.jboss.system.server.profileservice.repository.clustered.ClusteredDeploymentRepository.load(ClusteredDeploymentRepository.java:226)
at org.jboss.system.server.profile.repository.AbstractProfile.create(AbstractProfile.java:158)
... 22 more
20:55:20,287 ERROR [STDERR] Failed to boot JBoss:
20:55:20,287 ERROR [STDERR] java.lang.IllegalStateException: Incompletely deployed:

*** PROFILES IN ERROR: Name -> Error
Profile: ProfileKey@b8501d[domain=default, server=default, name=farm] in error due to java.lang.reflect.InvocationTargetException

*** PROFILES MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
ProfileKey@1aca5e2[domain=default, server=default, name=all] is missing following dependencies: ProfileKey@b8501d[domain=default, server=default, name=farm]{Installed:**ERROR**}
20:55:20,287 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.logErrors(AbstractProfileService.java:567)
20:55:20,287 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.validate(AbstractProfileService.java:348)
20:55:20,287 ERROR [STDERR] at org.jboss.system.server.profileservice.repository.AbstractProfileService.validateProfile(AbstractProfileService.java:331)
20:55:20,287 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:272)
20:55:20,287 ERROR [STDERR] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
20:55:20,287 ERROR [STDERR] at org.jboss.Main.boot(Main.java:221)
20:55:20,287 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:556)
20:55:20,287 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10096
    
164

Is this a clean JBoss or have you done any changes or added any applications?


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10096
    
164

Travis Prescott wrote:Unzipped jboss-5.1.0.GA and tried to run from eclipse using jboss tools. Using eclipse 3.51.



Let's keep the IDE out of the equation, for the moment. Try starting the server from the command line using the run.bat and see if it works.
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
Thanks for the reply. When I do it in the IDE, I'm hitting the "all" server that comes loaded with the install. I'm doing that b/c it's the only one that seems to have config files in it. When I do it from the cmd line, I get the following...indicating, I think, that I have nothing configured in the "default" server...which doesn't seem to be much of a default. As I recall, several versions back, the default worked out of the box...and there are a lot of config files that don't mean much to a newbie. I'm just trying to get an envion. off the ground & worry about the details when I'm more familiar with the environment.

Here's the trace:

Calling C:\apps\jboss-5.1.0.GA\bin\run.conf.bat
===============================================================================

JBoss Bootstrap Environment

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

JAVA: C:\Sun\SDK\jdk\bin\java

JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun
.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server

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

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

18:19:06,968 INFO [ServerImpl] Starting JBoss (Microcontainer)...
18:19:06,968 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)

18:19:06,968 INFO [ServerImpl] Bootstrap URL: null
18:19:06,968 INFO [ServerImpl] Home Dir: C:\apps\jboss-5.1.0.GA
18:19:06,968 INFO [ServerImpl] Home URL: file:/C:/apps/jboss-5.1.0.GA/
18:19:06,968 INFO [ServerImpl] Library URL: file:/C:/apps/jboss-5.1.0.GA/lib/
18:19:06,968 INFO [ServerImpl] Patch URL: null
18:19:06,968 INFO [ServerImpl] Common Base URL: file:/C:/apps/jboss-5.1.0.GA/common/
18:19:06,968 INFO [ServerImpl] Common Library URL: file:/C:/apps/jboss-5.1.0.GA/common/lib/
18:19:06,968 INFO [ServerImpl] Server Name: default
18:19:06,968 INFO [ServerImpl] Server Base Dir: C:\apps\jboss-5.1.0.GA\server
18:19:06,968 INFO [ServerImpl] Server Base URL: file:/C:/apps/jboss-5.1.0.GA/server/
18:19:06,968 INFO [ServerImpl] Server Config URL: file:/C:/apps/jboss-5.1.0.GA/server/default/conf/
18:19:06,968 INFO [ServerImpl] Server Home Dir: C:\apps\jboss-5.1.0.GA\server\default
18:19:06,968 INFO [ServerImpl] Server Home URL: file:/C:/apps/jboss-5.1.0.GA/server/default/
18:19:06,968 INFO [ServerImpl] Server Data Dir: C:\apps\jboss-5.1.0.GA\server\default\data
18:19:06,968 INFO [ServerImpl] Server Library URL: file:/C:/apps/jboss-5.1.0.GA/server/default/lib/
18:19:06,968 INFO [ServerImpl] Server Log Dir: C:\apps\jboss-5.1.0.GA\server\default\log
18:19:06,968 INFO [ServerImpl] Server Native Dir: C:\apps\jboss-5.1.0.GA\server\default\tmp\native
18:19:06,968 INFO [ServerImpl] Server Temp Dir: C:\apps\jboss-5.1.0.GA\server\default\tmp
18:19:06,968 INFO [ServerImpl] Server Temp Deploy Dir: C:\apps\jboss-5.1.0.GA\server\default\tmp\deploy
18:19:07,687 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/apps/jboss-5.1.0.GA/server/default/conf/b
ootstrap.xml
Failed to boot JBoss:
java.lang.RuntimeException: Error unmarshalling file:/C:/apps/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:60)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
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: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/apps/jboss-5.1.0.GA/server/default/co
nf/bootstrap.xml
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:119)
at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:53)
... 5 more
Caused by: java.io.FileNotFoundException: C:\apps\jboss-5.1.0.GA\server\default\conf\bootstrap.xml
at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:112)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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:173)
... 7 more
18:19:07,812 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
18:19:07,843 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
...oh, and to respond to the install question, I've done nothing to it...
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
from all the docs I've seen, I should have numerous config files in my default server. I see nothing.l The only one that has any files is the "all" server. Why is this? Where do I get defaults so that I can just start to play with it? I'm dead in the water now...

Travis
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10096
    
164

from all the docs I've seen, I should have numerous config files in my default server. I see nothing.l The only one that has any files is the "all" server. Why is this?


Ah, i did not pay attention to the logs and the OS info (got distracted when you said you were using an IDE)

20:55:16,130 INFO [ServerInfo] OS-System: Windows XP 5.1,x86


I guess, you unzipped the .zip JBoss file using the default unzipper that's shipped in Windows XP? See if your issue is related to this
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
The first time I installed I used the Windows zip utility. The next time, I used a tool called ZipGenius as I'd installed more of my preferred tools. When I get home tonight, I'll try to install the way you suggest...I'll post my results upon attempt.

Travis
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
I was unable to use ZipGenius to unzip successfully. However, when I use the one that comes with XP it works as long as I use the unzip command. All is good now, it seems. One more thing, though...I seem to be able to not log into the console app. How do I remove authentication from the console app (this is a dev instance).

Thanks for all your help, Jaikiran!

Travis
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Try 7Zip, it works fairly well (I right-click the zip file in Explorer and use the 7Zip menu extensions to unzip to the current location). Also, be careful how you unzip - never select the files in the zip utility and ask the utility to unzip the selected files - doing so will skip the empty lib directories and cause problems later.

What do you mean by the "console app"? What URL is that? There is no access control turned on by default in the community version of JBoss AS.

I wonder if you are being impacted by this: https://www.jboss.org/community/wiki/JBoss42FAQ


JBoss In Action
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
by console, I mean http://localhost:8080/admin-console. I assume that it's like the console in other app servers (I'm familiar with Websphere) where you can add datasources & jndi variables among other things. When I go there, it forwards me to http://localhost:8080/admin-console/login.seam?conversationId=4 & requires a login. I didn't set up a login...does the community version not allow me to access this tool?

Travis
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10096
    
164

The default user name is "admin" and password is "admin"
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

There is no access control turned on by default in the community version of JBoss AS.

Completely forgot that the admin console is secured out-of-the-box. It is new in AS 5.1, so I tend to forget it is there.
Travis Prescott
Greenhorn

Joined: Sep 05, 2009
Posts: 24
admin/admin works...thanks for the help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss not starting - config issue?