Well, I've been working on this problem a couple of days now and had two posts here. One post has been ignored for six months, the other post got half an answer.
All I want to do is have a server config directory somewhere other than jboss/server/xxx, where xxx is all, minimal, default, or my own config. Before I get another "rtfl lame brain!", I read the following twice: http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch01.html ...and spent the last two days playing with the settings in every concievable configuration possible given the documentation. Either JBoss is broken in this regard, or the documentation is completely wrong. Which is it guys? Let's go over one example. Given the following virtual hosting directory structure: | /vhosts | | ----/jboss.com | | | ----/jboss-start.sh | | | ----/jboss-stop.sh | | | ----/webapps | | | | ----/conf | | | | ----/deploy | | | | ----/lib | | | ----/htdocs | | | | ----/index.html | | ----/hostedDomain2.com | | | ----/jboss-start.sh | | | ----/jboss-stop.sh | | | ----/webapps | | | | ----/conf | | | | ----/deploy | | | | ----/lib | | | ----/htdocs | | | | ----/index.html | Assume the "webapps" directory is just a copy of the "minimal" server configuration from the default JBoss installation. Using what one poster gave me, I started the "jboss.com" server with the following: Z:\tmp\jboss\bin\run.bat \ -Djboss.server.base.dir=Z:/tmp/vhosts/jboss.com/ \ -Djboss.server.name=webapps ... and I get the following error: | =============================================================================== | . | JBoss Bootstrap Environment | . | JBOSS_HOME: Z:\tmp\jboss\bin\\.. | . | JAVA: C:\Java\jdk1.5.0\bin\java | . | JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m | . | CLASSPATH: C:\Java\jdk1.5.0\lib\tools.jar;Z:\tmp\jboss\bin\\run.jar | . | =============================================================================== | . | 18:20:07,234 INFO [Server] Starting JBoss (MX MicroKernel)... | 18:20:07,234 INFO [Server] Release ID: JBoss [Zion] 4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314) | 18:20:07,234 INFO [Server] Home Dir: Z:\tmp\jboss | 18:20:07,250 INFO [Server] Home URL: file:/Z:/tmp/jboss/ | 18:20:07,250 INFO [Server] Library URL: file:/Z:/tmp/jboss/lib/ | 18:20:07,250 INFO [Server] Patch URL: null | 18:20:07,250 INFO [Server] Server Name: webapps | 18:20:07,250 INFO [Server] Server Home Dir: Z:\tmp\vhosts\jboss.com\webapps | 18:20:07,250 INFO [Server] Server Home URL: file:/Z:/tmp/jboss/server/webapps/ | 18:20:07,250 INFO [Server] Server Data Dir: Z:\tmp\vhosts\jboss.com\webapps\data | 18:20:07,250 INFO [Server] Server Temp Dir: Z:\tmp\vhosts\jboss.com\webapps\tmp | 18:20:07,265 INFO [Server] Server Config URL: file:/Z:/tmp/jboss/server/webapps/conf/ | 18:20:07,265 INFO [Server] Server Library URL: file:/Z:/tmp/jboss/server/webapps/lib/ | 18:20:07,265 INFO [Server] Root Deployment Filename: jboss-service.xml | 18:20:07,265 INFO [Server] Starting General Purpose Architecture (GPA)... | 18:20:08,078 INFO [ServerInfo] Java version: 1.5.0,Sun Microsystems Inc. | 18:20:08,078 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0-b64,Sun Microsystems Inc. | 18:20:08,078 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 | 18:20:08,468 INFO [Server] Core system initialized | Failed to boot JBoss: | org.jboss.deployment.DeploymentException: url file:/Z:/tmp/jboss/server/webapps/conf/jboss-service.xml could not be open | ed, does it exist? | at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:175) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) | at $Proxy5.deploy(Unknown Source) | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413) | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310) | at org.jboss.Main.boot(Main.java:162) | at org.jboss.Main$1.run(Main.java:423) | at java.lang.Thread.run(Thread.java:595) | 18:20:08,500 INFO [Server] JBoss SHUTDOWN: Undeploying all packages | Shutting down | Now the jboss-service.xml is definitely there, but for some reason, JBoss can't find it. Well, the docs say there's another setting "jboss.server.config.url", that can be "redirected". But, umm... if you look at the output above, this line: | 18:20:07,265 INFO [Server] Server Config URL: file:/Z:/tmp/jboss/server/webapps/conf/ | ...? Doesn't that mean that jboss found where the jboss-service.xml file was? I'd list more trials here, but they all turn out the same no matter what combination of the so-called "overridable" location settings you use. Would anyone like to take a crack at why this is so broken, or why I am so wrong? I'd be happy if I was wrong... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875677#3875677 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875677 ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
