-
1. Re: Missing something... Why doesn't JBoss look at my applic
adrian.brock Sep 5, 2002 10:54 AM (in response to dbronk)application.xml is for an ear not a war
You can put a war inside an ear
deploy
.app_one.ear
..META-INF/application.xml
..app_one.war
etc.
Regards,
Adrian -
2. Re: Missing something... Why doesn't JBoss look at my applic
dbronk Sep 5, 2002 6:07 PM (in response to dbronk)So are you saying that an application.xml can not be used unless we create an ear file? I ask because we are not even creating a war file. We are deploying an exploded directory structure. We generally deploy this way because it makes it much easier for our gui guys to simply go in and edit jsp's, jpg's, etc. Other app servers I have worked with (OrionServer) had no problem specifying the actual location of the web directory in the application.xml whether or not it was exploded or in an ear file.
Thanks,
Dale -
3. Re: Missing something... Why doesn't JBoss look at my applic
adrian.brock Sep 6, 2002 5:29 AM (in response to dbronk)I never said file, you can have an exploded ear
containing an exploded war. I was pointing out that
application.xml belongs in the META-INF of the ear not
the war.
Put it in the wrong place and jboss will ignore it.
Regards,
Adrian -
4. Re: Missing something... Why doesn't JBoss look at my applic
dbronk Sep 6, 2002 9:11 AM (in response to dbronk)Thank you... My misunderstanding. I did this and it worked, but not completely what I wanted.
My structure
.../deploy
......app_one.ear
.........META-INF/application.xml
.........app_one.war
............web/*.html, *.jsp, etc.
............WEB-INF/web.xml
My application.xml:
<web-uri>app_one.war</web-uri>
<context-root>/abc_app</context-root>
This setup works as long as I have html/jsp/etc. in my app_one.war folder. But I don't. I have my html/jsp/etc. in my app_one.war/web folder. I tried moving the WEB-INF under the app_one.war/web folder and changing my <web-uri> to app_one.war/web but that causes 404 not founds. Is this just not possible with JBoss? Other appservers have a server.xml that would allow me to specify this, but with JBoss it seems that we have to point the app to the root war folder.
Basically what I want is to have my app_one.war folder only contain two folders: web and WEB-INF. Nothing else. When I browse to my /abc_app it should be served from the /app_one.war/web folder. It is acceptable to us to have to move the WEB-INF folder under the web folder if needed, but not wanted. I know this sounds trivial seeing that we will basically have an empty war folder so why not place the contents of the web folder in it, but that is not my call. It is the way my client wants it unless it simply can not be done.
Thanks,
Dale