• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant Start JBOSS by Run.bat

 
senthilkumar ap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
senthilkumar ap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks again
 
senthilkumar ap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.. I have one more doubt.. how to run JBOSS in background as service while machine is booted up..?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....................
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic