reload no use?

2007-08-11 Thread John Pedersen
Hi,

When I reload an app for the third time, Tomcat hangs, and I have to stop
and start it - which is slow as the CPU is being used at close to 100%.

This has been the case with Tomcat 5 and 6, Windows 2000, XP and Vista.

I have to remember to stop/start Tomcat after the second reload. Is there a
better way?

Thanks,

John


Re: MOD_JK TEST

2007-08-11 Thread Martin Gainty

in $APACHE_HOME\conf\httpd.conf notice the configuration for mod_jk

# Loads the Jakarta Tomcat Connector module
LoadModule jk_module modules/mod_jk.dll

#Configuration Attributes for mod_jk
JkWorkersFile C:/TOMCAT/TOMCAT~1.5/conf/workers.properties

referencing C:/TOMCAT/TOMCAT~1.5/conf/workers.properties
depending on the ajp list for worker
worker.list=ajp12, ajp13

# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009

so if you go to CLI and type
netstat -a | grep 8009
OR
netstat -a | grep 8007

*you should see output if the connection is active*

There is in all likelihood a quicker way to determine for active connection 
for ajp worker


HTH/
Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Partha Goswami" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, August 09, 2007 4:46 PM
Subject: Re: MOD_JK TEST


hi,
is ur tomcat working ? can u view it throgh browser?


On 8/10/07, Dean Lonsdale <[EMAIL PROTECTED]> wrote:



Hi guys

Can anyone let me know of a test to prove whether the mod_jk is working
between Apache and Tomcat please ?

many thanks

Regards / Cordialement / Mit freundlichen Grüßen

--  [image: IBM]   *Dean Lonsdale*   *Dean 
Lonsdale/UK/IBM*

  [EMAIL PROTECTED] <[EMAIL PROTECTED]>   Systems Architect
IBM Systems & Technology Group
Senior Accredited IT Specialist
Tivoli Certified Consultant

IBM UK Ltd, Washway Road, Manchester   Ext: 07834 252463
Mobex: 264328   +44 (0)1253 731299 View the Systems Group website at
http://w3-03.ibm.com/systemstechnology/index.html



 --

*
*

*Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
*










--
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Self-Signed Certificate for Tomcat JVM and CAS

2007-08-11 Thread Martin Gainty

to re-iterate the doc from IBM at
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tsec_cekeen.html

"The keystore file is a key database file that contains both public keys 
(Public keys are stored as signer certificates) and

private keys (private keys are stored in the personal certificates.)"

M-
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Lisa Tan" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Saturday, August 11, 2007 6:23 PM
Subject: Re: Self-Signed Certificate for Tomcat JVM and CAS


After following the docs to generate self-signed pkcs12 key, I  failed to 
import the key/certificate into my application with No password given for 
keystore, integrity will not be verified. What does the reason cause this 
error?


I read some docs which ask to create an empty Java keystore and convert 
PEM formatted key to PKCS8 format. Why do I need to create an empty 
keystore?


Thanks,

Lisa

 Original message 

Date: Fri, 10 Aug 2007 18:25:56 -0700
From: "Bill Barker" <[EMAIL PROTECTED]>
Subject: Re: Self-Signed Certificate for Tomcat JVM and CAS
To: users@tomcat.apache.org


"Lisa Tan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

I don't know if this is a right list to ask this question. I tried to
configure shibboleth which uses Tomcat with CAS authentication. I 
received

an error: Unable to validate ProxyTicketValidator



I did google search on this topic and understood the reason causing this
problem is Tomcat JVM doesn't trust the SSL cert of the CAS server. 
Since

I
am still in the testing stage, I can't get a CA certificate but the
self-signed certificate.



If my understanding is correct, the self signed certificate via openssl
doesn't have jks format but Tomcat JVM only accept jks format 
certificate.




If you had read the friendly manual at
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html, you would know 
that
this isn't true :).  While it talks about the keystore, the truststore 
works

the same way.  So use openssl to create a pkcs12 file, specify this as the
truststore, in whatever way you need to do from the CAS docs, and you 
should

be good to go.



I am just wondering if any one can give me some instruction how to 
create

a
self-signed certificate and private key which can be used or imported to
both Tomcat JVM and CAS server.



Thanks,



Lisa











-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Self-Signed Certificate for Tomcat JVM and CAS

2007-08-11 Thread Lisa Tan
After following the docs to generate self-signed pkcs12 key, I  failed to 
import the key/certificate into my application with No password given for 
keystore, integrity will not be verified. What does the reason cause this error?

