[ANN] New committer: Felix Schumacher

2014-09-19 Thread Rainer Jung

On behalf of the Tomcat committers I am pleased to announce that
Felix Schumacher (fschumacher) has been voted in as a new Tomcat committer.

Please join me in welcoming him.

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to set up TLS-PSK with Tomcat

2014-09-19 Thread Mark Thomas
On 18/09/2014 20:15, Borislav Trifonov wrote:
 We need to use pre-shared keys, not certificates. TLS supports PSK,
 but how does one set this up in Tomcat? All the guides for SSL/TLS in
 Tomcat I've found talk about setting up certificates.

PSK ciphers are not supported JSSE provider provided by Oracle (or any
of the other JVM vendors as far as I am aware).

You'll have to find a JSSE provider that supports PSK ciphers. That
provider should include documentation on how to configure it.

Note that while Oracle does list PSK ciphers in the Java standard names,
that does not mean that they are implemented in the default JSSE
implementation.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Zala Pierre GOUPIL
Congratulations! You can be proud!

Regards,

Pierre




On Fri, Sep 19, 2014 at 9:49 AM, Rainer Jung rj...@apache.org wrote:

 On behalf of the Tomcat committers I am pleased to announce that
 Felix Schumacher (fschumacher) has been voted in as a new Tomcat committer.

 Please join me in welcoming him.

 Regards,

 Rainer

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
La vie est source de joie, la mort est source de paix, seule la transition
est difficile.


Re: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Mark Thomas
On 19/09/2014 08:49, Rainer Jung wrote:
 On behalf of the Tomcat committers I am pleased to announce that
 Felix Schumacher (fschumacher) has been voted in as a new Tomcat committer.
 
 Please join me in welcoming him.

+1. Welcome Felix.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: a problem: tomcat exits unexpectedly

2014-09-19 Thread Ognjen Blagojevic

Zhao,

On 19.9.2014 3:42, bo zhao wrote:

but I can't find any error message in the log? what causes the tomcat to
pause and stop?


One of the suspects for restarts and shutdown seems to be the class 
com.jd.clover.center.service.AbstractScheduleTaskProcess, as there is a 
log message regarding it, at the first line of each log excerpt you sent.


What is AbstractScheduleTaskProcess class for?

-Ognjen


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Tim Funk
+1 Awesome! Welcome!

-Tim

On Fri, Sep 19, 2014 at 3:49 AM, Rainer Jung rj...@apache.org wrote:

 On behalf of the Tomcat committers I am pleased to announce that
 Felix Schumacher (fschumacher) has been voted in as a new Tomcat committer.

 Please join me in welcoming him.

 Regards,

 Rainer




Re: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Filip Hanik
Welcome aboard!! Start committing :)

On Fri, Sep 19, 2014 at 6:28 AM, Tim Funk funk...@apache.org wrote:

 +1 Awesome! Welcome!

 -Tim

 On Fri, Sep 19, 2014 at 3:49 AM, Rainer Jung rj...@apache.org wrote:

  On behalf of the Tomcat committers I am pleased to announce that
  Felix Schumacher (fschumacher) has been voted in as a new Tomcat
 committer.
 
  Please join me in welcoming him.
 
  Regards,
 
  Rainer
 
 



Re: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Violeta Georgieva
2014-09-19 10:49 GMT+03:00 Rainer Jung rj...@apache.org:

 On behalf of the Tomcat committers I am pleased to announce that
 Felix Schumacher (fschumacher) has been voted in as a new Tomcat
committer.

 Please join me in welcoming him.

Welcome!

Regards
Violeta

 Regards,

 Rainer

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Konstantin Preißer
Welcome!

Regards,
Konstantin Preißer


 -Original Message-
 From: Rainer Jung [mailto:rj...@apache.org]
 Sent: Friday, September 19, 2014 9:49 AM
 To: Tomcat Developers List; Tomcat Users List
 Subject: [ANN] New committer: Felix Schumacher
 
 On behalf of the Tomcat committers I am pleased to announce that
 Felix Schumacher (fschumacher) has been voted in as a new Tomcat
 committer.
 
 Please join me in welcoming him.
 
 Regards,
 
 Rainer
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help!

2014-09-19 Thread Shrileckha Chaithanya
thanks! it worked.

On Thu, Sep 18, 2014 at 5:19 PM, Mark Eggers its_toas...@yahoo.com.invalid
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 9/18/2014 2:13 PM, Shrileckha Chaithanya wrote:
  Thx for responding. I did like look at this link. Can you provide
  with proper syntax to rename the cookie name?
 
  Sent from my iPhone
 
  On Sep 18, 2014, at 5:01 PM, Felix Schumacher
  felix.schumac...@internetallee.de wrote:
 
 
 
  On 18. September 2014 21:33:20 MESZ, Shrileckha Chaithanya
  cshrilec...@gmail.com wrote: Hi Tomcat team,
 
  I need to rename the JESSIONID cookie name to MKTSESSIONID.
 
  I updated the catalina.bat file  to use below.
 
  can you pls help?
 
  set JAVA_OPTS=%JAVA_OPTS%
  -Dorg.apache.catalina.JSESSIONID=MKT2SESSIONID
  That seems to be a jboss option. For tomcat 6 you can use
  org.apache.catalina.SESSION_COOKIE_NAME and for tomcat 7+ you can
  set it in the context. See
  http://tomcat.apache.org/migration-7.html#Session_manager_configuration
 .
 
 
 
 Regards
  Felix
 
  Thanks, Shrileckha Chaithanya

 For Tomcat 7:


 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

 For Tomcat 8:


 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes

 Look for sessionCookieName

 Setting an attribute on an XML node in general:

 Context sessionCookieName=FOO
 /Context

 . . . just my two cents
 /mde/

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.13 (MingW32)

 iQEcBAEBAgAGBQJUG0xFAAoJEEFGbsYNeTwt42wH/jTDrR2miK5lydLGi4ZGFNrk
 UluQQP6msjuhp9vIxvPU1zUkXxC5A96GldAygIRs1DijAju7igHQ0AoVv/GP/Kd4
 WpIY8OOzxgESxmrDuEexiQQ1WYUlsuH/2RuB1fIfDl8hQ4aJpNljfkp2Sb6TCp0T
 xBIO7+v2zM2JgOZqQMCV7PkbOABtAvVBg7T7DVxfLeCZmnhcbsoccugKL9HnQ7xz
 kAOv70FYXo4jABbF1GMONQWOQ2tp/bZO9Rx+THwGhEvyADHeIZgOZEZDESfptdZy
 bGzOWmINm4B13Vq6JpPLaFL8F5ssPXSwdUbwwhGRyHga8Awm0qTnQhAcEta7u0w=
 =UiDX
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Miguel Pereira
Hey all,

I was wondering where I could get some more information about these xml
files. On one system they are created every time I deploy a web application
and on another they are not.. I would prefer that tomcat does not create
them. Anyone want to point me in the right direction?

Thank you,
Miguel


