Your a life saver...
Works a treat
and with a deadline of tomorrow fits in perfectly.
Cheers
Lee
|+---
|| Matias |
|| Bahlenberg |
|| matias.bahlenber|
|| [EMAIL PROTECTED] |
|| |
|| 09/27/01 09:43 AM|
|| Please respond to|
|| tomcat-user |
|| |
|+---
|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: HTTP Status 500 - Now Exception
|
|
Hi Lee,
The return value is an array of certificates:
java.security.cert.X509Certificate[] certArray
= (java.security.cert.X509Certificate[])
request.getAttribute
(javax.servlet.request.X509Certificate);
// Matias
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 10:33 AM
Subject: Re: HTTP Status 500 - Now Exception
Thanks for that tip
It did get me past the point i was stuck on.
However now i am getting a class cast exception on the tomcat 4 machine
with
code that runs fine on the tomcat 3.x machine
both use mod_jk ajp13.
Both have java 1.3.1 running.
java.security is identical.
Is the information passed differently in the latest tomcat compared to
versions 3.x.
I use request.getAttribute(javax.servlet.request.X509Certificate) to
extract the certificate string.
Any ideas anyone.
java.lang.ClassCastException: [Ljava.security.cert.X509Certificate;
at ..
|+---
|| Matias |
|| Bahlenberg |
|| matias.bahlenber|
|| [EMAIL PROTECTED] |
|| |
|| 09/27/01 08:05 AM|
|| Please respond to|
|| tomcat-user |
|| |
|+---
|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: HTTP Status 500
|
|
Hi Lee,
I recognize this. I solved the problem with a Host inside the Engine
element in the server.xml. See below:
Server port=8005 shutdown=SHUTDOWN debug=0
!-- Some information of the stand-alone service, tomcat web-server
--
!-- I you do not use this service, I suggest you comment it all --
!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 /
!-- Replace localhost with what your Apache ServerName is
set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=www.company.com debug=0 appBase
=webapps
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt
timestamp=true/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=apache_access_log. suffix
=.txt
pattern=common/
!-- Because this Realm is here, an instance will be shared
globally --
Realm className=org.apache.catalina.realm.MemoryRealm /
!-- Be sure that the name is the same as ServerName in
httpd.conf --
Host name=www.company.com appBase=webapps
Context path=
docBase=ROOT
crossContext=false
reloadable=true /
/Host
/Engine
/Service