Cluster and attributes

2004-03-16 Thread Duma Rolando
Hi all,
I would like to know if the ServletContext attributes are clusterized or
this happens only for Session attributes.
I'm using Tomcat 5.1.19,
Thanks in advance.


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



Clustering Tomcat 5.0.19

2004-03-01 Thread Duma Rolando
Hi all, I have a problem running Tomcat 5.0.19 on HP Itanium with JRockit
1.4.2.
If I comment out the Cluster  ReplicationValve from server.xml as mentioned
in the docs, leaving the default attribute values my catalina.out shows the
following exception:


GRAVE: Unable to start cluster.
java.lang.NullPointerException
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:196)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:150)
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:413)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start()V(Catalina.java:594)
at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;JLjava.lang.Ob
ject;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Obj
ect;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.l
ang.Object;)Ljava.lang.Object;(Unknown Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava
.lang.Object;(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.start()V(Bootstrap.java:297)
at
org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Bootstrap.j
ava:398)
1-mar-2004 17.30.07 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException:  java.lang.NullPointerException
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:424)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)

Can anyone help me?
Thanks in advance.


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



Re: SSL client authentication with tomcat 4.1.24

2003-06-10 Thread Duma Rolando
I'm still having trouble with my setup.
These are my keystore entries:

Tipo keystore: jks
Provider keystore: SUN

Il keystore contiene 3 entry

scai, 10-giu-2003, keyEntry,
Impronta digitale certificato (MD5):
D5:FC:34:5E:12:03:CD:29:84:18:C9:4C:33:07:6C:5D
_dgripbmo, 10-giu-2003, trustedCertEntry,
Impronta digitale certificato (MD5):
F5:ED:E9:B2:D9:71:F9:B6:6F:E9:39:27:4D:0A:A4:F7
dumarolando, 10-giu-2003, trustedCertEntry,
Impronta digitale certificato (MD5):
E6:8D:22:29:5C:33:20:52:10:75:6A:8E:5D:03:4C:B3

The second item is the CA certificate that signs my personal certificate,
the last is my personal certificate present also in my IE Personal
certificates tab.If nothing is missing and the browser still pops up an
empty personal certificate list, maybe there is a problem with the
cryptographic providers or with the encription algorithms used?
As a note my personal certificate is stored on a Gemplus smartcard connected
with a USB reader all works fine if I connect to an Apache server with
mod_ssl.

- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 5:33 AM
Subject: Re: SSL client authentication with tomcat 4.1.24


 I believe that the Sun 1.4 JVM ships with the certs for Verisign and
