| Quote: |
|
I have 3 applications and they all have the "/" as the context root. |
| Quote: |
|
If I try the "Custom Location" and exploed option it let me deploy but the deployment gives errors. The errors are due to the fact that when using a "Custom Location" myeclipse does not build the directory names correctly for the ear and war applications. |
| ortizfabio wrote: |
| JBoss let you have multiple applications with the same context root "/" as long as they belong to different virtual hosts. To prove this create two copies of an application and deploy them as ear files and make sure that the jboss-web.xml has an entry for a virtual host like so:
<virtual-host>admin.acme.net</virtual-host> run JBoss and access the application by using the virtual host name: i.e: http://admin.acme.net:8080/ but before you need to update your host file with an entry like so: 127.0.0.1 admin.acme.net to be able to access the application. Of course you need to use some tool like ant to create you ear file since myecliseide won't do. The effect of virtual host is like running the applications in different services. |
| Quote: |
|
That is when I get the error. If I try the "Custom Location" and exploed option it let me deploy but the deployment gives errors. The errors are due to the fact that when using a "Custom Location" myeclipse does not build the directory names correctly for the ear and war applications. These directories need to have a subfix of .ear and .war for JBoss. Even if I specify the directory name for the ear application with the correct name the war inside the ear is deploy incorrectly (without .war extension.) |