Re: -D host on EAR file

2016-12-08 Thread José Luis Cetina
It works with application.xml Thanks. 2016-12-08 15:00 GMT-06:00 Romain Manni-Bucau : > assuming it is > > options I see - I probably miss a few but it is late ;): > > - rename the .war in the ear > - map the context in application.xml explicitely > > > Romain

Re: -D host on EAR file

2016-12-08 Thread Romain Manni-Bucau
assuming it is options I see - I probably miss a few but it is late ;): - rename the .war in the ear - map the context in application.xml explicitely Romain Manni-Bucau @rmannibucau | Blog | Old Blog

Re: -D host on EAR file

2016-12-08 Thread José Luis Cetina
Yeap, you are right, the host is OK, but the path is taken from the maven module name instead of the context.xml Any suggestion? 2016-12-08 14:56 GMT-06:00 Romain Manni-Bucau : > oh i get the issue now but this is unrelated to the host then, the context > name changed

Re: -D host on EAR file

2016-12-08 Thread Romain Manni-Bucau
oh i get the issue now but this is unrelated to the host then, the context name changed but host seems ok, right? think tomcat doesnt allow to use the context.xml to change the path, can it be it - still not 100% sure I fully got your case? Romain Manni-Bucau @rmannibucau

Re: -D host on EAR file

2016-12-08 Thread José Luis Cetina
Hi Romain. Look this please (log files): *TomEE 1.7.4 JAX RS* TomEE INFO: - localhost-rhino.com -> /rhino *TomEE 7.0 plus* INFO [http-nio-8080-exec-4] org.apache.tomee.catalina.TomcatWebAppBuilder.init - localhost-rhino.com -> /kx-apps-rhino As

Re: -D host on EAR file

2016-12-08 Thread Romain Manni-Bucau
Hi José, it is not supposed to have changed Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn

-D host on EAR file

2016-12-08 Thread José Luis Cetina
Hi, i was using TomEE 1.7.4 in my ear project. In this project i have 2 war files, each war file is accessed by their own HOST. I have this in my VM options: -D.host=localhost-myhost1.com Then in my context.xml file i have: Then i could access to my webapp using: