Re: Tomcat on Ubuntu

2011-08-25 Thread Peter Miklosko
From Ubuntu 10.04 documentation on Tomcat 6 it doesn't look like default
location https://help.ubuntu.com/10.04/serverguide/C/tomcat.html

On 24 August 2011 21:18, Christopher Schultz
ch...@christopherschultz.netwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 János,

 On 8/24/2011 4:02 PM, János Löbb wrote:
  Newbie question:  Is still /usr/local/tomcat is the default
  location for installation on Ubuntu 10.04 ?  Recently I saw it in
  an nfs directory mounted by autofs from another server and I am
  wondering...

 Sounds like a question for the Ubuntu folks.

 Apache has no control over where package managers install their packages.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk5VXIgACgkQ9CaO5/Lv0PCf+wCfXPieGWGAAqpv5cqB1/qZZHwy
 rsAAnjHslpGkUU2xc13jjcv+VUyF0e2Q
 =P2M8
 -END PGP SIGNATURE-

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




RE: Ajp13Processor threads are not getting closed.

2011-08-25 Thread Jagadish Raj R
Hi,

Apache not accepting JkWatchDogInterval parameter (think it's version problem). 
How is this problem fixed in higher Tomcat versions. Can I do the same in lower 
version of Tomcat.

(As of now, I don't have a choice of upgrading Tomcat as this requires upgrade 
of TIBCO Administrator which is built on top of Tomcat)


Thanks  Regards, 
JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, 
Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| 
Email: jagadish_ra...@symantec.com


-Original Message-
From: Edward Quick [mailto:edward.qu...@iggroup.com] 
Sent: Wednesday, August 24, 2011 3:20 PM
To: Tomcat Users List
Subject: RE: Ajp13Processor threads are not getting closed.

You could try adding JkWatchDogInterval 30. That did the trick for me.

-Original Message-
From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com]
Sent: 24 August 2011 10:39
To: Tomcat Users List
Subject: Ajp13Processor threads are not getting closed.

Hi Tomcat Users,

I have a Tomcat server to which another apache webserver connects using AJP 1.3 
Connector. I have set up a maxProcessors=75 in connector settings. Whenever a 
user creates a connection an Ajp13Processor connection thread is created. My 
problem is this thread does not get terminated even after the user close the 
session. Please help me in finding some configuration changes that will allow 
me to close these sessions/threads after a certain timeout value.

I am pasting below the configurations I am using.

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector 
port=8089 minProcessors=5 maxProcessors=75 acceptCount=10 
connectionTimeout=6 debug=0/

Workers.properties file:-

worker.list=ajp13
worker.ajp13.port=
worker.ajp13.host=hostname
worker.ajp13.type=ajp13
worker.ajp13.connection_pool_size=75
worker.ajp13.connection_pool_minsize=15
worker.ajp13.connection_pool_timeout=60


Logs from thread dump of tomcat process:-

Ajp13Processor[][7] daemon prio=10 tid=0x0166c038 nid=0xe0 in 
Object.wait() [0xa64ff000..0xa64ffa28]
at java.lang.Object.wait(Native Method)
- waiting on 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor)
at java.lang.Object.wait(Object.java:474)
at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316)
- locked 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
at java.lang.Thread.run(Thread.java:595)


Versions:-

Tomcat - 4.1.27
Mod JK -  mod_jk-apache-2.0.49-linux-i686.so




Thanks  Regards,
JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, 
Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| 
Email: jagadish_ra...@symantec.commailto:jagadish_ra...@symantec.com


The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Group Holdings plc is a company registered in England and Wales under 
number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon 
Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.

-
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



Cannot build mod_jk.1.2.32

2011-08-25 Thread Casper Wandahl Schmidt

Hi there

So I downloaded the mod_jk.1.2.32-src the other day because I couldn't 
get a binary for linux (ubuntu 8.04 to be exact). First I couldn't use 
the ./configure because it said no apxs given so I searched google and 
found out I needed apache2-threaded-dev - downloaded it and used 
--with-apxs2=/usr/sbin/apxs2. It then complained about no apache given 
and returned with the error: cannot find the WebServer (apache2.2 is 
installed from package with apt-get install apache2). I had to do 
apt-get install apache2-src, locate the tar.gz, unpack it and add the 
--with-apache=/usr/src/apache2 switch with the with-apxs2. I then 
managed to run the configure successful but when I try to do sudo make a 
whole bunch of warnings and errors occurs (mostly something like 
expected character } at end of input line) which means that I cannot 
build the mod_jk.so file :(


I should add that this is my first go on building something from source 
EVER so please be gentle :)


