File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Virtual Hosting in Jboss Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Virtual Hosting in Jboss Error" Watch "Virtual Hosting in Jboss Error" New topic

Virtual Hosting in Jboss Error

Skanda Raman
Ranch Hand

Joined: Mar 21, 2008
Posts: 205

With the help of the below article I tried implement the concept of virtual hosting.

But i end up with 404 error.

I will explain the process i implemented

I am using jboss 5.0.1 new app server

In default/deploy/jbossweb.sar--i opened server.xml and add below code

Port Number i set it to 80

Now i navigated back to myapp.war and edited jboss-web.xml available in WEB-INF folder. my jboss-web.xml is as below

Now I accessed http://myapphost i get page not found error. I have index.html in myapp.war folder <welcome-file-list>tags are available in web.xml and index.html is added to it also

Also, when i access i find the same problem.

Please help me. Where i am going wrong?

Skanda Raman
Ranch Hand

Joined: Mar 21, 2008
Posts: 205

any help
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

I haven't tried this much, but here's how i had got this working the last time

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Virtual Hosting in Jboss Error
It's not a secret anymore!