Re: Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Daniel Mikusa
On Fri, Sep 19, 2014 at 12:28 PM, Miguel Pereira miguelaperei...@gmail.com
wrote:

 Hey all,

 I was wondering where I could get some more information about these xml
 files. On one system they are created every time I deploy a web application
 and on another they are not.. I would prefer that tomcat does not create
 them. Anyone want to point me in the right direction?


Some explanation of these files can be found here.

   http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Introduction

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context

See also the copyXML attribute further down on that page.  That could be
why you're seeing these files show up.

Dan



 Thank you,
 Miguel



Re: Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Miguel Pereira
Thank you very much Dan,

I looked at the links and noticed I am running tomcat 7 locally and 6 on
our DEV environment.
I also noticed that copyXML is present in the documentation for tomcat 7
and defaults to false.
Finally

In an individual file at /META-INF/context.xml inside the application
files. In Tomcat 6 this file is *automatically* copied to
$CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's
base file name plus a .xml extension. (This automated copying became
*optional* in Tomcat 7).


Would you happen to know if it is possible to achive the same in tomcat 6?
( We will not be upgrading for a while )


Miguel

On Fri, Sep 19, 2014 at 12:41 PM, Daniel Mikusa dmik...@pivotal.io wrote:

 On Fri, Sep 19, 2014 at 12:28 PM, Miguel Pereira 
 miguelaperei...@gmail.com
 wrote:

  Hey all,
 
  I was wondering where I could get some more information about these xml
  files. On one system they are created every time I deploy a web
 application
  and on another they are not.. I would prefer that tomcat does not create
  them. Anyone want to point me in the right direction?
 

 Some explanation of these files can be found here.


 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Introduction


 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context

 See also the copyXML attribute further down on that page.  That could be
 why you're seeing these files show up.

 Dan



  Thank you,
  Miguel
 



Should logEffectiveWebXml=true log web fragments ? tomcat 7.0

2014-09-19 Thread Loïc Tregan
Hi,

Setting logEffectiveWebXml=true in context.xml does not log the web
fragments in the absolute-ordering clause of the output web.xml; it is
not specified.

Is it expected ? Should I file a bug ?

I think it is a convenient feature to debug in which order the web
fragments are loaded.

thanks,

loic


Re: Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Daniel Mikusa
On Fri, Sep 19, 2014 at 1:32 PM, Miguel Pereira miguelaperei...@gmail.com
wrote:

 Thank you very much Dan,

 I looked at the links and noticed I am running tomcat 7 locally and 6 on
 our DEV environment.
 I also noticed that copyXML is present in the documentation for tomcat 7
 and defaults to false.
 Finally
 
 In an individual file at /META-INF/context.xml inside the application
 files. In Tomcat 6 this file is *automatically* copied to
 $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's
 base file name plus a .xml extension. (This automated copying became
 *optional* in Tomcat 7).
 

 Would you happen to know if it is possible to achive the same in tomcat 6?
 ( We will not be upgrading for a while )


I think the obvious solution would be to remove META-INF/context.xml from
your WAR file and put any config there into another context configuration
location, assuming that is an option for you.  What is your rationale for
not wanting it copied?  i.e. what is the problem that copying it causes?
 Maybe there is another way to resolve that problem.

Dan





 Miguel

 On Fri, Sep 19, 2014 at 12:41 PM, Daniel Mikusa dmik...@pivotal.io
 wrote:

  On Fri, Sep 19, 2014 at 12:28 PM, Miguel Pereira 
  miguelaperei...@gmail.com
  wrote:
 
   Hey all,
  
   I was wondering where I could get some more information about these xml
   files. On one system they are created every time I deploy a web
  application
   and on another they are not.. I would prefer that tomcat does not
 create
   them. Anyone want to point me in the right direction?
  
 
  Some explanation of these files can be found here.
 
 
  http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Introduction
 
 
 
 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context
 
  See also the copyXML attribute further down on that page.  That could
 be
  why you're seeing these files show up.
 
  Dan
 
 
 
   Thank you,
   Miguel
  
 



RE: May I have multiple web applications running on one tomcat server?

2014-09-19 Thread Tran, Minh

Hello All,
   Hope you all have a good Friday. I am new to Tom Cat server and I have a 
basic question which I would like to seek your helps and expertise.  Could I 
have a several web applications running on one tomcat server? I am using tomcat 
manager version 7. If I can , how can i do it?  Thanks in advance for all of 
your helps.

Best regards,
Tom



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: May I have multiple web applications running on one tomcat server?

2014-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tran,

On 9/19/14 3:22 PM, Tran, Minh wrote:
 Could I have a several web applications running on one tomcat
 server?

Yes.

 I am using tomcat manager version 7. If I can , how can i do it?

Place more than one WAR file (or exploded WAR directory) in your
webapps/ directory.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHIK8AAoJEBzwKT+lPKRYiNMQAJh23tFzsdQD46VAxu2J3YR7
qZiuDHBbXyZHs0DEgE810QrUBZTupQOxxdcprqV6Ld/k6mBCTjtMaY3mfnTWaQEi
poNcr+0UZxlTzvyCJM+Lq8D69sTdGmm/GxU9fHlmPv2bVZMOUdrM14q/ExnOOK1z
HNDgROLUOWC8GJS5TBOc8RQOh8UzR6Wkv0IjP378OcqyVx8U3hd/XxXl2luXz+gZ
ZUOhhqNskAbCHYH2o+CWI6cPSfGfpLW1G++8mg2G2nvPBGXHpM0EX8NUtOTZNSFX
T7sqNtQjmKaN0C3kMLLJ4BRs4KhgTSOtkHJof+aW0MxLRBIRM4dNF+UbR1GONJNk
8sxlJUBoP5v+Ex9GQ1x0LAipMvCBXCATgBeXc2IboiLxHtyYr0aaQg8I/4M5WiEj
CFDmrurS+/sG74B39fTpFLJnkDE+sAMMzvf1zIIaZr4KzGPDuSmgAemZMQ322juC
DLBwI+zlyMfdsY2/ETLktar1iuZLl2GOt6ZYDxd3/y68VVwfluhVPjz+YNkysOOb
O4EhAZYz3Z7NWjVw3iMXXVbUJ8ETM6lPZxHs1rLYWTPN8uLIrpeyq1ppj/alV24+
8xdptPgv9J6/37Lw2DLW9FJBpF0OMiJ+Ng/RQ+HLUWBpKooML9z5CL+Uc0xdIUCZ
h4ZKAgb/Udqraxo5FJ8j
=kEeC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Miguel Pereira
Ahhh, thanks Dan,

Unfortunately these are 3rd party apps what we receive as a WAR. I am not
sure that unzipping them and rezipping them is ideal nor maintainable. The
main reason is that the context fragments remain after the apps are
undeployed which throw non fatal errors on subsequent tomcat restarts. This
is primarly a problem during development when testing new applications.

I feel that the way we are undeploying applications is at the heart issue.
The documentation

Deleting a WAR file will trigger an undeploy of the application with the
*removal* of any associated expanded directory, *context file* and work
directory. Any current user sessions will not be persisted.

Seems to make it clear the the context file is removed but I am
experiencing that is not the case or the third party tool we are using is
not properly undeploying the application.

I'll be doing some more digging,
Miguel



On Fri, Sep 19, 2014 at 2:45 PM, Daniel Mikusa dmik...@pivotal.io wrote:

 On Fri, Sep 19, 2014 at 1:32 PM, Miguel Pereira miguelaperei...@gmail.com
 
 wrote:

  Thank you very much Dan,
 
  I looked at the links and noticed I am running tomcat 7 locally and 6 on
  our DEV environment.
  I also noticed that copyXML is present in the documentation for tomcat 7
  and defaults to false.
  Finally
  
  In an individual file at /META-INF/context.xml inside the application
  files. In Tomcat 6 this file is *automatically* copied to
  $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's
  base file name plus a .xml extension. (This automated copying became
  *optional* in Tomcat 7).
  
 
  Would you happen to know if it is possible to achive the same in tomcat
 6?
  ( We will not be upgrading for a while )
 

 I think the obvious solution would be to remove META-INF/context.xml from
 your WAR file and put any config there into another context configuration
 location, assuming that is an option for you.  What is your rationale for
 not wanting it copied?  i.e. what is the problem that copying it causes?
  Maybe there is another way to resolve that problem.

 Dan



 
 
  Miguel
 
  On Fri, Sep 19, 2014 at 12:41 PM, Daniel Mikusa dmik...@pivotal.io
  wrote:
 
   On Fri, Sep 19, 2014 at 12:28 PM, Miguel Pereira 
   miguelaperei...@gmail.com
   wrote:
  
Hey all,
   
I was wondering where I could get some more information about these
 xml
files. On one system they are created every time I deploy a web
   application
and on another they are not.. I would prefer that tomcat does not
  create
them. Anyone want to point me in the right direction?
   
  
   Some explanation of these files can be found here.
  
  
  
 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Introduction
  
  
  
 
 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context
  
   See also the copyXML attribute further down on that page.  That could
  be
   why you're seeing these files show up.
  
   Dan
  
  
  
Thank you,
Miguel
   
  
 



RE: May I have multiple web applications running on one tomcat server?

2014-09-19 Thread Tran, Minh
Thanks one more question about running multiple web apps on one Tom Cat server 
if you would not mind;
Suppose I am now having two web applications call app1 , and app2; and I deploy 
both of them to Tomcat.

Suppose I am able to access  app1 on  http://localhost:8080/app1;
and app2 on http://localhost:8080/app2


My question is that could I be able to run both applications app1 and app2 at 
the same time?  I don't know it because I see both applications use same port 
so that I may not be  able to access them at same time. I may be wrong on this; 
so please correct me.

Thanks again for all of your help,
Tom

From: Christopher Schultz [ch...@christopherschultz.net]
Sent: Friday, September 19, 2014 3:23 PM
To: Tomcat Users List
Subject: Re: May I have  multiple web applications running on one tomcat server?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tran,

On 9/19/14 3:22 PM, Tran, Minh wrote:
 Could I have a several web applications running on one tomcat
 server?

Yes.

 I am using tomcat manager version 7. If I can , how can i do it?

Place more than one WAR file (or exploded WAR directory) in your
webapps/ directory.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHIK8AAoJEBzwKT+lPKRYiNMQAJh23tFzsdQD46VAxu2J3YR7
qZiuDHBbXyZHs0DEgE810QrUBZTupQOxxdcprqV6Ld/k6mBCTjtMaY3mfnTWaQEi
poNcr+0UZxlTzvyCJM+Lq8D69sTdGmm/GxU9fHlmPv2bVZMOUdrM14q/ExnOOK1z
HNDgROLUOWC8GJS5TBOc8RQOh8UzR6Wkv0IjP378OcqyVx8U3hd/XxXl2luXz+gZ
ZUOhhqNskAbCHYH2o+CWI6cPSfGfpLW1G++8mg2G2nvPBGXHpM0EX8NUtOTZNSFX
T7sqNtQjmKaN0C3kMLLJ4BRs4KhgTSOtkHJof+aW0MxLRBIRM4dNF+UbR1GONJNk
8sxlJUBoP5v+Ex9GQ1x0LAipMvCBXCATgBeXc2IboiLxHtyYr0aaQg8I/4M5WiEj
CFDmrurS+/sG74B39fTpFLJnkDE+sAMMzvf1zIIaZr4KzGPDuSmgAemZMQ322juC
DLBwI+zlyMfdsY2/ETLktar1iuZLl2GOt6ZYDxd3/y68VVwfluhVPjz+YNkysOOb
O4EhAZYz3Z7NWjVw3iMXXVbUJ8ETM6lPZxHs1rLYWTPN8uLIrpeyq1ppj/alV24+
8xdptPgv9J6/37Lw2DLW9FJBpF0OMiJ+Ng/RQ+HLUWBpKooML9z5CL+Uc0xdIUCZ
h4ZKAgb/Udqraxo5FJ8j
=kEeC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: May I have multiple web applications running on one tomcat server?

2014-09-19 Thread David kerber

On 9/19/2014 3:36 PM, Tran, Minh wrote:

Thanks one more question about running multiple web apps on one Tom Cat server 
if you would not mind;
Suppose I am now having two web applications call app1 , and app2; and I deploy 
both of them to Tomcat.

Suppose I am able to access  app1 on  http://localhost:8080/app1;
and app2 on http://localhost:8080/app2


My question is that could I be able to run both applications app1 and app2 at 
the same time?  I don't know it because I see both applications use same port 
so that I may not be  able to access them at same time. I may be wrong on this; 
so please correct me.


Yes, that is how it works.  It is Tomcat that is listening on a specific 
port, not your application as such.  TC passes the request on to the 
appropriate app.





Thanks again for all of your help,
Tom

From: Christopher Schultz [ch...@christopherschultz.net]
Sent: Friday, September 19, 2014 3:23 PM
To: Tomcat Users List
Subject: Re: May I have  multiple web applications running on one tomcat server?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tran,

On 9/19/14 3:22 PM, Tran, Minh wrote:

Could I have a several web applications running on one tomcat
server?


Yes.


I am using tomcat manager version 7. If I can , how can i do it?


