You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mohit Anchlia <mo...@gmail.com> on 2011/08/11 21:32:13 UTC
Tomcat war context path
Currently when I deploy abc-SNAPSHOT-01.war I access is something like
http://localhost:8080/abc-SNAPSHOT-01.war
How can I change the context root such that I can access it as
http://localhost:8080/abc?
Problem is that abc-SNAPSHOT-01.war name could change with the build
version change.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Generating SSL certificates
Posted by Pid <pi...@pidster.com>.
On 12/08/2011 02:26, Darryl Lewis wrote:
> Our certificates are about to expire and I need to generate new ones for tomcat. I'm using keytool, but getting a strange error.
Please start an entirely new thread, rather than replying to an existing
email & just editing the subject & body (which is called thread hijacking).
p
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Generating SSL certificates
Posted by Darryl Lewis <da...@unsw.edu.au>.
Our certificates are about to expire and I need to generate new ones for tomcat. I'm using keytool, but getting a strange error.
[root]# keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore keystore
Enter keystore password:
keytool error: java.lang.Exception: Key pair not generated, alias <tomcat> already exists
ok, fair enough, so I try and delete it and I get this:
[roots]# keytool -delete -alias tomcat
keytool error: java.io.EOFException
failing being able to do it in keytool, is it possible to delete the entire keychain and start from scratch? If so how?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat war context path
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
> Subject: Tomcat war context path
> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
> http://localhost:8080/abc-SNAPSHOT-01.war
Unlikely; I suspect it's really:
http://localhost:8080/abc-SNAPSHOT-01
> How can I change the context root such that I can access it as
> http://localhost:8080/abc?
Deploy it as abc.war.
> Problem is that abc-SNAPSHOT-01.war name could change with the build
> version change.
Which is an issue easily resolved by your deployment script.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Mark Thomas <ma...@apache.org>.
On 15/08/2011 20:45, Jesse Farinacci wrote:
> Greetings,
>
> On Mon, Aug 15, 2011 at 3:39 PM, Mohit Anchlia<mo...@gmail.com> wrote:
>>>>> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
>>>>> http://localhost:8080/abc-SNAPSHOT-01.war
>>>>>
>>>>> How can I change the context root such that I can access it as
>>>>> http://localhost:8080/abc?
>>>>>
>>>>> Problem is that abc-SNAPSHOT-01.war name could change with the build
>>>>> version change.
>
> You could also bundle a META-INF/context.xml file which looks something akin to:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Context path="/" />
No you can't. That config is invalid.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat war context path
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jesse Farinacci [mailto:jieryn@gmail.com]
> Subject: Re: Tomcat war context path
> You could also bundle a META-INF/context.xml file which looks something akin to:
> <?xml version="1.0" encoding="UTF-8"?>
> <Context path="/" />
Pretty much wrong on all counts:
1) The path attribute is not allowed when the <Context> element is in META-INF/context.xml.
2) The path for the default webapp is not "/" (read the servlet spec or Tomcat doc).
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings,
On Mon, Aug 15, 2011 at 3:39 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>>> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
>>>> http://localhost:8080/abc-SNAPSHOT-01.war
>>>>
>>>> How can I change the context root such that I can access it as
>>>> http://localhost:8080/abc?
>>>>
>>>> Problem is that abc-SNAPSHOT-01.war name could change with the build
>>>> version change.
You could also bundle a META-INF/context.xml file which looks something akin to:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/" />
-Jesse
--
There are 10 types of people in this world, those
that can read binary and those that can not.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Mohit Anchlia <mo...@gmail.com>.
Got it thanks! Will try that
On Mon, Aug 15, 2011 at 12:54 PM, Mark Thomas <ma...@apache.org> wrote:
> On 15/08/2011 20:39, Mohit Anchlia wrote:
>>
>> On Mon, Aug 15, 2011 at 12:17 PM, Pid<pi...@pidster.com> wrote:
>>>
>>> On 15/08/2011 18:05, Mohit Anchlia wrote:
>>>>
>>>> Is this even possible with tomcat?
>>>
>>> In Tomcat 7.0:
>>>
>>> abc##SNAPSHOT-01.war
>>> abc##SNAPSHOT-02.war
>>> abc##SNAPSHOT-03.war
>>> abc##SNAPSHOT-04.war
>>>
>>> etc
>>
>> Sorry I don't follow.
>
> Read Pid's e-mail again. Rename your WAR files as per his e-mail.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Mark Thomas <ma...@apache.org>.
On 15/08/2011 20:39, Mohit Anchlia wrote:
> On Mon, Aug 15, 2011 at 12:17 PM, Pid<pi...@pidster.com> wrote:
>> On 15/08/2011 18:05, Mohit Anchlia wrote:
>>> Is this even possible with tomcat?
>>
>> In Tomcat 7.0:
>>
>> abc##SNAPSHOT-01.war
>> abc##SNAPSHOT-02.war
>> abc##SNAPSHOT-03.war
>> abc##SNAPSHOT-04.war
>>
>> etc
>
> Sorry I don't follow.
Read Pid's e-mail again. Rename your WAR files as per his e-mail.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Mohit Anchlia <mo...@gmail.com>.
On Mon, Aug 15, 2011 at 12:17 PM, Pid <pi...@pidster.com> wrote:
> On 15/08/2011 18:05, Mohit Anchlia wrote:
>> Is this even possible with tomcat?
>
> In Tomcat 7.0:
>
> abc##SNAPSHOT-01.war
> abc##SNAPSHOT-02.war
> abc##SNAPSHOT-03.war
> abc##SNAPSHOT-04.war
>
> etc
Sorry I don't follow. What do I need to do change such that I can use
http://localhost:8080/abc/ instead of
http://localhost:8080/abc-snapshort-.xx ? Currently you need to use
the war file name in the context since that's how it gets deployed in
webapps.
>
>
>> On Thu, Aug 11, 2011 at 12:32 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>>> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
>>> http://localhost:8080/abc-SNAPSHOT-01.war
>>>
>>> How can I change the context root such that I can access it as
>>> http://localhost:8080/abc?
>>>
>>> Problem is that abc-SNAPSHOT-01.war name could change with the build
>>> version change.
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Pid <pi...@pidster.com>.
On 15/08/2011 18:05, Mohit Anchlia wrote:
> Is this even possible with tomcat?
In Tomcat 7.0:
abc##SNAPSHOT-01.war
abc##SNAPSHOT-02.war
abc##SNAPSHOT-03.war
abc##SNAPSHOT-04.war
etc
> On Thu, Aug 11, 2011 at 12:32 PM, Mohit Anchlia <mo...@gmail.com> wrote:
>> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
>> http://localhost:8080/abc-SNAPSHOT-01.war
>>
>> How can I change the context root such that I can access it as
>> http://localhost:8080/abc?
>>
>> Problem is that abc-SNAPSHOT-01.war name could change with the build
>> version change.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat war context path
Posted by Mohit Anchlia <mo...@gmail.com>.
Is this even possible with tomcat?
On Thu, Aug 11, 2011 at 12:32 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
> http://localhost:8080/abc-SNAPSHOT-01.war
>
> How can I change the context root such that I can access it as
> http://localhost:8080/abc?
>
> Problem is that abc-SNAPSHOT-01.war name could change with the build
> version change.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org