Am I missing something or what?

Kind regards
Casper

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



RE: Ajp13Processor threads are not getting closed.

2011-08-25 Thread Edward Quick
mod_jk is not Tomcat so I'm not sure you need to worry about running an older 
version of tomcat as long as it's listening on the AJP connector.


-Original Message-
From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] 
Sent: 25 August 2011 10:08
To: Tomcat Users List
Subject: RE: Ajp13Processor threads are not getting closed.

Hi,

Apache not accepting JkWatchDogInterval parameter (think it's version problem). 
How is this problem fixed in higher Tomcat versions. Can I do the same in lower 
version of Tomcat.

(As of now, I don't have a choice of upgrading Tomcat as this requires upgrade 
of TIBCO Administrator which is built on top of Tomcat)


Thanks  Regards, 
JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, 
Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| 
Email: jagadish_ra...@symantec.com


-Original Message-
From: Edward Quick [mailto:edward.qu...@iggroup.com] 
Sent: Wednesday, August 24, 2011 3:20 PM
To: Tomcat Users List
Subject: RE: Ajp13Processor threads are not getting closed.

You could try adding JkWatchDogInterval 30. That did the trick for me.

-Original Message-
From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com]
Sent: 24 August 2011 10:39
To: Tomcat Users List
Subject: Ajp13Processor threads are not getting closed.

Hi Tomcat Users,

I have a Tomcat server to which another apache webserver connects using AJP 1.3 
Connector. I have set up a maxProcessors=75 in connector settings. Whenever a 
user creates a connection an Ajp13Processor connection thread is created. My 
problem is this thread does not get terminated even after the user close the 
session. Please help me in finding some configuration changes that will allow 
me to close these sessions/threads after a certain timeout value.

I am pasting below the configurations I am using.

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector 
port=8089 minProcessors=5 maxProcessors=75 acceptCount=10 
connectionTimeout=6 debug=0/

Workers.properties file:-

worker.list=ajp13
worker.ajp13.port=
worker.ajp13.host=hostname
worker.ajp13.type=ajp13
worker.ajp13.connection_pool_size=75
worker.ajp13.connection_pool_minsize=15
worker.ajp13.connection_pool_timeout=60


Logs from thread dump of tomcat process:-

Ajp13Processor[][7] daemon prio=10 tid=0x0166c038 nid=0xe0 in 
Object.wait() [0xa64ff000..0xa64ffa28]
at java.lang.Object.wait(Native Method)
- waiting on 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor)
at java.lang.Object.wait(Object.java:474)
at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316)
- locked 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
at java.lang.Thread.run(Thread.java:595)


Versions:-

Tomcat - 4.1.27
Mod JK -  mod_jk-apache-2.0.49-linux-i686.so




Thanks  Regards,
JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, 
Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| 
Email: jagadish_ra...@symantec.commailto:jagadish_ra...@symantec.com


The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Group Holdings plc is a company registered in England and Wales under 
number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon 
Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.

-
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


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



Re: Ajp13Processor threads are not getting closed.

2011-08-25 Thread André Warnier

To the original poster Jagadish Raj :

Maybe let's restart from the beginning.

First, re-read this page of the online documentation for the mod_jk connector :
http://tomcat.apache.org/connectors-doc/reference/workers.html
Particularly, next to the connection_pool* parameters, the items in red.

Considering that, what is the MPM used on your Apache httpd server ?
(you can see this by running /usr/sbin/apache2 -l or httpd -l; list the 
result here).
(This is to find out if your httpd server is running in prefork mode or one of the 
multi-threading modes.)


Then, what are the httpd settings for KeepAlive ?
(KeepAlive and KeepAliveTimeout). This is usually in /etc/apache2/apache2.conf.


Edward Quick wrote:

mod_jk is not Tomcat so I'm not sure you need to worry about running an older 
version of tomcat as long as it's listening on the AJP connector.


-Original Message-
From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] 
Sent: 25 August 2011 10:08

To: Tomcat Users List
Subject: RE: Ajp13Processor threads are not getting closed.

Hi,

Apache not accepting JkWatchDogInterval parameter (think it's version problem). 
How is this problem fixed in higher Tomcat versions. Can I do the same in lower 
version of Tomcat.

(As of now, I don't have a choice of upgrading Tomcat as this requires upgrade 
of TIBCO Administrator which is built on top of Tomcat)


Thanks  Regards, 
JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.com



-Original Message-
From: Edward Quick [mailto:edward.qu...@iggroup.com] 
Sent: Wednesday, August 24, 2011 3:20 PM

To: Tomcat Users List
Subject: RE: Ajp13Processor threads are not getting closed.

You could try adding JkWatchDogInterval 30. That did the trick for me.

-Original Message-
From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com]
Sent: 24 August 2011 10:39
To: Tomcat Users List
Subject: Ajp13Processor threads are not getting closed.

Hi Tomcat Users,

I have a Tomcat server to which another apache webserver connects using AJP 1.3 
Connector. I have set up a maxProcessors=75 in connector settings. Whenever a 
user creates a connection an Ajp13Processor connection thread is created. My problem is 
this thread does not get terminated even after the user close the session. Please help me 
in finding some configuration changes that will allow me to close these sessions/threads 
after a certain timeout value.

I am pasting below the configurations I am using.

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8089 minProcessors=5 
maxProcessors=75 acceptCount=10 connectionTimeout=6 debug=0/

Workers.properties file:-

worker.list=ajp13
worker.ajp13.port=
worker.ajp13.host=hostname
worker.ajp13.type=ajp13
worker.ajp13.connection_pool_size=75
worker.ajp13.connection_pool_minsize=15
worker.ajp13.connection_pool_timeout=60


Logs from thread dump of tomcat process:-

Ajp13Processor[][7] daemon prio=10 tid=0x0166c038 nid=0xe0 in 
Object.wait() [0xa64ff000..0xa64ffa28]
at java.lang.Object.wait(Native Method)
- waiting on 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor)
at java.lang.Object.wait(Object.java:474)
at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316)
- locked 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
at java.lang.Thread.run(Thread.java:595)


Versions:-

Tomcat - 4.1.27
Mod JK -  mod_jk-apache-2.0.49-linux-i686.so




Thanks  Regards,
JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 
7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: 
jagadish_ra...@symantec.commailto:jagadish_ra...@symantec.com


The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Group Holdings plc is a company registered in England and Wales under 
number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon 
Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.

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

RE: TC on Windows Server Core

2011-08-25 Thread Jeffrey Janner
 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com]
 Sent: Wednesday, August 24, 2011 4:02 PM
 To: Tomcat Users List
 Subject: Re: TC on Windows Server Core
 
 David kerber wrote:
  Will TC run on a Windows Server Core installation?  For those of you
 not
  familiar with that term, it's a windows server installation with no
 GUI,
  and minimal other pieces.  The idea is a reduced disk, memory and cpu
  footprint (rather Unix/Linux like).
 
 One might be forgiven if one were to wonder why one would then not use
 a perfectly
 serviceable minimal Linux base then, no ?
 Once you take away the GUI, what is left that is so compelling about
 Windows Server ?
 
 And just by curiosity, what would be this resulting footprint then, as
 compared to a
 normal Windows Server ? (a link to some unbiased info would satisfy my
 curiosity too; what
 I could find about it on MSDN is not very explicit).

I couldn't say exactly what the difference would be, but I would think there'd 
be a significant reduction in disk requirements, and certainly in memory used.  
You don't have any of that GUI software even on the disk to try to run it, only 
the binaries required for the roles you define for the server.  Might have some 
issues installing 3rd party software -- have to do everything in silent mode 
with setup scripts. 
As far as saving CPU cycles, how many does it really use keeping a login prompt 
up on the screen 24/7?
Downside from a tomcat perspective that I can see, you miss out on the 
wonderful configuration GUI from the Commons Daemon guys.  I've really grown to 
like that tool on my Windows platforms.

Overall, I can't see any reason Tomcat wouldn't run on it, but it might be 
extra work getting it installed and set up.  But probably not much more than on 
Linux/Unix.
__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


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



RE: jvmRoute generation