Place more than one WAR file (or exploded WAR directory) in your
webapps/ directory.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHIK8AAoJEBzwKT+lPKRYiNMQAJh23tFzsdQD46VAxu2J3YR7
qZiuDHBbXyZHs0DEgE810QrUBZTupQOxxdcprqV6Ld/k6mBCTjtMaY3mfnTWaQEi
poNcr+0UZxlTzvyCJM+Lq8D69sTdGmm/GxU9fHlmPv2bVZMOUdrM14q/ExnOOK1z
HNDgROLUOWC8GJS5TBOc8RQOh8UzR6Wkv0IjP378OcqyVx8U3hd/XxXl2luXz+gZ
ZUOhhqNskAbCHYH2o+CWI6cPSfGfpLW1G++8mg2G2nvPBGXHpM0EX8NUtOTZNSFX
T7sqNtQjmKaN0C3kMLLJ4BRs4KhgTSOtkHJof+aW0MxLRBIRM4dNF+UbR1GONJNk
8sxlJUBoP5v+Ex9GQ1x0LAipMvCBXCATgBeXc2IboiLxHtyYr0aaQg8I/4M5WiEj
CFDmrurS+/sG74B39fTpFLJnkDE+sAMMzvf1zIIaZr4KzGPDuSmgAemZMQ322juC
DLBwI+zlyMfdsY2/ETLktar1iuZLl2GOt6ZYDxd3/y68VVwfluhVPjz+YNkysOOb
O4EhAZYz3Z7NWjVw3iMXXVbUJ8ETM6lPZxHs1rLYWTPN8uLIrpeyq1ppj/alV24+
8xdptPgv9J6/37Lw2DLW9FJBpF0OMiJ+Ng/RQ+HLUWBpKooML9z5CL+Uc0xdIUCZ
h4ZKAgb/Udqraxo5FJ8j
=kEeC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Daniel Mikusa
On Fri, Sep 19, 2014 at 3:33 PM, Miguel Pereira miguelaperei...@gmail.com
wrote:

 Ahhh, thanks Dan,

 Unfortunately these are 3rd party apps what we receive as a WAR. I am not
 sure that unzipping them and rezipping them is ideal nor maintainable. The
 main reason is that the context fragments remain after the apps are
 undeployed which throw non fatal errors on subsequent tomcat restarts. This
 is primarly a problem during development when testing new applications.

 I feel that the way we are undeploying applications is at the heart issue.
 The documentation
 
 Deleting a WAR file will trigger an undeploy of the application with the
 *removal* of any associated expanded directory, *context file* and work
 directory. Any current user sessions will not be persisted.
 
 Seems to make it clear the the context file is removed but I am
 experiencing that is not the case or the third party tool we are using is
 not properly undeploying the application.


What version of Tomcat 6 are you using?  If it's not the latest one, it
would be worth trying the latest version to see if that clears up this
trouble.

Might also be worth trying a different method of undeploying the
application, like the manager or JMX, to see if that removes the context
file.

Dan



 I'll be doing some more digging,
 Miguel



 On Fri, Sep 19, 2014 at 2:45 PM, Daniel Mikusa dmik...@pivotal.io wrote:

  On Fri, Sep 19, 2014 at 1:32 PM, Miguel Pereira 
 miguelaperei...@gmail.com
  
  wrote:
 
   Thank you very much Dan,
  
   I looked at the links and noticed I am running tomcat 7 locally and 6
 on
   our DEV environment.
   I also noticed that copyXML is present in the documentation for tomcat
 7
   and defaults to false.
   Finally
   
   In an individual file at /META-INF/context.xml inside the application
   files. In Tomcat 6 this file is *automatically* copied to
   $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to
 application's
   base file name plus a .xml extension. (This automated copying became
   *optional* in Tomcat 7).
   
  
   Would you happen to know if it is possible to achive the same in tomcat
  6?
   ( We will not be upgrading for a while )
  
 
  I think the obvious solution would be to remove META-INF/context.xml from
  your WAR file and put any config there into another context configuration
  location, assuming that is an option for you.  What is your rationale for
  not wanting it copied?  i.e. what is the problem that copying it causes?
   Maybe there is another way to resolve that problem.
 
  Dan
 
 
 
  
  
   Miguel
  
   On Fri, Sep 19, 2014 at 12:41 PM, Daniel Mikusa dmik...@pivotal.io
   wrote:
  
On Fri, Sep 19, 2014 at 12:28 PM, Miguel Pereira 
miguelaperei...@gmail.com
wrote:
   
 Hey all,

 I was wondering where I could get some more information about these
  xml
 files. On one system they are created every time I deploy a web
application
 and on another they are not.. I would prefer that tomcat does not
   create
 them. Anyone want to point me in the right direction?

   
Some explanation of these files can be found here.
   
   
   
  http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Introduction
   
   
   
  
 
 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Defining_a_context
   
See also the copyXML attribute further down on that page.  That
 could
   be
why you're seeing these files show up.
   
Dan
   
   
   
 Thank you,
 Miguel

   
  
 



RE: How to set up TLS-PSK with Tomcat

2014-09-19 Thread Borislav Trifonov
Are you saying Tomcat can use OpenSSL instead of Java for TLS? That would be 
great, as OpenSSL does support a number of TLS-PSK ciphers.


Borislav Trifonov, CTO
MSc

Macroh Canada, Inc.

#206-395 Railway St.
Vancouver, BC, V6A 1A4
Canada

T: +1 604 694 0002
C: +1 778 688 6139
F: +1 604 694 0001




From: Igor Cicimov [icici...@gmail.com]
Sent: Thursday, September 18, 2014 3:46 PM
To: Tomcat Users List
Subject: Re: How to set up TLS-PSK with Tomcat

On 19/09/2014 5:16 AM, Borislav Trifonov btrifo...@macroh.com wrote:

 We need to use pre-shared keys, not certificates. TLS supports PSK, but
how does one set this up in Tomcat? All the guides for SSL/TLS in Tomcat
I've found talk about setting up certificates.

Set sslProtocol=TLS and appropriate ciphers=... in the Connector.
Assuming your java version has support for tls_psk you can set those in the
ciphers list. But you dont even say is it java or openssl you are asking
about? Anyway, check the ssl part of the Tomcat Connector documentation for
more details.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat xml files in conf/Catalina/localhost

2014-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Dan,

On 9/19/14 3:44 PM, Daniel Mikusa wrote:
 On Fri, Sep 19, 2014 at 3:33 PM, Miguel Pereira
 miguelaperei...@gmail.com wrote:
 
 Ahhh, thanks Dan,
 
 Unfortunately these are 3rd party apps what we receive as a WAR.
 I am not sure that unzipping them and rezipping them is ideal nor
 maintainable. The main reason is that the context fragments
 remain after the apps are undeployed which throw non fatal errors
 on subsequent tomcat restarts. This is primarly a problem during
 development when testing new applications.
 
 I feel that the way we are undeploying applications is at the
 heart issue. The documentation  Deleting a WAR file will trigger
 an undeploy of the application with the *removal* of any
 associated expanded directory, *context file* and work directory.
 Any current user sessions will not be persisted.  Seems to make
 it clear the the context file is removed but I am experiencing
 that is not the case or the third party tool we are using is not
 properly undeploying the application.
 
 
 What version of Tomcat 6 are you using?  If it's not the latest
 one, it would be worth trying the latest version to see if that
 clears up this trouble.

+1

