Re: NIO Connector:

2009-05-24 Thread André Warnier

Christopher Schultz wrote:

Although fresh from the tree, my lemon juice doesn't work, neither does 
the sun of Spain as heat source.

Chris, you may be posting stuff, but it doesn't get here.

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



Re: Problem with Establishing Database Configuration

2009-05-24 Thread john S
context.xml tomcat/webapps/john/META-INF/context.xml? yesojdbc14.jar in
tomcat/lib (as opposed to tomcat/webapps/john/WEB-INF)?yes.

On Sat, May 23, 2009 at 11:39 PM, David Smith  wrote:

> john.xml -- this has to be named context.xml.  Tomcat won't see it
> otherwise.  And  has to be wrapped in a 
> element.
>
> Just to be clear ... is you're path to context.xml
> tomcat/webapps/john/META-INF/context.xml?
>
> Also to be clear, is ojdbc14.jar in tomcat/lib (as opposed to
> tomcat/webapps/john/WEB-INF)?
>
> -- David
>
>
>
> On May 23, 2009, at 11:15 PM, john S  wrote:
>
>  Hi All
>>
>> I am new to this forum. I tried to establish the database connection but i
>> am getting the error.
>> I just giving my environment details
>>
>> tomcat--  webapp  ---johnmy web applicaiton
>>   ---
>>WEBINF
>>META-INF
>>  john.xml (contxt.xml)
>>
>> john.xml (contxt.xml)
>> > type="javax.sql.DataSource"
>> driverClassName="oracle.jdbc.OracleDriver"
>> url="my url.."
>> username=" " password="" maxActive="20" maxIdle="10"
>> maxWait="-1"/>
>> web.xml:
>>
>> 
>>  John Oracle DataBase 
>>  jdbc/john
>>  javax.sql.DataSource
>>  Container
>> 
>>
>> ojdbc driver: ojdbc14. in lib folder.
>>
>> Tomcat version-->tomcat 6.0,
>> JDK -->jdk1.6.0_13
>> os--> windows server 2003
>> oracle database
>>
>>
>> Can anyone tell me what wrong in my configuration?
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Problem with Establishing Database Configuration

2009-05-24 Thread David Smith
Can you post the error copy/pasted from your logs?  It wasn't included  
in you original message.


-- David


On May 24, 2009, at 9:59 AM, john S  wrote:

context.xml tomcat/webapps/john/META-INF/context.xml? yesojdbc14.jar  
in

tomcat/lib (as opposed to tomcat/webapps/john/WEB-INF)?yes.

On Sat, May 23, 2009 at 11:39 PM, David Smith   
wrote:



john.xml -- this has to be named context.xml.  Tomcat won't see it
otherwise.  And  has to be wrapped in a 
element.

Just to be clear ... is you're path to context.xml
tomcat/webapps/john/META-INF/context.xml?

Also to be clear, is ojdbc14.jar in tomcat/lib (as opposed to
tomcat/webapps/john/WEB-INF)?

-- David



On May 23, 2009, at 11:15 PM, john S  wrote:

Hi All


I am new to this forum. I tried to establish the database  
connection but i

am getting the error.
I just giving my environment details

tomcat--  webapp  ---johnmy web applicaiton
 ---
  WEBINF
  META-INF
john.xml (contxt.xml)

john.xml (contxt.xml)

web.xml:


John Oracle DataBase 
jdbc/john
javax.sql.DataSource
Container


ojdbc driver: ojdbc14. in lib folder.

Tomcat version-->tomcat 6.0,
JDK -->jdk1.6.0_13
os--> windows server 2003
oracle database


Can anyone tell me what wrong in my configuration?



-
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: Axis2/Java Clustering. Ho-to-do ?

2009-05-24 Thread Martin Gainty

you'll want to configure TC Clustering ..i would understanding high-level goals 
of TC clustering tutorial located at
http://www.mbaworld.com/docs/cluster-howto.html

if you are front-ending with Apache you'll want to look at implementing 
mod_proxy Loadbalancing at
http://www.mbaworld.com/docs/balancer-howto.html