2011-08-25 Thread Jeffrey Janner
Say, anybody know a good reference book/website on Tomcat clustering and/or 
load-balancing that goes into all these possible permutations Mark is talking 
about?
I always thought a really good tutorial would be helpful on this top.  Alas, I 
haven't played with it enough yet to write one.

 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: Wednesday, August 24, 2011 10:15 AM
 To: Tomcat Users List
 Subject: Re: jvmRoute generation
 
 On 24/08/2011 15:07, Christopher Schultz wrote:
  Jeffrey,
 
  On 8/24/2011 9:59 AM, Jeffrey Janner wrote:
  As Chris pointed out, it is mostly used by folks running with
  sticky-sessions
 
  Actually, use of the jvmRoute with non-sticky sessions seems like
  an unnecessary step to me, since non-sticky sessions implies that
  you either have no sessions (and it doesn't matter at all) or you
  have replicated sessions where it doesn't matter which cluster
  member you reach.
 
  but from what I've been able to tell, most folks set up their
  clusters that way. It lessens the headaches.
 
  Practically speaking, clustering Tomcat instances means session
  replication, which (if you ask me) does not warrant session
  stickiness (though session replication does take some time... I
  don't know enough about TC's clustering to know whether race
  conditions are possible or probable).
 
 If you use the Backup Manager you must use sticky sessions.
 
 If you use the delta manager with asynchronous replication or if a
 client may make concurrent requests then you must use sticky sessions.
 
 If you use the delta manager with synchronous replication and you are
 sure you will not have concurrent requests from the same client then
 you don't have to use sticky sessions.
 
  For my money, I'd go for sticky sessions and no replication at all.
  If you really need cluster-wide session access, look to other
  solutions (memcached, db-backed sessions, etc.).
 
 If stateless isn't an option, I'd go for a correctly configured backup
 manager.
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


Re: Tomcat on Ubuntu

2011-08-25 Thread János Löbb
Peter,
Thanks a lot.  
János
On Aug 25, 2011, at 3:56 AM, Peter Miklosko wrote:

 From Ubuntu 10.04 documentation on Tomcat 6 it doesn't look like default
 location https://help.ubuntu.com/10.04/serverguide/C/tomcat.html
 
 On 24 August 2011 21:18, Christopher Schultz
 ch...@christopherschultz.netwrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 János,
 
 On 8/24/2011 4:02 PM, János Löbb wrote:
 Newbie question:  Is still /usr/local/tomcat is the default
 location for installation on Ubuntu 10.04 ?  Recently I saw it in
 an nfs directory mounted by autofs from another server and I am
 wondering...
 
 Sounds like a question for the Ubuntu folks.
 
 Apache has no control over where package managers install their packages.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk5VXIgACgkQ9CaO5/Lv0PCf+wCfXPieGWGAAqpv5cqB1/qZZHwy
 rsAAnjHslpGkUU2xc13jjcv+VUyF0e2Q
 =P2M8
 -END PGP SIGNATURE-
 
 -
 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: jvmRoute generation

2011-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeffrey,

On 8/25/2011 10:05 AM, Jeffrey Janner wrote:
 Say, anybody know a good reference book/website on Tomcat
 clustering and/or load-balancing that goes into all these possible
 permutations Mark is talking about?
 
 I always thought a really good tutorial would be helpful on this
 top. Alas, I haven't played with it enough yet to write one.

Jason and Ian's Tomcat: The Definitive Guide (O'Reilly) is an oldie
but a goodie. Some configuration and features may have changed slightly
since 2007 when the Second Edition was published, but the basic concepts
are as valid today as they were then.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5WajIACgkQ9CaO5/Lv0PB3XgCeKdb546HY2dFmTGqQ2CiqH/p0
DUYAn3ZbxVPIEFj3JojuuhIvfSo0I7J/
=hI9S
-END PGP SIGNATURE-

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



Re: Apache Tomcat unable to send the request. tomcat throwing 502 Gate Way error

2011-08-25 Thread Konstantin Kolinko
2011/8/12 rakesh k rakroc...@gmail.com:
 I am using Apache tomcat 6.0.18 version

Can you upgrade? There is 3 years worth of fixes between 6.0.18 and 6.0.33.

What version of Apache HTTPD is in front of Tomcat? How it is configured?
Do you use mod_jk? What version?

Best regards,
Konstantin Kolinko

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



Tomcat Manager Application

2011-08-25 Thread Martin Dubuc
I am trying to run the Tomcat Manager application in Tomcat 7 (7.0.18). I
can't get this to work. If I go to /manager/index.jsp on my web server, the
web server redirects me to /manager/html and returns a 404 error. Looking
inside the manager directory under webapps, there is no html directory. Is
the manager application broken?

Martin


Re: Cannot build mod_jk.1.2.32

2011-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Casper,

On 8/25/2011 5:18 AM, Casper Wandahl Schmidt wrote:
 So I downloaded the mod_jk.1.2.32-src the other day because I
 couldn't get a binary for linux (ubuntu 8.04 to be exact).

As you've found, you need apache2-threaded-dev package.