Thawte
 (to verify this, search the java.sun.com site).  To allow OpenExchange
 signed certs, you need to get the signing cert (not hard), and import it
 into cacerts.

 Mario Ivankovits [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  For me, it looks like some certificates cant be read by tomcat/ssl.
 
  So, my Thawte FreeMail Member certificate works, but the certificate
  generated by SuSE OpenExchange wont work.
 
  I havent figured out what the difference could be for now.
 
  Mario
 
  - Original Message -
  From: Duma Rolando [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, June 06, 2003 1:40 PM
  Subject: Re: SSL client authentication with tomcat 4.1.24
 
 
   I have already imported my certificate.This is correctly showed if I
  connect
   to an apache + mod-ssl server with SSLVerifyClient require
directive,
 so
  I
   think the problem belongs to Tomcat SSL implementation or its
  configuration.
   That's why I'm looking for people with positive experience on this
kind
 of
   setup.
  
  
   - Original Message -
   From: Bodycombe, Andrew [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Friday, June 06, 2003 12:58 PM
   Subject: RE: SSL client authentication with tomcat 4.1.24
  
  
You need to import your personal certificate into your browser.
   
In IE:
Select 'Internet Options' from the Tools Menu
Select the Content tab
Press the certificates button
   
This takes you to the screen showing all your certificates
Select the 'Personal' tab
Press Import to import your certificate
   
Andy
   
-Original Message-
From: Duma Rolando [mailto:[EMAIL PROTECTED]
Sent: 06 June 2003 11:31
To: Tomcat Mailing List
Subject: SSL client authentication with tomcat 4.1.24
   
   
Is there anyone that have a running tomcat 4.1.24 standalone server
 with
   SSL
and clientAuth=true?
My current config doesn't work ( i.e. Internet Explorer doesn't
 display
  my
personal certificate, Mozilla displays an error message ).I tried
with
   only
one SSL connector on port 443 and with also an http connector on
port
 80
without success.I would like to know if I'm wasting time or there
are
success stories about this in this community.
   
   
  
 -
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]
  
  
   -
   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]


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



Re: SSL client authentication with tomcat 4.1.24

2003-06-10 Thread Duma Rolando
It works, thanks a lot for your help.

- Original Message -
From: Mario Ivankovits [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:36 AM
Subject: Re: SSL client authentication with tomcat 4.1.24


 You have to import the root CA into the java cacerts keystore

 Assuming a windows-java installation in C:\j2sdk the location is:
 C:\j2sdk\jre\lib\security\cacerts

 using

  cd C:\j2sdk\jre\lib\security
  keytool -import -keystore cacerts -storepass changeit -file
 the-root-ca.cer

 did the job for me.

 Mario
 - Original Message -
 From: Duma Rolando [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, June 10, 2003 9:24 AM
 Subject: Re: SSL client authentication with tomcat 4.1.24


  I'm still having trouble with my setup.
  These are my keystore entries:
 
  Tipo keystore: jks
  Provider keystore: SUN
 
  Il keystore contiene 3 entry
 
  scai, 10-giu-2003, keyEntry,
  Impronta digitale certificato (MD5):
  D5:FC:34:5E:12:03:CD:29:84:18:C9:4C:33:07:6C:5D
  _dgripbmo, 10-giu-2003, trustedCertEntry,
  Impronta digitale certificato (MD5):
  F5:ED:E9:B2:D9:71:F9:B6:6F:E9:39:27:4D:0A:A4:F7
  dumarolando, 10-giu-2003, trustedCertEntry,
  Impronta digitale certificato (MD5):
  E6:8D:22:29:5C:33:20:52:10:75:6A:8E:5D:03:4C:B3
 
  The second item is the CA certificate that signs my personal
certificate,
  the last is my personal certificate present also in my IE Personal
  certificates tab.If nothing is missing and the browser still pops up an
  empty personal certificate list, maybe there is a problem with the
  cryptographic providers or with the encription algorithms used?
  As a note my personal certificate is stored on a Gemplus smartcard
 connected
  with a USB reader all works fine if I connect to an Apache server with
  mod_ssl.
 
  - Original Message -
  From: Bill Barker [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 07, 2003 5:33 AM
  Subject: Re: SSL client authentication with tomcat 4.1.24
 
 
   I believe that the Sun 1.4 JVM ships with the certs for Verisign and
  Thawte
   (to verify this, search the java.sun.com site).  To allow OpenExchange
   signed certs, you need to get the signing cert (not hard), and import
it
   into cacerts.
  
   Mario Ivankovits [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
For me, it looks like some certificates cant be read by tomcat/ssl.
   
So, my Thawte FreeMail Member certificate works, but the certificate
generated by SuSE OpenExchange wont work.
   
I havent figured out what the difference could be for now.
   
Mario
   
- Original Message -
From: Duma Rolando [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 1:40 PM
Subject: Re: SSL client authentication with tomcat 4.1.24
   
   
 I have already imported my certificate.This is correctly showed if
I
connect
 to an apache + mod-ssl server with SSLVerifyClient require
  directive,
   so
I
 think the problem belongs to Tomcat SSL implementation or its
configuration.
 That's why I'm looking for people with positive experience on this
  kind
   of
 setup.


 - Original Message -
 From: Bodycombe, Andrew [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, June 06, 2003 12:58 PM
 Subject: RE: SSL client authentication with tomcat 4.1.24


  You need to import your personal certificate into your browser.
 
  In IE:
  Select 'Internet Options' from the Tools Menu
  Select the Content tab
  Press the certificates button
 
  This takes you to the screen showing all your certificates
  Select the 'Personal' tab
  Press Import to import your certificate
 
  Andy
 
  -Original Message-
  From: Duma Rolando [mailto:[EMAIL PROTECTED]
  Sent: 06 June 2003 11:31
  To: Tomcat Mailing List
  Subject: SSL client authentication with tomcat 4.1.24
 
 
  Is there anyone that have a running tomcat 4.1.24 standalone
 server
   with
 SSL
  and clientAuth=true?
  My current config doesn't work ( i.e. Internet Explorer doesn't
   display
my
  personal certificate, Mozilla displays an error message ).I
tried
  with
 only
  one SSL connector on port 443 and with also an http connector on
  port
   80
  without success.I would like to know if I'm wasting time or
there
  are
  success stories about this in this community.
 
 

   -
  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

SSL client authentication with IE 6.0

2003-06-06 Thread Duma Rolando
I'm running Tomcat 4.1.24 standalone with SSL client authentication
enabled.Internet Explorer 6.0 when I try to access the server pops up a
window that ask me which certificate will be used for client authentication,
but the list of certificates is empty!
I've tested my browser on apache with mod_ssl and client authentication, and
IE pops up the same window but in this case my personal certificate is
present.
This is the only tomcat connector configured on my PC.

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=15 maxProcessors=25
   enableLookups=true acceptCount=100 debug=0
scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true 
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=true protocol=TLS
   keystoreFile=C:/.keystore
   keystorePass=xx/
/Connector
Thanks for your help.


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



SSL client authentication with tomcat 4.1.24

2003-06-06 Thread Duma Rolando
Is there anyone that have a running tomcat 4.1.24 standalone server with SSL
and clientAuth=true?
My current config doesn't work ( i.e. Internet Explorer doesn't display my
personal certificate, Mozilla displays an error message ).I tried with only
one SSL connector on port 443 and with also an http connector on port 80
without success.I would like to know if I'm wasting time or there are
success stories about this in this community.


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



Re: SSL client authentication with tomcat 4.1.24

2003-06-06 Thread Duma Rolando
I have already imported my certificate.This is correctly showed if I connect
to an apache + mod-ssl server with SSLVerifyClient require directive, so I
think the problem belongs to Tomcat SSL implementation or its configuration.
That's why I'm looking for people with positive experience on this kind of
setup.


- Original Message -
From: Bodycombe, Andrew [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 12:58 PM
Subject: RE: SSL client authentication with tomcat 4.1.24


 You need to import your personal certificate into your browser.

 In IE:
 Select 'Internet Options' from the Tools Menu
 Select the Content tab
 Press the certificates button

 This takes you to the screen showing all your certificates
 Select the 'Personal' tab
 Press Import to import your certificate

 Andy

 -Original Message-
 From: Duma Rolando [mailto:[EMAIL PROTECTED]
 Sent: 06 June 2003 11:31
 To: Tomcat Mailing List
 Subject: SSL client authentication with tomcat 4.1.24


 Is there anyone that have a running tomcat 4.1.24 standalone server with
SSL
 and clientAuth=true?
 My current config doesn't work ( i.e. Internet Explorer doesn't display my
 personal certificate, Mozilla displays an error message ).I tried with
only
 one SSL connector on port 443 and with also an http connector on port 80
 without success.I would like to know if I'm wasting time or there are
 success stories about this in this community.


 -
 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]


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



SSL on winXP

2003-03-06 Thread Duma Rolando
I'm using Tomcat 4.1.18 with j2sdk1.4.1_01 on winXP.This is my SSL config :

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
   keystoreFile=C:/Documents and Settings/XXX/.keystore
   keystorePass=x/
/Connector

When Tomcat starts, throws the following exception  :

Catalina.start: LifecycleException:  Protocol handler initialization failed:
java.lang.ClassNotFoundException: Can't find any SSL implementation
LifecycleException:  Protocol handler initialization failed:
java.lang.ClassNotFoundException: Can't find any SSL implementation
 at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
34)
...
..




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



tomcat tar.gz package

2003-03-05 Thread Duma Rolando
I have a question about the correct way to extract the tar.gz tomcat
archive.If I do it as root all works but I don't think this is correct for
security reasons.If I do it as a normal user I saw some errors about
preserving file permissions.I would like to start/run the engine in the most
secure way.
Thanks for your help


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



Static content and http.conf

2003-02-18 Thread Duma Rolando
1)How to configure apache to serve static content placed inside a webapp
context?
2)Does this configuration depends on the paths used inside my jsp(i.e.
does it works if i use relative paths for the images)?
3)If it depends also on connector used, is the warp connector ok?
4)Is the keepalive directive useful for a correct apache configuration?

Sorry if i ask so many questions but the problem is only one: how to deploy
a webapp with all the static content but lave apache to serve this.
Thanks in advance.


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




Apache/Tomcat and pdf files

2003-02-12 Thread Duma Rolando
I have Apache 1.3.26 with SSL enabled connected with  Tomcat 4.1.18 via warp
connector.
With a jsp or struts action invoked that creates a PDF file the browser
opens an open/save dialog instead of starting the plug-in.It's possible to
solve this problem with this software mix?
Thanks for your help.



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




Tomcat + Apache performances

2002-12-19 Thread Duma Rolando
I would like to know if my webapp runs faster with tomcat behind apache if i
put javascript files, images, static pages outside my war context so they
are served directly by Apache.
If this is true it'is possible to mantain these files inside the war?


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