finally the implementation details of your channel configuration would most 
likely be covered by tribes
http://www.mbaworld.com/docs/tribes/introduction.html

if you want to configure in connectors which support  non blocking connections 
such as NIO please view NIOConnector at
http://www.mbaworld.com/docs/config/http.html

(redirecting post to TC users group)
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Sun, 24 May 2009 11:52:57 +0200
Subject: Axis2/Java Clustering. Ho-to-do ?
From: hideki.tih...@gmail.com
To: axis-...@ws.apache.org

Hi,
 
I found this page: http://ws.apache.org/axis2/1_4_1/clustering-guide.html 
regarding clustering.
 
It is unclear to me if I need to achtivate clustering at Tomcat level also ?
 
Also unclear is whether how I define which nodes should be clustered?
 
Has anyone more info regarding this subject ?
 
Thanks a lot.
 
H.
_
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009

Renew SSL Certificate

2009-05-24 Thread Alexander Diedler
Hello all,

We use a Tomcat 6.0.16 and the build-in Keystore technology for the SSL
functionality. Now it is time to re-new the Certificate. We get an error by
importing the certificate. Jara JRE 1.6.0_06

We use the Same SSL-Provider and bought the same SSL type and generate the
SSL cert with the same CSR as 1 year ago.

 

We copy ths certificate hash code in to a .pem file, and then transform it
with

C:\openssl\openssl x509 -in d:/Keystore/www_ site_de.pem -inform PEM
-outform DER -out D:/Keystore/www_ site_de.crt

 

And then try to import with 

keytool -import -alias tomcat -keystore  \

-file 

But it not work. The error message is in german:

Keytool-Fehler: java.lang.Exception: Íffentliche Schlüssel in Antwort und
Keystore stimmen nicht überein.  In english like 

Public key in answear and keystore doesn´t match.

 

Greetings

Alexander

 

 

 



smime.p7s
Description: S/MIME cryptographic signature


Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-05-24 Thread Patrick Herber

Hello

I've made some more tests and after reading the Book "*Tomcat, The 
definitive Guide*" I discovered the existence of a parameter called 
"*connectionUploadTimeout*" (below I join the description of this 
property taken from this book).
I've changed the configuration of the HTTP connector and now uploading 
big files directly on tomcat (without Apache HTTP) works without problems:




However, if I reset our original configuration with Tomcat behind an 
Apache HTTP connected with mod_proxy_ajp (or mod_proxy_http) I get the 
same Exception as before (the Upload stops after 30 minutes).



   ProxyRequests Off
   ProxyTimeout 3600
   
   ProxyPass ajp://localhost:8009/
   ProxyPassReverse ajp://localhost:8009/
   

  

   connectionTimeout="60"
   connectionUploadTimeout="360"
   disableUploadTimeout="true"
   redirectPort="8443" />

Or


   ProxyRequests Off
   ProxyTimeout 3600
   
   ProxyPass http://localhost:8080/
   ProxyPassReverse http://localhost:8080/
   




I've tried setting the "timeout" parameter in the ProxyPass instruction 
to one hour:


ProxyPass ajp://localhost:8009/ timeout=3600

But it did not help...
Do you have any suggestion?

Thanks a lot for your attention and your help
Patrick