I'm surprised that you needed the apache2-src package, though.
apache2-threaded-dev should really be all you need.

 I then managed to run the configure successful but when I try to do
 sudo make a whole bunch of warnings and errors occurs (mostly
 something like expected character } at end of input line) which
 means that I cannot build the mod_jk.so file :(

You shouldn't run 'make' as root when just compiling. Maybe for
installation, but not for just building. I don't ever use 'make
install' unless the procedure is just impossible to understand.

Can you paste some of the error messages into your next reply? That
would be helpful, especially if you post the very top of the output --
since C compilers like to get tripped up on one little thing and then
tell you that the entire source file is syntactically incorrect. :)

 I should add that this is my first go on building something from
 source EVER so please be gentle :)

Thanks for not first complaining that no binary package exists, Apache
should get off their butts, etc. Glad to see that someone has the
courage to build mod_jk. It shouldn't be that hard to build it from
source. I'm sorry you are having such trouble.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5WblQACgkQ9CaO5/Lv0PAh7gCdH93YuLwHT6bbE7QB3gqWL3gc
Ev4AnjzWPs/2Ieaw2xhBWfdQHXmLQ+44
=0Dtc
-END PGP SIGNATURE-

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



Re: Tomcat Manager Application

2011-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

On 8/25/2011 11:44 AM, Martin Dubuc wrote:
 I am trying to run the Tomcat Manager application in Tomcat 7 
 (7.0.18). I can't get this to work. If I go to /manager/index.jsp
 on my web server, the web server redirects me to /manager/html

That is correct behavior.

 and returns a 404 error.

That is not correct behavior.

 Looking inside the manager directory under webapps, there is no
 html directory. Is the manager application broken?

Look at the servlet mappings.

Are you fronting Tomcat with httpd? If so, you'll have to make sure you
map more than just *.jsp.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5WbssACgkQ9CaO5/Lv0PDPbQCeLkwg+TOJoNJpe+QEFPeN4JwD
oQAAn2UstXeLqrLPaaU/9UATQ5h2djIU
=vfl5
-END PGP SIGNATURE-

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



Re: Apache Tomcat unable to send the request. tomcat throwing 502 Gate Way error

2011-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rakesh,

On 8/16/2011 3:08 AM, rakesh k wrote:
 Connector executor=tomcatThreadPool port=8082
 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443
 /

Still not an AJP connector.

Something tells me that your configuration is completely insane.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5Wcv8ACgkQ9CaO5/Lv0PCDLACdHdT6nVOla/dy1w6OoXbSYAii
0gkAoLdNBfVn8bUVhGDbCh3fQb4g8275
=hEvv
-END PGP SIGNATURE-

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



SSL issue

2011-08-25 Thread Savitha Akella
Hi,

We have enabled SSL for the web services hosted on Tomcat. As part of the
configuration changes we have modified the server.xml to make changes to the
connector element.
We have given the trustStorePass value to point to a keystore which has
only the certificate for our web services. Ofcourse the clientAuth parameter
is set to true.
The problem we are facing is even though the client is prompted for the
certificate, the client is authenticated with any certificate instead of
authenticating with the intended one.
Any help is highly appreciated.

Thanks,
Savitha


RE: jvmRoute generation

2011-08-25 Thread Jeffrey Janner
 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: Thursday, August 25, 2011 10:29 AM
 To: Tomcat Users List
 Subject: Re: jvmRoute generation
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Jeffrey,
 
 On 8/25/2011 10:05 AM, Jeffrey Janner wrote:
  Say, anybody know a good reference book/website on Tomcat
  clustering and/or load-balancing that goes into all these possible
  permutations Mark is talking about?
 
  I always thought a really good tutorial would be helpful on this
  top. Alas, I haven't played with it enough yet to write one.
 
 Jason and Ian's Tomcat: The Definitive Guide (O'Reilly) is an oldie
 but a goodie. Some configuration and features may have changed slightly
 since 2007 when the Second Edition was published, but the basic
 concepts
 are as valid today as they were then.
 

Happen to have that one handy, but haven't looked at it in a while.
I've been partial to the WROX set of books on Tomcat, though I've noticed those 
guys got a little lazy on insuring accuracy with the latest addition. It's 
mostly in the configuration stuff. They still mention some deprecated features, 
such as including Context in server.xml, without mentioning that they are 
deprecated.
I've been relying on the Tomcat Docs website when I want accurate config info 
lately.  But a good overall review of concepts is usually found in something 
like these books.  Thanks for reminding me about the O'Reilly reference.
__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


