Bhavik Patel
Bhavik Patel

Reputation: 789

Jboss Not starting in Netbeans

i am trying to run jboss v6 in netbeans but it shows following error

Unable to read the logging configuration from 'file:logging.properties' (java.io.FileNotFoundException: logging.properties (The system cannot find the file specified))

If i run jboss stnadalone by directly going in bin/run.bat no error is displaying and it starts normally but in netbeans i am getting error as i mentioned above.

Can Anyone tell me what to do for solving this problem?

Upvotes: 2

Views: 3072

Answers (2)

Chris
Chris

Reputation: 984

I found this answer somewhere else on the web:

Go to the “bin” directory where you’ve installed JBoss Edit the “run.bat” file

Search for the line

set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%DIRNAME%logging.properties %JAVA_OPTS%

Change the %DIRNAME% to your absolute path to the “bin” directory of your installed JBoss.e.g.

set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:"C:\Java\jboss-6.1.0-final\bin\logging.properties" %JAVA_OPTS%

I’m adding the double quote " so that if your directory name has spaces, it will still be legitimate.

Try to start your server through Netbeans again, it should be working fine after this.

Edit: One likely source

Upvotes: 6

Sai Ye Yan Naing Aye
Sai Ye Yan Naing Aye

Reputation: 6738

You copied the JDK out from "Program Files" and placed in C:\, and then configured JBOSS's run.conf from bin folder to point to the new location of JDK. For example

   rem set "JAVA_HOME=C:\jdk1.6.0_13"

Upvotes: 1

Related Questions