The documentation refers to the latest released version of Tomcat in
that major version line (6.0.x, 7.0.x, etc.). So if 6.0.41 is the
latest and you are running 6.0.18 then there may be some significant
differences between the documentation and the behavior in your
environment. There have been some recent attempts to clarify and unify
the behavior of Tomcat when it comes to deploying, undeploying, and
re-deploying web applications, including what happens to the XML
deployment descriptors.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHI0sAAoJEBzwKT+lPKRYtQcP/iCm/6mJRsjrsDs5CUkzZ8IL
v2gHVtbO+SCMeO/Gp2zLJkf3BhIAy+pb3wSGiHBFx4LkgdRDHa9mhOapJRj0fT7V
RW9EIcUsNke5itihYR2R1Cp6dzkQJuNgH+lvUaE+ViLCRBmO3TlHuIsdxtdVV1p6
Mjsx9He80+uzJcq09J/Zx2/B+v9jgg8uzzXgFSkzm+LK3v7yMekW90StYQ1+K/17
vc1aUrJbL9i344izDmJQkMHavS5ywBQ7UsTUmWO13uAhy1cIMopx3DxcA/RKJIbl
lJoxL7PD+zf9iOPH56KjYlClKo0M8cSj5pngsviVcxsxAizlnauGlVi5ZusqW2rY
4UlWNvYxnx26lCrVNufEhgkXMA5Sb8xfUpb7jykVKdva9ukZlPSqrm7Evtp/aU+M
ZgVXeRneEF3VBmlgYvIeBbkqcmyV0Wf67XzIMHBut+12D7Kw4fTtl8AdB0CCRUE3
gCJOq8WRoQ098wkZWbtn/mGdXcX8l9SKFAm9DJAr3iMVcEFIPyINLka44veoYfTE
8w+lpA/Vy7l05G3qdcD9qcDoNCjHiHuwHzhyGq5whsd8mHMpDI9ew42lRqQIAKAO
kC9XNoI3gvmJsEqU6Xxd99UEsUwavZxtKbBAb0gxoX7naFC7Cft7AVnrAeqVwp4p
afAHR/8H0YwtibnoHvuy
=J0o8
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: May I have multiple web applications running on one tomcat server?

2014-09-19 Thread James H. H. Lampert

On 9/19/14 12:22 PM, Tran, Minh wrote:

Hope you all have a good Friday. I am new to Tom Cat server and I
have a basic question which I would like to seek your helps and
expertise.  Could I have a several web applications running on one
tomcat server? I am using tomcat manager version 7. If I can , how
can i do it?  Thanks in advance for all of your helps.