Re: Tomcat Manager Application

2011-08-25 Thread Martin Dubuc
Thanks Christopher. The web.xml file was not present in the manager/WEB-INF
directory. This is why I couldn't get the manager app to work.

Martin

On Thu, Aug 25, 2011 at 11:48 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Martin,

 On 8/25/2011 11:44 AM, Martin Dubuc wrote:
  I am trying to run the Tomcat Manager application in Tomcat 7
  (7.0.18). I can't get this to work. If I go to /manager/index.jsp
  on my web server, the web server redirects me to /manager/html

 That is correct behavior.

  and returns a 404 error.

 That is not correct behavior.

  Looking inside the manager directory under webapps, there is no
  html directory. Is the manager application broken?

 Look at the servlet mappings.

 Are you fronting Tomcat with httpd? If so, you'll have to make sure you
 map more than just *.jsp.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk5WbssACgkQ9CaO5/Lv0PDPbQCeLkwg+TOJoNJpe+QEFPeN4JwD
 oQAAn2UstXeLqrLPaaU/9UATQ5h2djIU
 =vfl5
 -END PGP SIGNATURE-

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




Re: SSL issue

2011-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Savitha,

On 8/25/2011 12:53 PM, Savitha Akella wrote:
 We have given the trustStorePass value to point to a keystore
 which has only the certificate for our web services.

Do you mean truststoreFile?

 Of course the clientAuth parameter is set to true.

Good.

Can you post your Connector configuration for us? Remember to remove
any passwords from it.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5WmHMACgkQ9CaO5/Lv0PA2XQCgpY+rTQ2nxtRKbwC1ZDV4CRac
gKgAnjldGl78sHuhDF/AFWsUD+grHfIc
=Z82E
-END PGP SIGNATURE-

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



Re: TC on Windows Server Core

2011-08-25 Thread Stefan Mayr

Am 24.08.2011 23:01, schrieb André Warnier:

David kerber wrote:

Will TC run on a Windows Server Core installation? For those of you
not familiar with that term, it's a windows server installation with
no GUI, and minimal other pieces. The idea is a reduced disk, memory
and cpu footprint (rather Unix/Linux like).


One might be forgiven if one were to wonder why one would then not use a
perfectly serviceable minimal Linux base then, no ?
Once you take away the GUI, what is left that is so compelling about
Windows Server ?


I would say the very same reasons apply
- reduced ressource utilization
- less vulnerable
- best tool for the job (if windows is your everyday OS)

Not your favourite OS? s/windows/os_your_favorite_os/g. If you can 
afford it there is an unlimited freedom of choice - but I guess this is 
not the right list for os flame wars.


