Keep Alive

2005-03-02 Thread Alex Chen
I am using Tomcat as my web server.  I am using AXIS for SOAP.  I notice 
via ethereal that the are a lot of
port opening from the client side for the HTTP (SOAP) requests.  I would 
like to keep the socket open
for the client.  How do I make the tomcat server keep the socket open?
Is there a setting in the server configuration that can do this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where is the stratum package?

2004-03-25 Thread Alex Chen
Thanks.

Shapira, Yoav wrote:

Hi,
Stratum is a jakarta turbine (http://jakarta.apache.org/turbine/)
package.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Alex Chen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 10:15 PM
To: Tomcat Users List
Subject: Where is the stratum package?
I got the following error message in my tomcat log file.  I am using
Axis under Tomcat and create a servlet that extends AxisServlet
2004-03-24 18:33:07
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
2004-03-24 18:33:08 StandardContext[/axis]StandardWrapper.Throwable
java.lang.NoClassDefFoundError:
   

org/apache/stratum/lifecycle/Initializable
 

  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl
   

assL
 

oader.java:1677)
  at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade
   

r.ja
 

va:900)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
   

r.ja
 

va:1350)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
   

r.ja
 

va:1230)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  at com.packetmotion.trinity.gsm.main.GsmServlet.init(Unknown
   

Source)
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Where is the stratum package?

2004-03-24 Thread Alex Chen
I got the following error message in my tomcat log file.  I am using 
Axis under Tomcat and create a servlet that extends AxisServlet

2004-03-24 18:33:07 
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: 
init(): ruleChain: [org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]
2004-03-24 18:33:08 StandardContext[/axis]StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/apache/stratum/lifecycle/Initializable
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)
   at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   at com.packetmotion.trinity.gsm.main.GsmServlet.init(Unknown Source)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using HTTPS with keystore and trust store files

2004-02-26 Thread Alex Chen
Thanks, Rommel,

Rommel Sharma wrote:

What I can say is this:
1. In keystoreFile attribute provide the complete path
(C:\MyCertFolder\mykeystore.ks)
   Same for truststore.
2. Where do I specify the file that store the client's certificate?
In your client code that makes a call to the https specify the location of
the keystore and in the server side code that you will will write, get the
message context
(someting like:
 MessageContext context = MessageContext.getCurrentContext();
 ...
 HttpServletRequest req = (HttpServletRequest)context .getProperty
(HTTPConstants.MC_HTTP_SERVLETREQUEST);
// and the code to match the client certificate with the client keystore on
the server
// so you specify its location on the server having the same client
keystore...
)
Hope this helps,
Regards,
Rommel.
- Original Message -
From: Alex Chen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 11:30 PM
Subject: Using HTTPS with keystore and trust store files
 

Hi,
 I am trying to set up Tomcat for HTTPS connection with keystore and
truststore files.  I want to use Tomcat as the
web server so the port number is 80 and 443 for HTTP and HTTPS,
respectively. I am running Tomcat on Windows XP.
Here is the 'Connector' entry in %CATALINA_HOME%\conf\server.xml.
  Connector port=443
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  clientAuth=true sslProtocol=TLS
  keystoreFile=server.ks keystoreType=JCEKS
  keystorePass=changeit
  truststoreFile=server.ts truststoreType=JCEKS 
   /Connector
When I start tomcat, I get the following error:

java.io.FileNotFoundException: server.ks (The system cannot find the
file specif
ied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(FileInputStream.java:106)
   at java.io.FileInputStream.init(FileInputStream.java:66)
   at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket
Factory.java:262)
   at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc
ketFactory.java:232)
..
I tried to put the file in different places, the user's home directory
in C:\Documents and Settings\%user%\,
%CATALINA_HOME%\,  %CATALINA_HOME%\webapps, %CATALINA_HOME%\webapps\ROOT,
but they all failed.
My questions are:
1. Where should the keystore file be stored if I set the 'keystoreFile'
attribute in Connector element?
2.  If I set 'clientAuth' to true, shouldn't there be a place to store
the the client's certificate, i.e. the truststore?
Where do I specify the file that store the client's certificate?
I saw the truststoreFile attribute in an example from
http://www.j2ee-security.net/book/sample-chap/
It sets this attribute in a 'Factory' subelement.  But that is for
Tomcat 4.X.
Any help is appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

*
Disclaimer
This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Using HTTPS with keystore and trust store files

2004-02-25 Thread Alex Chen
Hi,
 I am trying to set up Tomcat for HTTPS connection with keystore and 
truststore files.  I want to use Tomcat as the
web server so the port number is 80 and 443 for HTTP and HTTPS, 
respectively. I am running Tomcat on Windows XP.

Here is the 'Connector' entry in %CATALINA_HOME%\conf\server.xml.
  Connector port=443
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  clientAuth=true sslProtocol=TLS
  keystoreFile=server.ks keystoreType=JCEKS
  keystorePass=changeit
  truststoreFile=server.ts truststoreType=JCEKS 
   /Connector
When I start tomcat, I get the following error:

java.io.FileNotFoundException: server.ks (The system cannot find the 
file specif
ied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(FileInputStream.java:106)
   at java.io.FileInputStream.init(FileInputStream.java:66)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket
Factory.java:262)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc
ketFactory.java:232)
..

I tried to put the file in different places, the user's home directory 
in C:\Documents and Settings\%user%\,
%CATALINA_HOME%\,  %CATALINA_HOME%\webapps, %CATALINA_HOME%\webapps\ROOT,
but they all failed.

My questions are:
1. Where should the keystore file be stored if I set the 'keystoreFile' 
attribute in Connector element?

2.  If I set 'clientAuth' to true, shouldn't there be a place to store 
the the client's certificate, i.e. the truststore?
Where do I specify the file that store the client's certificate?
I saw the truststoreFile attribute in an example from 
http://www.j2ee-security.net/book/sample-chap/
It sets this attribute in a 'Factory' subelement.  But that is for 
Tomcat 4.X.

Any help is appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]