tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: -D host on EAR file
Date Thu, 08 Dec 2016 21:00:35 GMT
assuming it is <Context path="/xxx">

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 <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-12-08 21:59 GMT+01:00 José Luis Cetina <maxtorzito@gmail.com>:

> 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 <rmannibucau@gmail.com>:
>
> > 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 <https://twitter.com/rmannibucau> |  Blog
> > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> > <https://javaeefactory-rmannibucau.rhcloud.com>
> >
> > 2016-12-08 21:52 GMT+01:00 José Luis Cetina <maxtorzito@gmail.com>:
> >
> > > 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 you can see in:
> > > TomEE 1.7.4 i could get access using the path */rhino* (i have this
> path
> > in
> > > my context.xml)
> > > TomEE 7.0 i could get access using the path* /kx-apps-rhino* this is
> the
> > > module name in my pom.xml
> > >
> > >
> > > Actual VM option:
> > > -Dkx-apps-rhino.host=localhost-rhino.com
> > >
> > > I could get access in TomEE 7 plus using this path */kx-apps-rhino*
> > >
> > > Something change here.
> > >
> > >
> > > 2016-12-08 14:33 GMT-06:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
> > >
> > > > Hi José,
> > > >
> > > > it is not supposed to have changed
> > > >
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > > > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > > > rmannibucau> |
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> > > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > > >
> > > > 2016-12-08 21:32 GMT+01:00 José Luis Cetina <maxtorzito@gmail.com>:
> > > >
> > > > > 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<MY-MAVEN-MODULE-WAR-NAME>.host=localhost-myhost1.com
> > > > >
> > > > >
> > > > > Then in my context.xml file i have: <Context antiJARLocking="true"
> > > > > path="/mypath">
> > > > >
> > > > > Then i could access to my webapp using:
> > localhost-myhost1.com/mypath
> > > > >
> > > > > Yesterday i upgrade to TomEE 7 plus and i cannot access to my web
> > > > > applications.
> > > > >
> > > > > Do i have to change something?
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ------------------------------------------------------------
> -------
> > > > > *José Luis Cetina*
> > > > > ------------------------------------------------------------
> -------
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> >
>
>
>
> --
> -------------------------------------------------------------------
> *José Luis Cetina*
> -------------------------------------------------------------------
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message