-
1. Re: .war as root doesn't work
yoyodyne Apr 9, 2003 8:27 PM (in response to wgao).war and ROOT.war used to work with earlier versions of JBoss. i dont think this applies any longer.
-
2. Re: .war as root doesn't work
wgao Apr 9, 2003 8:53 PM (in response to wgao)Really? Thanks for letting me know. I have spent several hours to make this work. It is really hard to follow the difference between versions.
So there is no way to access a file by http://localhost:8080/ in my scenario? That doesn't sound fun at all.
Thanks. -
3. Re: .war as root doesn't work
petertje Apr 10, 2003 6:16 AM (in response to wgao)you can deploy a war on root by using an ear (hmm, that sounds a bit contradictionary, but still ;-) and specifying the context root in the application.xml descriptor.
hth
Peter. -
4. Re: .war as root doesn't work
yoyodyne Apr 10, 2003 12:08 PM (in response to wgao)There is a way out. Create a file called
jboss-web.xml in ur WEB-INF folder which contains the following:
<?xml version="1.0"?>
<!DOCTYPE jboss-web>
<jboss-web>
<context-root>/</context-root>
</jboss-web>
Now u can specify whatever context root u want. hope that solves ur problem. -
5. Re: .war as root doesn't work
sevenilu Apr 26, 2003 12:58 PM (in response to wgao)i still can't deploy my application in root directory. Originally, I deploy my application as http://localhost:8080/account/index.jsp, then i try to amend the jboss-web.xml to
<?xml version="1.0"?>
<!DOCTYPE jboss-web>
<jboss-web>
<context-root>/</context-root>
</jboss-web>
... i get an error when look at http://locathost:8080/index.sjp
pls help -
6. Re: .war as root doesn't work
yoyodyne Apr 27, 2003 12:31 AM (in response to wgao)what error do u get?
also, can u tell me me your directory structure. -
7. Re: .war as root doesn't work
sevenilu Apr 27, 2003 11:56 AM (in response to wgao)ERROR MSG: No Context configured to process this request
Under C:\jboss-3.0.6_tomcat-4.1.18\server\default\deploy\account.war
- index.jsp
- META-INF
- WEB-INF -
8. Re: .war as root doesn't work
yoyodyne Apr 28, 2003 12:45 AM (in response to wgao)and i assume u have jboss-web.xml under WEB-INF. Everything seems to be perfect. Surprising, it doesnt work.
-
9. Re: .war as root doesn't work
sevenilu Apr 28, 2003 11:45 AM (in response to wgao)I don't know why is that too
Would you please tell me what's ur directory structure to make it work ? -
10. Re: .war as root doesn't work
yoyodyne Apr 29, 2003 2:15 AM (in response to wgao)its exactly similar to urs. I was on jboss-3.0.0-tomcat-4.0.3 for quite a while and it used to work fine. These days i am on jboss-3.2, but i have also tried it out on jboss-3.0.6 and jboss-3.0.7. Works fine for me in all cases. I dont know if there is a problem with
jboss-3.0.6_tomcat-4.1.18. Why dont u try out jboss-3.2? -
11. Re: .war as root doesn't work
sevenilu Apr 29, 2003 8:34 AM (in response to wgao)It works now. I found that restart the jboss is necessary for these changes!!
Thank you very much!