I read some docs which ask to create an empty Java keystore and convert PEM 
formatted key to PKCS8 format. Why do I need to create an empty keystore?

Thanks,

Lisa

 Original message 
>Date: Fri, 10 Aug 2007 18:25:56 -0700
>From: "Bill Barker" <[EMAIL PROTECTED]>  
>Subject: Re: Self-Signed Certificate for Tomcat JVM and CAS  
>To: users@tomcat.apache.org
>
>
>"Lisa Tan" <[EMAIL PROTECTED]> wrote in message 
>news:[EMAIL PROTECTED]
>>I don't know if this is a right list to ask this question. I tried to
>> configure shibboleth which uses Tomcat with CAS authentication. I received
>> an error: Unable to validate ProxyTicketValidator
>>
>>
>>
>> I did google search on this topic and understood the reason causing this
>> problem is Tomcat JVM doesn't trust the SSL cert of the CAS server. Since 
>> I
>> am still in the testing stage, I can't get a CA certificate but the
>> self-signed certificate.
>>
>>
>>
>> If my understanding is correct, the self signed certificate via openssl
>> doesn't have jks format but Tomcat JVM only accept jks format certificate.
>>
>
>If you had read the friendly manual at 
>http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html, you would know that 
>this isn't true :).  While it talks about the keystore, the truststore works 
>the same way.  So use openssl to create a pkcs12 file, specify this as the 
>truststore, in whatever way you need to do from the CAS docs, and you should 
>be good to go.
>>
>>
>> I am just wondering if any one can give me some instruction how to create 
>> a
>> self-signed certificate and private key which can be used or imported to
>> both Tomcat JVM and CAS server.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Lisa
>>
>>
>>
>>
>>
>> 
>
>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException : Cannot get a connection, pool error Timeout waiting for idle object

2007-08-11 Thread David Smith
Your not providing a lot of context here, so we can only guess.  The 
error implies the pool is exhausted.  Can you provide details on the 
pool config and when/where this error occurs?  Additionally, you might 
want to check out the DBCP website at http://jakarta.apache.org/commons/dbcp


--David

Devinder Singh Mahil wrote:

I get the captioned exception when I try to connect to a mysql DB.

Tomcat 6.0.14
JDK 1.6_2
WinXP

what causes the error to occur? The same application works in tomcat 5.5

thanks in advance 


Devinder


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RHEL and Tomcat startup/shutdown scripts

2007-08-11 Thread Ben Stringer
On Wed, 2007-08-08 at 15:17 -0500, Andrew R Feller wrote:
> Hello everyone,
> 
>  
> 
> Over the past couple of months, I have been working with some Tomcat
> instances on RHEL 5 and wondered: what is the recommended method to
> startup/shutdown Tomcat?  After reading the Tomcat documentation, they
> talk about compiling the jsvc source under the bin directory and using
> that.

Hi Andrew,

Redhat package tomcat 5.5 as an RPM (or JPackage package it and Redhat
distribute it).

This RPM comes with well written init scripts, creates a tomcat user
etc. I would recommend you use this.

# yum install tomcat5 

Cheers, Ben

> 
>  
> 
> Thanks,
> 
>  
> 
> Andrew R Feller, Analyst
> 
> Subversion Administrator
> 
> University Information Systems
> 
> Louisiana State University
> 
> [EMAIL PROTECTED]
> 
> (office) 225.578.3737
> 
>  
> 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



org.apache.tomcat.dbcp.dbcp.SQLNestedException : Cannot get a connection, pool error Timeout waiting for idle object

2007-08-11 Thread Devinder Singh Mahil
I get the captioned exception when I try to connect to a mysql DB.

Tomcat 6.0.14
JDK 1.6_2
WinXP

what causes the error to occur? The same application works in tomcat 5.5

thanks in advance 

Devinder


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object

2007-08-11 Thread fusion35

Hello,

I get the captioned error. Same works good with Tomcat 5.5

Tomcat 6.0.14
JDK 1.6_2
WinXP


The text of the error is  :
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHAssignment.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BSHTryStatement.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeImpl(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at 
org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:80)
at
org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:283)
at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:727)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:170)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)
at
org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:452)
at
org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:370)
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
at
org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:825)
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
... 35 more
Data Source : [EMAIL PROTECTED]
Conn before : null
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHAssignment.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BSHTryStatement.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeImpl(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at 
org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:80)
at
org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:283)
at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:727)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:170)
at org.zkoss.zk.ui.impl.EventPro