Back to your question. I recommend to read 
http://blogs.technet.com/b/jorke/archive/2008/09/17/cat-power-tomcat-on-server-2008-core-with-iis7.aspx 
. It is a bit dated but lists an ugly pitfall: MSVCR71.dll is required 
but not included. (don't know if this still applies)


Also many 3rd party libraries use awt for some internal purpose and 
expect a display (even on linux). So use java.awt.headless=true.


Stefan

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



Re: TC on Windows Server Core

2011-08-25 Thread Stefan Mayr

Am 25.08.2011 22:55, schrieb Stefan Mayr:

...
Back to your question. I recommend to read
http://blogs.technet.com/b/jorke/archive/2008/09/17/cat-power-tomcat-on-server-2008-core-with-iis7.aspx
. It is a bit dated but lists an ugly pitfall: MSVCR71.dll is required
but not included. (don't know if this still applies)


I've found the explaination for this behaviour in Oracles bug database: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6509291


It is marked as won't fix. So you still need to copy the dll

Stefan

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



RE: TC on Windows Server Core

2011-08-25 Thread Jeffrey Janner
 -Original Message-
 From: Stefan Mayr [mailto:ste...@mayr-stefan.de]
 Sent: Thursday, August 25, 2011 3:55 PM
 To: users@tomcat.apache.org
 Subject: Re: TC on Windows Server Core
 
 Am 24.08.2011 23:01, schrieb André Warnier:
  David kerber wrote:
  Will TC run on a Windows Server Core installation? For those of you
  not familiar with that term, it's a windows server installation with
  no GUI, and minimal other pieces. The idea is a reduced disk, memory
  and cpu footprint (rather Unix/Linux like).
 
  One might be forgiven if one were to wonder why one would then not
 use a
  perfectly serviceable minimal Linux base then, no ?
  Once you take away the GUI, what is left that is so compelling about
  Windows Server ?
 
 I would say the very same reasons apply
 - reduced ressource utilization
 - less vulnerable
 - best tool for the job (if windows is your everyday OS)
 
 Not your favourite OS? s/windows/os_your_favorite_os/g. If you can
 afford it there is an unlimited freedom of choice - but I guess this is
 not the right list for os flame wars.
 
 Back to your question. I recommend to read
 http://blogs.technet.com/b/jorke/archive/2008/09/17/cat-power-tomcat-
 on-server-2008-core-with-iis7.aspx
 . It is a bit dated but lists an ugly pitfall: MSVCR71.dll is required
 but not included. (don't know if this still applies)

I like how he starts off the article saying he wants to set up a minimal 
footprint web server and then the first thing he does is install IIS on the 
thing. He could have set up Tomcat standalone and had a much smaller footprint.
On the + side, it did give him a chance how to set up the JK in that 
environment.
__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


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



Re: TC on Windows Server Core

2011-08-25 Thread André Warnier

Stefan Mayr wrote:

Am 24.08.2011 23:01, schrieb André Warnier:

David kerber wrote:

Will TC run on a Windows Server Core installation? For those of you
not familiar with that term, it's a windows server installation with
no GUI, and minimal other pieces. The idea is a reduced disk, memory
and cpu footprint (rather Unix/Linux like).


One might be forgiven if one were to wonder why one would then not use a
perfectly serviceable minimal Linux base then, no ?
Once you take away the GUI, what is left that is so compelling about
Windows Server ?


I would say the very same reasons apply
- reduced ressource utilization
- less vulnerable
- best tool for the job (if windows is your everyday OS)

Not your favourite OS? s/windows/os_your_favorite_os/g. If you can 
afford it there is an unlimited freedom of choice - but I guess this is 
not the right list for os flame wars.


Back to your question. I recommend to read 
http://blogs.technet.com/b/jorke/archive/2008/09/17/cat-power-tomcat-on-server-2008-core-with-iis7.aspx 
. It is a bit dated but lists an ugly pitfall: MSVCR71.dll is required 
but not included. (don't know if this still applies)


Also many 3rd party libraries use awt for some internal purpose and 
expect a display (even on linux). So use java.awt.headless=true.




Just in case, my question was not purely academical, and not trying to start a 
flame.
We build small systems for specialised applications, running on disk-less, fan-less boxes 
similar to the one here : http://www.hacom.net/catalog/legacy-products/lex-neo

(don't know the supplier, but that's the box).
These things are economical, ecological (low-power, low-noise), very reliable (no moving 
parts), boot and do everything from an SSD device etc.. (*)

But they have a limited amount of RAM.
So far, we use a basic Linux install, on top of which we run whatever else we 
need.
But some customers are Windows-centric, so I was wondering if this W2008 Server Core would 
be a solution in some cases.  My experience with Windows so far tells me that with less 
than 2 GB, one can't run Vista or Windows 7 with any level of performance, so that's why I 
am curious about what is really meant here by reduced memory and CPU footprint.

But I don't seem to find any specifics anywhere.
I think memory is really relevant when one talks about Java (and Tomcat).



(*) the only problem is : they are small, noiseless, they do not fit in a standard rack, 
they have no blinking lights etc.. so people tend to set them up on a windowsill and 
forget about what they do.


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



Error starting Tomcat

2011-08-25 Thread Pratibha S
Hi,

I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the
error below. I checked forums and found that I need to remove servlet.api
from CLASSPATH. I removed the entry in the Libraries and also tried
removing the file from tomcat/lib. Now, Eclipse is not recognizing
javax.servlet.annotation and some other servlet classes. Please help.



Aug 25, 2011 6:00:34 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Aug 25, 2011 6:00:34 PM org.apache.tomcat.util.digester.SetPropertiesRule
begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:RecommendationApp' did not
find a matching property.
Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-bio-8080]
Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [ajp-bio-8009]
Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1634 ms
Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.20
Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
... 9 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
... 11 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
... 14 more
Caused by: java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
... 17 more
Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start
INFO: 

Re: Error starting Tomcat

2011-08-25 Thread Konstantin Kolinko
2011/8/26 Pratibha S psund...@gmail.com:
 Hi,

 I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the
 error below. I checked forums and found that I need to remove servlet.api
 from CLASSPATH. I removed the entry in the Libraries and also tried
 removing the file from tomcat/lib. Now, Eclipse is not recognizing
 javax.servlet.annotation and some other servlet classes. Please help.

No. You have to remove it from WEB-INF/lib only.

Put it back in all other places.

 Caused by: java.lang.NoSuchMethodError:
 javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;
 at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308)
 


Best regards,
Konstantin Kolinko

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



Re: Error starting Tomcat

2011-08-25 Thread Pratibha S
Hi Konstantin Kolinko,

thank you for the reply.
Did you mean tomcat/webapps/examples/WEB-INF/lib?

There is no servlet-api.jar there. Please correct me if I got it wrong.

Regards,
Pratibha

On Thu, Aug 25, 2011 at 6:38 PM, Konstantin Kolinko
knst.koli...@gmail.comwrote:

 2011/8/26 Pratibha S psund...@gmail.com:
  Hi,
 
  I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting
 the
  error below. I checked forums and found that I need to remove servlet.api
  from CLASSPATH. I removed the entry in the Libraries and also tried
  removing the file from tomcat/lib. Now, Eclipse is not recognizing
  javax.servlet.annotation and some other servlet classes. Please help.

 No. You have to remove it from WEB-INF/lib only.

 Put it back in all other places.

  Caused by: java.lang.NoSuchMethodError:
 
 javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;
  at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308)
  


 Best regards,
 Konstantin Kolinko

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




Re: SSL issue

2011-08-25 Thread Savitha Akella
here is the connector configuration:

  Connector protocol=org.apache.coyote.http11.Http11Protocol
clientAuth=true port=443 SSLEnabled=true maxThreads=150
scheme=https secure=true keyAlias=keyalias
keystoreFile=d:/users/apache-tomcat-7.0.11/keystore/key.keystore
keyPass=changeit
truststoreFile=D:/users/apache-tomcat-7.0.11/keystore/trust.keystore
truststorePass=changeit SSLVerifyClient=require SSLEngine=on
SSLVerifyDepth=4 sslProtocol=TLS /

Regards,
Savitha
On Thu, Aug 25, 2011 at 11:46 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Savitha,

 On 8/25/2011 12:53 PM, Savitha Akella wrote:
  We have given the trustStorePass value to point to a keystore
  which has only the certificate for our web services.

 Do you mean truststoreFile?

  Of course the clientAuth parameter is set to true.

 Good.

 Can you post your Connector configuration for us? Remember to remove
 any passwords from it.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk5WmHMACgkQ9CaO5/Lv0PA2XQCgpY+rTQ2nxtRKbwC1ZDV4CRac
 gKgAnjldGl78sHuhDF/AFWsUD+grHfIc
 =Z82E
 -END PGP SIGNATURE-

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




Re: Conditional Branch from Servlet to URL - Continued

2011-08-25 Thread Donald Jolley
Chris et al, thanks ever so much for all the great help.  I finally got
things working.  This has been quite an educational experience for me.  I am
appending to this message my complete *WORKING* servlet.

Having gotten this far, my next question is this:  Is there any way that I
can get this to work within the context of a jsp?  Say for example that I
call a method from within a JSP and that method could through an exception.
I have a catch block to handle the exception.  What I'd like to do is to
jump (on the occurrence of an exception) from the jsp that has the
method-throwing exception to a different error-handling jsp.  Is there a way
that I can do that?

Again, thanks to all.

 ... doug

/* WORKING SERVLET */

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Test2 extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
  response.setContentType(text/html);
  PrintWriter out = response.getWriter();
  out.println(html);
  out.println(headtitleTest 2/title/head);
  out.println(body);
  out.println(pHello, world!/p);
  if (request.getParameter(jump) != null )
   {

request.getRequestDispatcher(request.getParameter(jump)).forward(request,
response);
   }
  out.println(/body);
  out.println(/html);
  }
}


manager / deploy context file

2011-08-25 Thread Johannes Ernst
I'd like to do this in Tomcat 6:
curl 
http://localhost:8080/manager/deploy?config=file:/tmp/mycontext.xml --basic -u 
user:pass

It complains:
FAIL - Invalid context path null was specified

This works:
curl 
http://localhost:8080/manager/deploy?config=file:/tmp/mycontext.xml\path=/foo 
--basic -u user:pass

However, the Tomcat6 docs seem to say the first approach should work in section 
Deploy using a Context configuration .xml file here:
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html

Is there some other setting that I might be missing? /tmp/mycontext.xml does 
contain a path setting. I'd hate having to write some code to parse out the 
path setting from the context file and then add it to the URL ...

Is there some way I can debug this?

Thanks!!



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