aspose file tools*
The moose likes JBoss/WildFly and the fly likes Cant Start JBOSS by Run.bat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Cant Start JBOSS by Run.bat" Watch "Cant Start JBOSS by Run.bat" New topic
Author

Cant Start JBOSS by Run.bat

senthilkumar ap
Greenhorn

Joined: Dec 01, 2008
Posts: 19
Hi all..
Im novice for JBOSS, i just downloaded jboss and unzipped it, then i run run.bat, a cmd prompt window is getting opened and with in a fraction of second it is closed.,also i did opening run.bat from command prompt, it doesnt give any exception and all. also i couldnt find log directory in server/conf..

Can any one help me...?
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 645
First, open a command window, change directory to JBOSS_HOME/bin and execute run.bat manually (where JBOSS_HOME is the directory where you extracted JBoss).

As it runs, it outputs information about what it's doing. This can be quite a bit of output, most of which can look like highly-technical nonsense.

Assuming everything works, it should take less than a minute for the server to be up and running. When the server is up and running, you'll see a line like the following in the output:
If it fails to start, you should definitely see something in the command window output as to the cause.

The log files are written to the log directory. Assuming you're starting the default server, the log files will be in JBOSS_HOME/server/default/log. There, you will find two files of interest: boot.log and server.log.

boot.log shows the server bootstrap info. It may be good to look through this and make sure you don't find any errors.
server.log is the log for the server itself. Look through this for any errors, warning, stack traces, etc.

My guess is that you don't have a viable JDK installed, or JBoss isn't able to find it. I can't imaging anything else that would actually prevent the server from starting - but the output/log files will tell you whatever it is.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

What is JAVA_HOME set to? Open a command prompt and enter:



and post the results.

Another common issue relates to findstr, see this: http://community.jboss.org/wiki/FindstrCommandNotFound

Also see this discussion: http://www.coderanch.com/t/470826/JBoss/Not-able-Start-JBoss-run

If none of the above help, edit run.bat commenting out the "echo" statement in the first line and run it again (from a command prompt like Mark recommended) and post the entire contents of the command prompt window.


JBoss In Action
senthilkumar ap
Greenhorn

Joined: Dec 01, 2008
Posts: 19
i run run.bat from the command window.. its not starting the server also there is no more messages and no errors.. it just return to old path like C:\JBOSS>
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 645
It sounds like you're not executing the correct run.bat script. Are you in the JBOSS_HOME/bin directory when you execute it?
Can you edit the file and comment-out the @echo off line at the top (by placing a REM in front of it) so we can see if anything is executing?
In case this isn't clear, change the first line from: so it looks like this:
Then run the script and see what it says.
senthilkumar ap
Greenhorn

Joined: Dec 01, 2008
Posts: 19
Thanks to all who spent your time for me.. finally i got it working.. the mistake was i gave JAVA_HOME as jdk\bin; instead jdk;

again thanks to all..
senthilkumar ap
Greenhorn

Joined: Dec 01, 2008
Posts: 19
thanks again
senthilkumar ap
Greenhorn

Joined: Dec 01, 2008
Posts: 19
Hi all.. I have one more doubt.. how to run JBOSS in background as service while machine is booted up..?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10205
    
166

senthilkumar ap wrote:Hi all.. I have one more doubt.. how to run JBOSS in background as service while machine is booted up..?


Please create a new topic for that question.

[My Blog] [JavaRanch Journal]
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 645
senthilkumar ap wrote:Hi all.. I have one more doubt.. how to run JBOSS in background as service while machine is booted up..?

I just googled for JBoss and System Service and found this at the top of the list:
http://community.jboss.org/wiki/JBossSystemService

I'm sure if you do a little searching on your own you'll find more.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

senthilkumar ap wrote:the mistake was i gave JAVA_HOME as jdk\bin; instead jdk;

I asked you to post your JAVA_HOME setting in my very frist reply to your post. If you would have done like I asked your problem would have been fixed 3 days sooner.
khader shafeeq
Greenhorn

Joined: Sep 02, 2010
Posts: 10

do the following steps

1.Delete JAVA_HOME from the system variables
2.Try to start run.bat , if it starts running then it will be the problem of JAVA_HOME
3.Set JAVA_HOME to your folder of JRE like c:\program files\java\jre Dont use ';' at the end.
4. This will solve the problem. As i was also suffering from the same problem.
paul rappai
Greenhorn

Joined: Nov 23, 2010
Posts: 12
khader shafeeq wrote:do the following steps

1.Delete JAVA_HOME from the system variables
2.Try to start run.bat , if it starts running then it will be the problem of JAVA_HOME
3.Set JAVA_HOME to your folder of JRE like c:\program files\java\jre Dont use ';' at the end.
4. This will solve the problem. As i was also suffering from the same problem.


Thanks this worked for me....................
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant Start JBOSS by Run.bat