Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6387
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail |
|---|---|
| Date | Thu, 21 Jul 2011 20:50:36 -0400 |
| From | Arne Vajhøj <arne@vajhoej.dk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Deploy on tomcat with a name that differs from the warfile name |
| References | <4e11855f$0$10742$e4fe514c@dreader20.news.xs4all.nl> |
| In-Reply-To | <4e11855f$0$10742$e4fe514c@dreader20.news.xs4all.nl> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Lines | 33 |
| Message-ID | <4e28c95e$0$308$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
| NNTP-Posting-Host | 72.192.23.157 |
| X-Trace | news.sunsite.dk DXC=9PTFQIGVjhcO3d^23S\Y2mYSB=nbEKnkkaJl`]9B1PLaJPe3\kP5EUaKBm9cfh9BSdM2;kT<[:>[aAn^K[`\h?@k03D`;QO^I9c |
| X-Complaints-To | staff@sunsite.dk |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6387 |
Show key headers only | View raw
On 7/4/2011 5:18 AM, jaap wrote: > I want te deploy an application on Tomcat with a name that differs from > the warfile name. According to the documentation I expected to get > http://localhost:8080/campingserver/ to react to campingserver-1.0.2.war > in the webapp folder when I have the following context.xml file in > META-INF: > > <?xml version="1.0" encoding="UTF-8"?> > <Context path="/campingserver/"> > </Context> > > But this does not work, the URL is still > http://localhost:8080/campingserver-1.0.2/ > Any idea how to acomplish it? http://tomcat.apache.org/tomcat-7.0-doc/config/context.html says: "path ... The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context file or the docBase." so I am not surprise that it is not working. If you were using a full Java EE server you could use an ear file and specify the path there. With Tomcat I think the easiest solution is the low tech solution of renaming before copying. Arne
Back to comp.lang.java.programmer | Previous | Next | Find similar
Re: Deploy on tomcat with a name that differs from the warfile name Arne Vajhøj <arne@vajhoej.dk> - 2011-07-21 20:50 -0400
csiph-web