Sure. In the Tomcat we have running on our production AS/400, for 
example, we have two instances of our Wintouch Web webapp (production, 
running as ROOT, and demo, running as wintouchdemo, along with 
another webapp that allows users to obtain limited-time license 
authorization codes for our products, and an additional context that 
consists of nothing but static pages.


And we have another Tomcat server running on a Win-Doze box, that has 
two more instances of our Wintouch Web webapp (but still accessing 
Wintouch on the aforementioned AS/400).


This is, in both cases, in addition to the manager and host-manager 
contexts provided with Tomcat.


Which is to say that straight out of the box, Tomcat has multiple 
webapps running, just for manager, host-manager, and the 
demonstration ROOT.


--
JHHL

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: WAR file deployment question

2014-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

James,

On 9/15/14 8:11 PM, James H. H. Lampert wrote:
 We have a rather large WAR file. 89,925,956 bytes. And we have
 cable internet. With its usual extremely asymmetrical bandwidth: a
 download pipe the size of an air conditioning duct, and an upload
 pipe the size of an insulin needle.
 
 Squirting this huge WAR file through such a narrow pipe takes over
 half an hour. But our web and FTP servers are on a hosting
 service's server, so they're not passing through the narrow pipe.
 
 Can I, from Manager, deploy a WAR file that's sitting on a web or
 FTP site, instead of on my local system?

You can't do that, but you can push the file via FTP, scp, etc. and
then copy it to its final location. I wouldn't put your WAR onto your
web server for a few reasons.

Can you push the file to your application server into a temporary
directory and then just do a cp to put it in the right place? It
will take almost no time to cp the file and Tomcat should auto-reload.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHI5hAAoJEBzwKT+lPKRY85oQALjYcbrcUKuoGaz9EJzrrers
Uez2tRCNe/4UwDtV8O/Dtmiu4yeb0Q/2JtsdjzorRXnddDxrHgRmMXfP07kbawd8
3G0KxIu9NnPgVabusSDzTfq2Ss+7Kx8a6I+YPiLuwYnSGb/eK28J1mFpxzIl0x6i
HbrUUBQZ9wUKG4KC6zqlpQgdHup8d6biWUhVxQBnBZBDfxdnIA7orthZgc8oqIUw
npxt1uNU7PAG1WnUzZjRPb2qlgE2s5nLhmVd4dWfE0zFMj4DC+kLTj/0RRIurHXW
QSGK7/bzCrNpEKVWpHneMPA6ls37FFG/BRO7XbF2E2p/MgzEfnPaIBvcqQWLbLfd
LoSMJ9n8oWGBt6oZCMGLE9o9C2JD8Y6rRfoDwnCEw53Dowi1AkKTVHJ8uFV94Sz2
a2N6NA5u54QAHeyy0d2prle3uZIkJdQ14ibvI0eeKG9YeYfhnIjeGYf0a3tIb6wC
7Tr2O/C2EPNEqYlqOnqW3AcBms2qA49Remr6b5qZochCc8vYbIxcAPZwUEundXvk
MP+jpy8thT0pu13CY7mWri7the8RE7iXBBR+q8dAngWFxPbR7mYcdG9slvOfMJun
UcMAVu4mn54I1rNQMJGT0Y1ruvgBsIZbHj3QQaH+lT6TCRGmLD7cNa8HHeLOT+9g
t+HAYQ6Cq13DqtJHBVxh
=IirE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to set up TLS-PSK with Tomcat

2014-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Borislav,

On 9/19/14 3:47 PM, Borislav Trifonov wrote:
 Are you saying Tomcat can use OpenSSL instead of Java for TLS?

Yes. You need to use the tcnative library (Tomcat Native on the
Tomcat web site) along with libapr and libssl. Under a default
configuration, Tomcat will auto-detect the presence of tcnative and
libapr and use that for your HTTP(S) connectors.

It's better to explicitly configure the connectors, though, to use APR.
http://tomcat.apache.org/tomcat-8.0-doc/apr.html

 That would be great, as OpenSSL does support a number of TLS-PSK
 ciphers.

When I originally saw your question, I did a bit of Googling. I see
that Apache httpd (which also uses OpenSSL) does not support using
TLS-PSK, so you may run into some problems.

I'm curious: why do you require PSK instead of public certificates?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHI8qAAoJEBzwKT+lPKRY1NsQAIo6ppY3FaVS96mnAaWMxkCC
1QBY2mbWVQHMe4XtEwy372lcSfZr4yXYpn6KIlPa7N8ml+FmmVq7oA6moYHcXBAC
WA/6WQ3Sfhs7WdSfq5BsZw2XouoYD1WfU/kve4NrWKlrQfAaTFdfgplb8EWss25L
jQliuanrPRgfjxuXIwQMXVYKgjjK7Fwy3oBlL5EZ2AAm7eeRk+yh62ZYQ8fQwtXU
O2NJ/Pm24uINaYI3U4LCjjoxOzzpYtl1QOU+NehtGaRpSbbxAb7EofpI8+0wyOoP
EWFm/gh/A1KrHRq9MBJ+IHLEswPydgh3AnCHtlZhAo67rjKcNbOj3yCN3p6nV9Mt
bZp0NATyeiK5Rdbq+1lP5qoKcb+M3wIoNl9Hlzf4pgZrsSgOalD0pqZkbMIBdOFF
ApKWO7ra2Bjhhm/GZlGD/kPgdlEbfg6nVrVQRRVnt0Co8abg4+T6e0sUisu4w7RB
cJiMjVBuOhQaZ/A/W/9dHnsI2qcgDBMJoUgDLj4NTxWhRCHIv819AKQUohB0MDi2
Qj/W2xo1L/8vUIe4EkLdQNW0FyChEzHZYVeeg8EZYrHRRdUAfeWfcEI9rJib+3PG
lcCkN6ruLK48GA38gKXS5HAa320e+JhIegQwEPIuwzOlHzq+k0kOtxvURibLF6US
MX+/NrA/Y3tiBWbZFH2n
=gwVs
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help!

2014-09-19 Thread Shrileckha Chaithanya
It worked but I am not able to get this cookie name via

request.getCookies() call. Should I add anything in the tomcat context in
order to get it from the request?

Cookie[] cookies = req.getCookies();
if(cookies != null){
for (Cookie cookie : cookies) {
log.info(cookie name :+cookie.getName()+cookie.value()
:+cookie.getValue());

}
}

Pls let me know.

Thanks,
Shrielckha Chaithanya

On Fri, Sep 19, 2014 at 11:37 AM, Shrileckha Chaithanya 
cshrilec...@gmail.com wrote:

 thanks! it worked.

 On Thu, Sep 18, 2014 at 5:19 PM, Mark Eggers 
 its_toas...@yahoo.com.invalid wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 9/18/2014 2:13 PM, Shrileckha Chaithanya wrote:
  Thx for responding. I did like look at this link. Can you provide
  with proper syntax to rename the cookie name?
 
  Sent from my iPhone
 
  On Sep 18, 2014, at 5:01 PM, Felix Schumacher
  felix.schumac...@internetallee.de wrote:
 
 
 
  On 18. September 2014 21:33:20 MESZ, Shrileckha Chaithanya
  cshrilec...@gmail.com wrote: Hi Tomcat team,
 
  I need to rename the JESSIONID cookie name to MKTSESSIONID.
 
  I updated the catalina.bat file  to use below.
 
  can you pls help?
 
  set JAVA_OPTS=%JAVA_OPTS%
  -Dorg.apache.catalina.JSESSIONID=MKT2SESSIONID
  That seems to be a jboss option. For tomcat 6 you can use
  org.apache.catalina.SESSION_COOKIE_NAME and for tomcat 7+ you can
  set it in the context. See
 
 http://tomcat.apache.org/migration-7.html#Session_manager_configuration.
 
 
 
 Regards
  Felix
 
  Thanks, Shrileckha Chaithanya

 For Tomcat 7:


 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

 For Tomcat 8:


 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes

 Look for sessionCookieName

 Setting an attribute on an XML node in general:

 Context sessionCookieName=FOO
 /Context

 . . . just my two cents
 /mde/

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.13 (MingW32)

 iQEcBAEBAgAGBQJUG0xFAAoJEEFGbsYNeTwt42wH/jTDrR2miK5lydLGi4ZGFNrk
 UluQQP6msjuhp9vIxvPU1zUkXxC5A96GldAygIRs1DijAju7igHQ0AoVv/GP/Kd4
 WpIY8OOzxgESxmrDuEexiQQ1WYUlsuH/2RuB1fIfDl8hQ4aJpNljfkp2Sb6TCp0T
 xBIO7+v2zM2JgOZqQMCV7PkbOABtAvVBg7T7DVxfLeCZmnhcbsoccugKL9HnQ7xz
 kAOv70FYXo4jABbF1GMONQWOQ2tp/bZO9Rx+THwGhEvyADHeIZgOZEZDESfptdZy
 bGzOWmINm4B13Vq6JpPLaFL8F5ssPXSwdUbwwhGRyHga8Awm0qTnQhAcEta7u0w=
 =UiDX
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





Re: WAR file deployment question

2014-09-19 Thread James H. H. Lampert
Thanks, Messrs Janner and Schultz. I feared that was the case, but it 
never hurts to ask.


The thing is, if I have it sitting someplace off-site, and Manager could 
snag it from there directly, then we'd only have to pass it through the 
insulin needle upload pipe of our cable internet when we were actually 
updating it. Instead of every time we deploy it.


--
JHHL

(And Mr. Warnier, I do hope your suggestion was a joke!)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help!

2014-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Shrileckha

On 9/19/14 4:40 PM, Shrileckha Chaithanya wrote:
 It worked but I am not able to get this cookie name via
 
 request.getCookies() call. Should I add anything in the tomcat
 context in order to get it from the request?
 
 Cookie[] cookies = req.getCookies(); if(cookies != null){ for
 (Cookie cookie : cookies) { log.info(cookie name
 :+cookie.getName()+cookie.value() :+cookie.getValue());
 
 } }
 
 Pls let me know.

What cookies /do/ you get? Does it look like the cookie name hasn't
changed, or are you not seeing any cookies?

- -chris

 thanks! it worked.
 
 On Thu, Sep 18, 2014 at 5:19 PM, Mark Eggers  
 its_toas...@yahoo.com.invalid wrote:
 
 On 9/18/2014 2:13 PM, Shrileckha Chaithanya wrote:
 Thx for responding. I did like look at this link. Can you
 provide with proper syntax to rename the cookie name?
 
 Sent from my iPhone
 
 On Sep 18, 2014, at 5:01 PM, Felix Schumacher 
 felix.schumac...@internetallee.de wrote:
 
 
 
 On 18. September 2014 21:33:20 MESZ, Shrileckha
 Chaithanya cshrilec...@gmail.com wrote: Hi Tomcat
 team,
 
 I need to rename the JESSIONID cookie name to
 MKTSESSIONID.
 
 I updated the catalina.bat file  to use below.
 
 can you pls help?
 
 set JAVA_OPTS=%JAVA_OPTS% 
 -Dorg.apache.catalina.JSESSIONID=MKT2SESSIONID
 That seems to be a jboss option. For tomcat 6 you can
 use org.apache.catalina.SESSION_COOKIE_NAME and for
 tomcat 7+ you can set it in the context. See
 
 http://tomcat.apache.org/migration-7.html#Session_manager_configuration.




 
Regards
 Felix
 
 Thanks, Shrileckha Chaithanya
 
 For Tomcat 7:
 
 
 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

  For Tomcat 8:
 
 
 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes

  Look for sessionCookieName
 
 Setting an attribute on an XML node in general:
 
 Context sessionCookieName=FOO /Context
 
 . . . just my two cents /mde/
 
 
 -

 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHJhLAAoJEBzwKT+lPKRYOuwP/0DpfgCuC3CndLN/es21woYW
FAB70eU+dJCcVXhjH3szVfoGSsEaDHMub4aZy3jZV4enlS3pPzu6CwrhPDYCXObs
PoptG91QsDpb3eEOBT+WgjUVN9C2pEE7qL+n5xHSiTcqbcp0A6XwCFJzrltTS3ou
d9RConNNVbq9soTP8t7F81PSMkfDmj056/60AHWcubvEhyJvDig39Jq90tyOrJtB
eY10Lw+JaLeeWiyrnBRV05ggVw0kW4I1JbfDlwBNpIyCC9HBkZPdYs2kcQ7Pa2LM
lP8USZ6LkLhqUefjaPAmkjaD9XpjeVOeSXX7eLULLvWc0BsgpsZz2zfyy2ofNqm4
QVcX54Lw5PzLcrQwfKsmMvcEVYVGgLkmBPzTbDvL87HJ05fQJ2f3bj7g8ZCffyky
Ljlz4/RJSLGJcCepRIbTVn+Iho958xYdXbwGb0a53IR0AWx/hSUiiunATH8rkm0s
KLs11hxYQLNrAl6YlS9xc8xVaOhoy14SimdiZvHDPdzFjVJDGFBV84EajNbYIgw8
+SnAFWVDyt3oTBsaJo0DoFsBiBUJiQNPQwM5E/YdczalYDIvKyz+YPCNDzGpzS9J
lhAc2AjyrCxEyqA5SzczCwwHzrb9C1/EKaHHEnU23+7W3mWxZu12fX4cWO8J/g8v
imMe+Fg0dkaZPdwBV85f
=UeIN
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: WAR file deployment question

2014-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

James,

On 9/19/14 4:50 PM, James H. H. Lampert wrote:
 Thanks, Messrs Janner and Schultz. I feared that was the case, but
 it never hurts to ask.
 
 The thing is, if I have it sitting someplace off-site, and Manager
 could snag it from there directly, then we'd only have to pass it
 through the insulin needle upload pipe of our cable internet when
 we were actually updating it. Instead of every time we deploy it.

How do you deploy? Using the manager app?

What about pushing it to a location without the bandwidth limitation,
and then deploying it from there instead of within your office?

(Off-topic: consider getting business-class Cable Internet. Speeds
tend to be a lot better. In my area, FiOS is symmetric and I'm getting
50mbps bi-directional pretty reliably.)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHJjDAAoJEBzwKT+lPKRYUjcP+wYknhBHnYfXzvVquKxvBlws
HDUaK7f3kBEGYNZMg3yF8B4zk5deofQuZQkUe7duygOKgo1ky9+mrX2l8ez3JX4k
D7B3NZUYGC+ruV5/R4OlKNR4OXTN2r1uE6MacxpYQi7zgxRTrKGcm8ba41KBuhan
IfQYnjqK+q9U0pPSh72X5NvUAB/1QeVVSH2W+8CW2XX8469jHFjrYBv6Xq2eKPG0
dBgyrq+dV34E4YzGn3HhVOUKg4vqeKjQiLVWxkOwWQgVY68i7TzVym5XcFEJ/HI0
L45vR4SEM1iu9NemlSdJs6zz2yfc7dDQR+jDtpSjuNvAeXByWuwuik+OyPMj9+2Y
/ytjHea7iUP5czkWVjID41AMBaY8HNeEKmftGMOzcn0FhKar57fa+Bk9seUFfgD0
M5uhrrCNSCxNqAaFlPz3mixheUeocGzHVO8V7bzRih+l1RHT0BRsgTp3xTgkMIfy
4u9QKr9ItNZhBy78nlhphu7EV1+MbbseZXVK4vQyGdhRSGP/vcVf6kCZDzOlRu4m
oJkeFCRUbaWw6vZ1tgtSIInjqDeZWooWrxtGyYs+tPOEON3mGOgIrCGdKl91cpAE
o9WzmYZb5MReL+IzgTzyL4QcnnTroQMJKR16sYqolVCpMniXp/dJrQFZpnH51yWo
id3P6n8YHRaFoR8CbumH
=js9H
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help!

2014-09-19 Thread Shrileckha Chaithanya
I see the cookies that i set explicity set in the program. But I dont see
the cookie I have set in the tomcat context file like this:


Context sessionCookieName=MKT2SESSIONID
/context

On Fri, Sep 19, 2014 at 4:40 PM, Shrileckha Chaithanya 
cshrilec...@gmail.com wrote:

 It worked but I am not able to get this cookie name via

 request.getCookies() call. Should I add anything in the tomcat context in
 order to get it from the request?

 Cookie[] cookies = req.getCookies();
 if(cookies != null){
 for (Cookie cookie : cookies) {
 log.info(cookie name :+cookie.getName()+cookie.value()
 :+cookie.getValue());

 }
 }

 Pls let me know.

 Thanks,
 Shrielckha Chaithanya

 On Fri, Sep 19, 2014 at 11:37 AM, Shrileckha Chaithanya 
 cshrilec...@gmail.com wrote:

 thanks! it worked.

 On Thu, Sep 18, 2014 at 5:19 PM, Mark Eggers 
 its_toas...@yahoo.com.invalid wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 9/18/2014 2:13 PM, Shrileckha Chaithanya wrote:
  Thx for responding. I did like look at this link. Can you provide
  with proper syntax to rename the cookie name?
 
  Sent from my iPhone
 
  On Sep 18, 2014, at 5:01 PM, Felix Schumacher
  felix.schumac...@internetallee.de wrote:
 
 
 
  On 18. September 2014 21:33:20 MESZ, Shrileckha Chaithanya
  cshrilec...@gmail.com wrote: Hi Tomcat team,
 
  I need to rename the JESSIONID cookie name to MKTSESSIONID.
 
  I updated the catalina.bat file  to use below.
 
  can you pls help?
 
  set JAVA_OPTS=%JAVA_OPTS%
  -Dorg.apache.catalina.JSESSIONID=MKT2SESSIONID
  That seems to be a jboss option. For tomcat 6 you can use
  org.apache.catalina.SESSION_COOKIE_NAME and for tomcat 7+ you can
  set it in the context. See
 
 http://tomcat.apache.org/migration-7.html#Session_manager_configuration.
 
 
 
 Regards
  Felix
 
  Thanks, Shrileckha Chaithanya

 For Tomcat 7:


 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

 For Tomcat 8:


 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes

 Look for sessionCookieName

 Setting an attribute on an XML node in general:

 Context sessionCookieName=FOO
 /Context

 . . . just my two cents
 /mde/

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.13 (MingW32)

 iQEcBAEBAgAGBQJUG0xFAAoJEEFGbsYNeTwt42wH/jTDrR2miK5lydLGi4ZGFNrk
 UluQQP6msjuhp9vIxvPU1zUkXxC5A96GldAygIRs1DijAju7igHQ0AoVv/GP/Kd4
 WpIY8OOzxgESxmrDuEexiQQ1WYUlsuH/2RuB1fIfDl8hQ4aJpNljfkp2Sb6TCp0T
 xBIO7+v2zM2JgOZqQMCV7PkbOABtAvVBg7T7DVxfLeCZmnhcbsoccugKL9HnQ7xz
 kAOv70FYXo4jABbF1GMONQWOQ2tp/bZO9Rx+THwGhEvyADHeIZgOZEZDESfptdZy
 bGzOWmINm4B13Vq6JpPLaFL8F5ssPXSwdUbwwhGRyHga8Awm0qTnQhAcEta7u0w=
 =UiDX
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org






Tomcat JVM Crash

2014-09-19 Thread Chad Maniccia
Enviroment


Windows 2008 R2

Tomcat 8.0.11

Java 1.8.0_20-b26

Sysco HTTPS Firewall (They have to authenticate through it first)

HTTPS only

Memory Pool=3072MB

Thread Stack Size=384



Problem


We recently moved to a new Windows server, I installed the exact same software 
on the new server as the old. The problem is that on the new server Tomcat has 
a JVM crash two to four times a week almost at the exact same time 11:30PM. 
This happens to be during the time we have our greatest number of active 
sessions but not the heaviest use. I have looked into localhost_access_log 
but the last logged requests don't seem to be the problem. I fear it's not 
being logged.


I have nothing to go on other than the error log which doesn't appear to show a 
cause other than the blocked threads. I have submitted the report to Oracle but 
they have failed to comment. Today I increased Tomcat logging to Fine and am 
monitoring the Threads using JConsole. Can anyone point out a tip or clue I may 
be missing in this report?


Thanks,

Chad



Error Log


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (sharedRuntime.cpp:833), pid=68716, tid=32568
#  fatal error: exception happened outside interpreter, nmethods and vtable 
stubs at pc 0x01613eb0
#
# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode 
windows-amd64 compressed oops)
# Core dump written. Default location: C:\Program Files\Apache Software 
Foundation\Tomcat 8.0\hs_err_pid68716.mdmp
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