Here the description of the three properties copied from the Book 
"Tomcat, The definitive Guide" (O'Reilly, Jason Brittain with Ian F. 
Darwin). I missed these information in the official Tomcat documentation 
(didn't I see it?):


*disableUploadTimeout*
Should Tomcat use the regular connectionTimeout for request socket 
connections even for long servlet requests, such as uploads? Setting 
disableUploadTimeout to true allows long requests to servlets to 
continue without the Connector closing the connection. Setting it to 
false means that a longer connection timeout (connectionUploadTimeout's 
value) will be used for requests to servlets. Setting it to false means 
that the lower connection timeout specified in the connectionTimeout 
attribute will be applied to all types of requests.
The default for this attribute is not consistent between Connector 
implementations and versions of Tomcat. We strongly suggest that you 
explicitly set it to either true or false.


*connectionTimeout*
The Connector may wait a configurable number of milliseconds from the 
time the client's request TCP socket is accepted until the request 
method line is sent to Tomcat.

The default is 1 minute. 6

*connectionUploadTimeout*
By default, Connectors keep request socket connections open while Tomcat 
processes the request, until the connectionTimeout of 1 minute has 
passed. At that point, the Connector will close the socket. But, this 
causes trouble if the request was for a long running servlet, such as a 
file upload. During requests that map to servlets, Tomcat will use a 
longer timeout, specified by the connectionUploadTimeout attribute in 
milliseconds.

The default is 30 milliseconds (5 minutes). 30


Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-05-24 Thread Bill Barker

"Patrick Herber"  wrote in message 
news:4a19b564.8030...@ticino.com...
> Hello
>
> I've made some more tests and after reading the Book "*Tomcat, The
> definitive Guide*" I discovered the existence of a parameter called
> "*connectionUploadTimeout*" (below I join the description of this
> property taken from this book).
> I've changed the configuration of the HTTP connector and now uploading
> big files directly on tomcat (without Apache HTTP) works without problems:
>
> connectionTimeout="60"
>connectionUploadTimeout="360"
>disableUploadTimeout="true"
>redirectPort="8443" />
>
> However, if I reset our original configuration with Tomcat behind an
> Apache HTTP connected with mod_proxy_ajp (or mod_proxy_http) I get the
> same Exception as before (the Upload stops after 30 minutes).
>
> 
>ProxyRequests Off
>ProxyTimeout 3600

This looks a lot like 30min ;)

>
>ProxyPass ajp://localhost:8009/
>ProxyPassReverse ajp://localhost:8009/
>
> 
>
> connectionTimeout="60"
>connectionUploadTimeout="360"
>disableUploadTimeout="true"
>redirectPort="8443" />
>
> Or
>
> 
>ProxyRequests Off
>ProxyTimeout 3600
>
>ProxyPass http://localhost:8080/
>ProxyPassReverse http://localhost:8080/
>
> 
>
> connectionTimeout="60"
>connectionUploadTimeout="360"
>disableUploadTimeout="true"
>redirectPort="8443" />
>
> I've tried setting the "timeout" parameter in the ProxyPass instruction
> to one hour:
>
> ProxyPass ajp://localhost:8009/ timeout=3600
>
> But it did not help...
> Do you have any suggestion?
>
> Thanks a lot for your attention and your help
> Patrick
>
>
> Here the description of the three properties copied from the Book
> "Tomcat, The definitive Guide" (O'Reilly, Jason Brittain with Ian F.
> Darwin). I missed these information in the official Tomcat documentation
> (didn't I see it?):
>
> *disableUploadTimeout*
> Should Tomcat use the regular connectionTimeout for request socket
> connections even for long servlet requests, such as uploads? Setting
> disableUploadTimeout to true allows long requests to servlets to
> continue without the Connector closing the connection. Setting it to
> false means that a longer connection timeout (connectionUploadTimeout's
> value) will be used for requests to servlets. Setting it to false means
> that the lower connection timeout specified in the connectionTimeout
> attribute will be applied to all types of requests.
> The default for this attribute is not consistent between Connector
> implementations and versions of Tomcat. We strongly suggest that you
> explicitly set it to either true or false.
>
> *connectionTimeout*
> The Connector may wait a configurable number of milliseconds from the
> time the client's request TCP socket is accepted until the request
> method line is sent to Tomcat.
> The default is 1 minute. 6
>
> *connectionUploadTimeout*
> By default, Connectors keep request socket connections open while Tomcat
> processes the request, until the connectionTimeout of 1 minute has
> passed. At that point, the Connector will close the socket. But, this
> causes trouble if the request was for a long running servlet, such as a
> file upload. During requests that map to servlets, Tomcat will use a
> longer timeout, specified by the connectionUploadTimeout attribute in
> milliseconds.
> The default is 30 milliseconds (5 minutes). 30
> 




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



Re: Problem with Establishing Database Configuration

2009-05-24 Thread john S
Anyway thanks for ur help ..I got it. ..

On Sun, May 24, 2009 at 11:17 AM, David Smith  wrote:

> Can you post the error copy/pasted from your logs?  It wasn't included in
> you original message.
>
> -- David
>
>
> On May 24, 2009, at 9:59 AM, john S  wrote:
>
> context.xml tomcat/webapps/john/META-INF/context.xml? yesojdbc14.jar in
>>
>> tomcat/lib (as opposed to tomcat/webapps/john/WEB-INF)?yes.
>>
>> On Sat, May 23, 2009 at 11:39 PM, David Smith  wrote:
>>
>> john.xml -- this has to be named context.xml.  Tomcat won't see it
>>> otherwise.  And  has to be wrapped in a 
>>> element.
>>>
>>> Just to be clear ... is you're path to context.xml
>>> tomcat/webapps/john/META-INF/context.xml?
>>>
>>> Also to be clear, is ojdbc14.jar in tomcat/lib (as opposed to
>>> tomcat/webapps/john/WEB-INF)?
>>>
>>> -- David
>>>
>>>
>>>
>>> On May 23, 2009, at 11:15 PM, john S  wrote:
>>>
>>> Hi All
>>>

 I am new to this forum. I tried to establish the database connection but
 i
 am getting the error.
 I just giving my environment details

 tomcat--  webapp  ---johnmy web applicaiton
 ---
  WEBINF
  META-INF
john.xml (contxt.xml)

 john.xml (contxt.xml)
 >>>   type="javax.sql.DataSource"
 driverClassName="oracle.jdbc.OracleDriver"
   url="my url.."
   username=" " password="" maxActive="20" maxIdle="10"
   maxWait="-1"/>
 web.xml:

 
 John Oracle DataBase 
 jdbc/john
 javax.sql.DataSource
 Container
 

 ojdbc driver: ojdbc14. in lib folder.

 Tomcat version-->tomcat 6.0,
 JDK -->jdk1.6.0_13
 os--> windows server 2003
 oracle database


 Can anyone tell me what wrong in my configuration?


>>> -
>>> 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: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-05-24 Thread Caldarale, Charles R
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Bill Barker
> Subject: Re: Upload stop after 30 minutes: Processing of
> multipart/form-data request failed. Stream ended unexpectedly
> 
> > 
> >ProxyRequests Off
> >ProxyTimeout 3600
> 
> This looks a lot like 30min ;)

