Erlaunis
Erlaunis

Reputation: 1451

Start JBoss Server with NetBeans

I am trying to run the JBoss server on Netbeans but the log is blocked at something like:

[org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

The entire log is :

Calling "C:\jboss-as-7.1.1.Finale\bin\standalone.conf.bat"
"JAVA_OPTS already set in environment; overriding default settings with values : -Xms128mx -Xmx512ms -XX:MaxPermSize=256m"
___________________________
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss-7.1.1.Final
JAVA: C:\Program Files\Java\jdk1.8.0_65\bin\java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat - Xms128m -Xmx512m -XX:MaxPermSize=256m
__________________________
INFOS [org.jboss.modules]JBoss Modules version 1.1.1.GA
INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

I saw that the jboss repertory should be at the source (C:); I did. My environment variables must be good :

JAVA_HOME : C:\Program Files\Java\jdk1.7.0_65

JBOSS_HOME : C:\jboss-as-7.1.1.Final

JBOSS_CONF : default

When I added the server on Netbeans :

1- I chose the "JBoss Application Server

2- I chose the Server Location : c:\jboss-as-7.1.1.Final

3- The properties : Domain : standalone ; Domain Path : C:\jboss-as-7.1.1.Final\standalone ; Host : localhost ; Port : 8081

Can someone help me and tell me what's wrong ? Thanks

Upvotes: 3

Views: 1882

Answers (1)

johan
johan

Reputation: 548

Looks like you are trying to start JBoss 7.1.1 with Java 8, which is not supported.

You wrote that your JAVA_HOME is set to C:\Program Files\Java\jdk1.7.0_65, but the log shows that JBoss was started with jdk1.8.0_65.

JAVA: C:\Program Files\Java\jdk1.8.0_65\bin\java

So it seems that the JAVA_HOME variable is not picked up by the start script.

Try starting JBoss with Java 7.

Upvotes: 3

Related Questions