---  T H R E A D  ---

Current thread (0x24456000):  JavaThread http-nio-443-exec-5 daemon 
[_thread_in_Java, id=32568, stack(0x2946,0x294c)]

Stack: [0x2946,0x294c]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x3152fa]
V  [jvm.dll+0x265d03]
V  [jvm.dll+0x266943]
V  [jvm.dll+0x25e1e6]
V  [jvm.dll+0x21247e]
V  [jvm.dll+0x283070]
V  [jvm.dll+0x315188]
C  [ntdll.dll+0x29d0d]
C  [ntdll.dll+0x191af]
C  [ntdll.dll+0x51278]
C  0x01613eb0


---  P R O C E S S  ---

Java Threads: ( = current thread )
  0x1ebca800 JavaThread http-apr-80-exec-10 daemon [_thread_blocked, 
id=69608, stack(0x2a4e,0x2a54)]
  0x1ebca000 JavaThread http-apr-80-exec-9 daemon [_thread_blocked, 
id=13816, stack(0x2a48,0x2a4e)]
  0x1ebc9000 JavaThread http-apr-80-exec-8 daemon [_thread_blocked, 
id=69592, stack(0x2a42,0x2a48)]
  0x1ebc8800 JavaThread http-apr-80-exec-7 daemon [_thread_blocked, 
id=65052, stack(0x2a3c,0x2a42)]
  0x1ebc7800 JavaThread http-apr-80-exec-6 daemon [_thread_blocked, 
id=54788, stack(0x29d6,0x29dc)]
  0x1ebc7000 JavaThread http-apr-80-exec-5 daemon [_thread_blocked, 
id=70816, stack(0x29d0,0x29d6)]
  0x2445e800 JavaThread http-apr-80-exec-4 daemon [_thread_blocked, 
id=15108, stack(0x2a26,0x2a2c)]
  0x2445d800 JavaThread http-apr-80-exec-3 daemon [_thread_blocked, 
id=59684, stack(0x2a20,0x2a26)]
  0x2445d000 JavaThread http-apr-80-exec-2 daemon [_thread_blocked, 
id=55740, stack(0x20ab,0x20b1)]
  0x2445b800 JavaThread http-apr-80-exec-1 daemon [_thread_blocked, 
id=59352, stack(0x20a5,0x20ab)]
  0x2445a800 JavaThread Abandoned connection cleanup thread daemon 
