Problem solved; first I was stupid, and second is I'm not sure. ;-)
First.
As I mentioned earlier, I run JBoss with this command line:
%JBOSS_HOME%\bin\run.bat -Djboss.server.base.dir=%JBOSS_PRIVATE_DIR%\jboss
Investigation showed me that run.bat don't pass its arguments to JVM under the 
hood, and even if it does, its arguments would be program arguments (JBoss' 
ones), not JVM's. To reach JVM, you need to set JAVA_OPTS env. variable so 
later run.bat can start JVM with their values. So far so good.
Second.
I thought that similar "-D" *.dir and *.url variables are mirroring their 
values to each other, for example jboss.server.base.dir and 
jboss.server.base.url, jboss.server.home.dir and jboss.server.home.url . I set 
jboss.server.base.dir and thought that its value will be used when running 
JBoss, as well as its *.url corresponding variable. boot.log's DEBUG level 
showed me that I was wrong. And when I set jboss.server.base.url to point to my 
writable directory, server has finally found jboss-service.xml and started well.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952231#3952231

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952231


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to