Discussion:
TomEE 7.0.4 and contextPath
f***@rohde-schwarz.com
2018-06-18 15:01:13 UTC
Permalink
Hey,



sorry to bother you guys again, but I am trying to change the context path of my webapp in TomEE 7.0.4 but the old method of setting <Context path="/somehting”> in META-INF/context.xml is not working anymore.



What is the current best practice to “overwrite” the webapp/context name?



Thanks in advance and best

Fabian
Romain Manni-Bucau
2018-06-18 15:14:38 UTC
Permalink
If you put the war in webapps (or auto deploy) you must rename the war file
now (tomcat change).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Hey,
sorry to bother you guys again, but I am trying to change the context
path of my webapp in TomEE 7.0.4 but the old method of setting <Context
path="/somehting”> in META-INF/context.xml is not working anymore.
What is the current best practice to “overwrite” the webapp/context name?
Thanks in advance and best
Fabian
Mark Struberg
2018-06-18 15:35:22 UTC
Permalink
that's news to me.
Which ticket was that?Could not find it on bugzilla.

On Monday, 18 June 2018, 17:15:01 CEST, Romain Manni-Bucau <***@gmail.com> wrote:

If you put the war in webapps (or auto deploy) you must rename the war file
now (tomcat change).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
Hey,
sorry to bother you guys again, but I am trying to change the context
path of my webapp in TomEE 7.0.4 but the old method of setting <Context
path="/somehting”> in META-INF/context.xml is not working anymore.
What is the current best practice to “overwrite” the webapp/context name?
Thanks in advance and best
Fabian
Romain Manni-Bucau
2018-06-18 15:38:54 UTC
Permalink
outch makes years now but think i sent it on tomcat list:
https://markmail.org/search/?q=rmannibucau%20tomcat%20context.xml%20path%20list%3Aorg.apache.tomcat.dev%2F#query:rmannibucau%20tomcat%20context.xml%20path%20list%3Aorg.apache.tomcat.dev%2F+page:1+mid:nu4lsudwup67w34d+state:results

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by Mark Struberg
that's news to me.
Which ticket was that?Could not find it on bugzilla.
On Monday, 18 June 2018, 17:15:01 CEST, Romain Manni-Bucau <
If you put the war in webapps (or auto deploy) you must rename the war file
now (tomcat change).
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <
https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by f***@rohde-schwarz.com
Hey,
sorry to bother you guys again, but I am trying to change the context
path of my webapp in TomEE 7.0.4 but the old method of setting <Context
path="/somehting”> in META-INF/context.xml is not working anymore.
What is the current best practice to “overwrite” the webapp/context name?
Thanks in advance and best
Fabian
f***@rohde-schwarz.com
2018-06-19 06:47:51 UTC
Permalink
ugh, tough crowd, these tomcat people! Thanks for this discussion 2 years ago, Romain. Sadly they were adamant about their opinions.

Best
Fabian

-----Original Message-----
From: Romain Manni-Bucau <***@gmail.com>
Sent: Monday, June 18, 2018 5:39 PM
To: ***@tomee.apache.org
Subject: *EXT* [Newsletter] Re: TomEE 7.0.4 and contextPath

outch makes years now but think i sent it on tomcat list:
https://markmail.org/search/?q=rmannibucau%20tomcat%20context.xml%20path%20list%3Aorg.apache.tomcat.dev%2F#query:rmannibucau%20tomcat%20context.xml%20path%20list%3Aorg.apache.tomcat.dev%2F+page:1+mid:nu4lsudwup67w34d+state:results

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by Mark Struberg
that's news to me.
Which ticket was that?Could not find it on bugzilla.
On Monday, 18 June 2018, 17:15:01 CEST, Romain Manni-Bucau <
If you put the war in webapps (or auto deploy) you must rename the
war file now (tomcat change).
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <
https://github.com/rmannibucau> | LinkedIn
<https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
Hey,
sorry to bother you guys again, but I am trying to change the
context path of my webapp in TomEE 7.0.4 but the old method of
setting <Context path="/somehting”> in META-INF/context.xml is not working anymore.
What is the current best practice to “overwrite” the webapp/context name?
Thanks in advance and best
Fabian
Romain Manni-Bucau
2018-06-19 06:49:37 UTC
Permalink
:), that said it is surely better than change of opinion each two years ;)

Now in practise you always have something doing the provisioning, worse
case it is a script (like a sh on jenkins) but the point is you always
control the name of your delivery so it is not a big deal.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by f***@rohde-schwarz.com
ugh, tough crowd, these tomcat people! Thanks for this discussion 2 years
ago, Romain. Sadly they were adamant about their opinions.
Best
Fabian
-----Original Message-----
Sent: Monday, June 18, 2018 5:39 PM
Subject: *EXT* [Newsletter] Re: TomEE 7.0.4 and contextPath
https://markmail.org/search/?q=rmannibucau%20tomcat%20context.xml%20path%20list%3Aorg.apache.tomcat.dev%2F#query:rmannibucau%20tomcat%20context.xml%20path%20list%3Aorg.apache.tomcat.dev%2F+page:1+mid:nu4lsudwup67w34d+state:results
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog <
https://rmannibucau.metawerx.net/> | Old Blog <
http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by Mark Struberg
that's news to me.
Which ticket was that?Could not find it on bugzilla.
On Monday, 18 June 2018, 17:15:01 CEST, Romain Manni-Bucau <
If you put the war in webapps (or auto deploy) you must rename the
war file now (tomcat change).
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <
https://github.com/rmannibucau> | LinkedIn
<https://www.linkedin.com/in/rmannibucau> | Book <
https://www.packtpub.com/application-development/java-ee-8-high-perfor
mance
Post by f***@rohde-schwarz.com
Hey,
sorry to bother you guys again, but I am trying to change the
context path of my webapp in TomEE 7.0.4 but the old method of
setting <Context path="/somehting”> in META-INF/context.xml is not
working anymore.
Post by Mark Struberg
Post by f***@rohde-schwarz.com
What is the current best practice to “overwrite” the webapp/context
name?
Post by Mark Struberg
Post by f***@rohde-schwarz.com
Thanks in advance and best
Fabian
Loading...