[_thread_blocked, id=68752, stack(0x298a,0x2990)]
  0x2445a000 JavaThread http-nio-443-exec-10 daemon [_thread_blocked, 
id=68020, stack(0x2964,0x296a)]
  0x24459000 JavaThread http-nio-443-exec-9 daemon [_thread_blocked, 
id=63660, stack(0x295e,0x2964)]
  0x24458800 JavaThread http-nio-443-exec-8 daemon [_thread_blocked, 
id=66844, stack(0x2958,0x295e)]
  0x24457800 JavaThread http-nio-443-exec-7 daemon [_thread_blocked, 
id=16468, stack(0x2952,0x2958)]
  0x24457000 JavaThread http-nio-443-exec-6 daemon [_thread_blocked, 
id=63612, stack(0x294c,0x2952)]
=0x24456000 JavaThread http-nio-443-exec-5 daemon [_thread_in_Java, 
id=32568, stack(0x2946,0x294c)]
  0x24455800 JavaThread http-nio-443-exec-4 daemon [_thread_blocked, 
id=61776, stack(0x2940,0x2946)]
  0x24454800 JavaThread http-nio-443-exec-3 daemon [_thread_blocked, 
id=55560, stack(0x2927,0x292d)]
  0x24454000 JavaThread http-nio-443-exec-1 daemon [_thread_blocked, 

Filter to change Content-Type of files without proper extensions.

2014-09-19 Thread John Polansky
System:
Tomcat 5.5.15 Java 1.5 Solaris/SPARC

Guys, new to the group, well new to tomcat completely I was hoping to get a
solution for our issue. We have a piece of software that is no longer
supported and I'm trying to fix an issue. The issue that when this software
generates .PNG files it labels them image1. without an extension. The
problem we are having is I think there is some sort of safeguard in Tomcat
that sets all extension-less files to be text/html content-type. This is
a problem for us and I was trying to use a java tomcat filter to fix this.
I've successfully built the filter here is the cut down version.

public class ImageExtFix implements Filter {

public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain) throws IOException, ServletException {

HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
response.addHeader(JunkHeader, WOOT);
response.addHeader(Content-Type, image/png);

chain.doFilter(req, res);
}

The filter is working perfectly I can tell this because I can see my
JunkHeader showing up on the files. However I have tried addHeader and
setHeader but no matter what the Content-Type is still be forced to
index.html

I did some testing and I found that if I rename the image1. file to
image1.tx which is an extension that tomcat doesn't have a MIME type for,
then my Filter correctly modifies this file and it gets set to image/png

So at this point I think that there must be some sort of safe guard build
into tomcat to prevent you from changing the content type of files with
extensions tomcat recognizes, perhaps to prevent malicious code.

Can anyone suggest an alternative to this, I've been scouring the web
without much luck. I'd appreciate any suggestions keep in mind I'm pretty
new tomcat/java as well so please give me keywords I can Google I would
appreciate it.

Thanks!

John