Where is jboss.server.config.url located in JBoss 5?

I ran into a rather strange problem when installing JBoss 5.0.1. I need to deploy webapp.

In my webapp, I try:

System.getProperty("jboss.server.config.url")

to get into the "conf" -dir. (And carefully read a few files). On my development machine, this worked fine, but in the deployment environment, the above property looks like an empty string ("").

Does anyone know why this could be and how to change it?

thank

+3
source share
2 answers

I don’t know why it doesn’t work properly on yours, but you can change any JBoss property, just open the file run.confand add the line as at the end (at least JAVA_OPTS should be defined earlier):

JAVA_OPTS="$JAVA_OPTS -Djboss.server.config.url=new_path"

Windows ( run.conf.bat):

set JAVA_OPTS = %JAVA_OPTS% -Djboss.server.config.url=new_path

. ., JBoss Properties, jboss.server.config.url $jboss.server.home.url/conf, , , - jboss.server.home.url, . $jboss.server.base.url/$jboss.server.name, .. , ... ,

+3
+1

Source: https://habr.com/ru/post/1793642/


All Articles