-
1. Re: working directory
kuvera Mar 18, 2007 1:50 PM (in response to kuvera)So this was the minta2.xml:
<Context path="/minta2" docBase="c:/Wk/prg/Java/Minta2/web" workDir="c:/Wk/prg/Java/Minta2/web/WEB-INF/build" />
-
2. Re: working directory
peterj Mar 18, 2007 2:20 PM (in response to kuvera)Look in server/default/conf/jboss-services.xml. The last mbean (URLDeploymentScanner) has an attribute named URLs. You can add a directory there. In addition, all of your exploded directories will have to have the .war and .ear extensions. For example, assume the directories:
c:\wk\prg\jboss\webapp.war\...
c:\wk\prg\jboss\something.ear\...
Then change the URLs attribute as follows:<attribute name="URLs"> deploy/,file://c:/wk/prg/jboss/ </attribute>
(Note: I am not sure about the number of slashes required between file: and c:, it could be 1, 2 or 3)
This causes the deployer to deploy all applications, whether exploded or packaged in files, in the c:/wk/prg/jboss directory. -
3. Re: working directory
kuvera Mar 18, 2007 2:45 PM (in response to kuvera)Thank you for your answer, Peter.
I admit I was hoping for a nicer solution, but what can we do? My project directories have src,doc,notes and deploy subdirectories and I use the main dir as a Project dir in eclipse. So it seems I will have to rename all deploy subdirs to contextname.war and list each and every such path in URLs. I preferred Tomcat's approach...
Thanks a lot anyway.