Eclipse does not run Jboss standalone.conf

1.8k views Asked by At

I'm using Eclipse Kepler integrated with Jboss EAP 6.3.

I need to set some system properties*, so I set them on JAVA_OPTS variable at the standalone.conf (jboss/bin).

* SSL configuration, like javax.net.ssl.keyStore.

It works fine when starting JBoss by command line (standalone.sh), but it does not work when starting JBoss by Eclipse. I checked that the system property was null, so I conclude that Eclipse does not run standalone.conf when starting JBoss.

Is this a Eclipse problem? Is there someway to fix this behavior? Or is there another way?

Tks a lot!

Edition 1

Eclipse configuration to launch JBoss:

Program arguments: -mp "/home/myuser/apps/jboss-eap-6.3-sislv/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost --server-config=standalone-sislv-ws.xml

VM arguments: "-Dprogram.name=JBossTools: JBoss EAP 6.1 Runtime Server" -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true "-Dorg.jboss.boot.log.file=/home/myuser/apps/jboss-eap-6.3-sislv/standalone/log/boot.log" "-Dlogging.configuration=file:/home/myuser/apps/jboss-eap-6.3-sislv/standalone/configuration/logging.properties" "-Djboss.home.dir=/home/myuser/apps/jboss-eap-6.3-sislv" -Dorg.jboss.logmanager.nocolor=true

2

There are 2 answers

3
Lev On

Try setting your system properties as vmArgs in the Eclipse run configuration instead.

1
Morva On

Could be adding them as system properties in standalone.xml be an alternative solution?

 <system-properties>
    <property name="" value=""/>
</system-properties>