-
1. Re: JBoss 4.2 Context.xml docBase ignored?
kuvera May 14, 2007 3:28 AM (in response to xnuandax)In default/conf/jboss-service.xml towards the end you find DeploymentScanner settings. Change the URLs attribute:
<attribute name="URLs"> deploy/,file:/srv/images/ </attribute>
If there's a slash at the end, the directory is treated like deploy, and all subdirectories are deployed by default. But you can also specify adad.war at the end, without slash, and then only that one app. is deployed.
(I don't know if "file:" is always needed or not, I use it for individual wars and ears. In the above case it may be just the path.) -
2. Re: JBoss 4.2 Context.xml docBase ignored?
jeffgao Apr 18, 2008 5:21 PM (in response to xnuandax)We still didn't solve the problem: context.xml ignored.
This one only add another local directory as deploy directory.
I still have the problem with "context docbase ignored". Anyone know how to solve this problem. -
3. Re: JBoss 4.2 Context.xml docBase ignored?
peterj Apr 18, 2008 6:46 PM (in response to xnuandax)jeffgoa - PLEASE STOP POSTING your problem to every forum post that mentions external directories!!!
-
4. Re: JBoss 4.2 Context.xml docBase ignored?
jeffgao Apr 19, 2008 12:43 AM (in response to xnuandax)Peter, sorry!
b
It seems that "modifying server.xml Context entry, adding docBase" works. The key on Windows is to add "c:\" before directory.
Jeff -
5. Re: JBoss 4.2 Context.xml docBase ignored?
plewright Oct 2, 2008 2:59 AM (in response to xnuandax)Does docBase work in context.xml that goes inside the ear? Not good to use the server.xml as that would be too invasive so is not preferred. We need to be able to hot-deploy these docBase changes - and not restart the whole server just for that.
-
6. Re: JBoss 4.2 Context.xml docBase ignored?
malc659 Feb 4, 2009 5:55 AM (in response to xnuandax)This is absolutely ridiculous. Absurd. I have to edit a server XML file just to deploy an application that does not live in the JBOSS directory tree. Everytime a new JBoss comes out, I have to re-edit the same or a different XML file. BS. I need to be able to run "ant deploy" and have my CONTEXT.XML copied to the right place (hopefully JBOSS/deploy).
-
7. Re: JBoss 4.2 Context.xml docBase ignored?
jaikiran Feb 4, 2009 6:12 AM (in response to xnuandax)This is absolutely ridiculous. Absurd. I have to edit a server XML file just to deploy an application that does not live in the JBOSS directory tree.
Which xml file are you referring to? I'm confused because of your next statement:I need to be able to run "ant deploy" and have my CONTEXT.XML copied to the right place