??? Isn't that more like 60 minutes?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Upload stop after 30 minutes: Processing of multipart/form-data request failed. Stream ended unexpectedly

2009-05-24 Thread Patrick Herber

> ProxyTimeout 3600
> This looks a lot like 30min ;)

IMHO no... it should be 60 seconds * 60 = 1 hour


Regards
Patrick

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



Re: Tomcat 6 - not started AJP/NIO on CentOS

2009-05-24 Thread Dmitriy Repin

Caldarale, Charles R wrote:

Post the server.xml from your CentOS attempt so we can look at it.

 - Chuck

  

My server.xml is very simple.


 
 className="org.apache.catalina.mbeans.ServerLifecycleListener" />
 className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />


 
   
 

 
   protocol="org.apache.coyote.http11.Http11NioProtocol"

   maxThreads="256"
   connectionTimeout="2"
   keepAliveTimeout="5000"
  redirectPort="8443" />
  
   
   channelNioSocket.port="8009"
   channelNioSocket.maxThreads="256"
   channelNioSocket.maxSpareThreads="97"
   channelNioSocket.minSpareThreads="50"
   channelNioSocket.keepAliveTimeout="1000"
   channelNioSocket.bufferSize="16384"/>
   
   
   
   
   resourceName="UserDatabase"/>
   
   
   unpackWARs="true" autoDeploy="true"
   xmlValidation="false" xmlNamespaceAware="false">
   
   
   
   
 





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



problem with shutting down

2009-05-24 Thread vijay sankar
I have recently downloaded the 6.0.18 binary distribution and I am running
it in vista.

I have started the server by running bootstrap.jar and it is working fine.
I tried to stop the server by running the shutdown.bat, but it is not
stopping.

Can any one help me regarding this