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 /Server - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 4:46 PM Subject: HTTP Status 500 Does anyone know why i get the message HTTP Status 500 - No Host matches server name www.xxx.co.uk When i use ajp13 to connect to tomcat 4 from apache 1.3.20 I am using the same method i would have used when i was using tomcat 3.x (I.e nothing has changed on the apache side Only the Connetor stuff in server.xml has changed ! Any obvious ideas anyone ? Cheers in advance Lee (Embedded image moved to file: pic00041.pcx)
Re: HTTP Status 500 - Now Exception
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
Re: Email AJP.jar
It`s only for testing on a non production box I`m not to bothered if it trashes.! Thanks for the warning though Lee |+--- || Mike Barb | || Kollier | || kollier@eart| || hlink.net | || | || 09/25/01 | || 07:22 PM | || Please | || respond to | || tomcat-user | || | |+--- | | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: Email AJP.jar | | Lee, you're a very trusting soul! Mike [EMAIL PROTECTED] wrote: Can someone email me a fairly recent ajp.jar (For jk 13) so that i can use it in Catalina. I would download and build the CVS files but i`m behind a firewall and can`t get access to cvs.apache.org. Many thanks P.S send to [EMAIL PROTECTED] not the tomcat group as a lot of people may get cheesed off! Cheers Lee
HTTP Status 500
Does anyone know why i get the message HTTP Status 500 - No Host matches server name www.cnmdealex.co.uk When i use ajp13 to connect to tomcat 4 from apache 1.3.20 I am using the same method i would have used when i was using tomcat 3.x (I.e nothing has changed on the apache side Only the Connetor stuff in server.xml has changed ! Any obvious ideas anyone ? Cheers in advance Lee
HTTP Status 500
Does anyone know why i get the message HTTP Status 500 - No Host matches server name www.xxx.co.uk When i use ajp13 to connect to tomcat 4 from apache 1.3.20 I am using the same method i would have used when i was using tomcat 3.x (I.e nothing has changed on the apache side Only the Connetor stuff in server.xml has changed ! Any obvious ideas anyone ? Cheers in advance Lee (Embedded image moved to file: pic00041.pcx) pic00041.pcx
Email AJP.jar
Can someone email me a fairly recent ajp.jar (For jk 13) so that i can use it in Catalina. I would download and build the CVS files but i`m behind a firewall and can`t get access to cvs.apache.org. Many thanks P.S send to [EMAIL PROTECTED] not the tomcat group as a lot of people may get cheesed off! Cheers Lee
Tomcat 4.0 Apache with Client Certs
Scenario I have apache passing any calls to servlets through to Tomcat 4 via the mod_webapp connector. My Server certificate and my client certificates work fine to allow specific users onto the system. ProblemProblemProblemProblemProblem In Tomcat 3.2.3 it was possible using AJP13 to access Client Certificate information via request.getAttribute(javax.servlet.request.X509Certificate) from within my tomcat servlet. In Release 4.0 using the warp connector this doesn`t appear to be the case. When i debug/view my request object for it`s attributes there are none present. No CIPHER_SUITE or X509Certificate. Please can someone tell me how i should be accessing client certificate information from within Tomcat 4.0 via apache. My System Apache-ssl 1.3 Tomcat 4.0 mod_webapp.so Linux Redhat 7.1 Here is an extract of my httpd.conf VirtualHost www.xx.co.uk:443 SSLEnable SSLCertificateFile /usr/local/ssl/www.xxx.crt SSLCertificateKeyFile /usr/local/ssl/www.xxx.key SSLCACertificateFile /usr/local/ssl/xxx.pem SSLVerifyClient 2 SSLVerifyDepth 10 SSLFakeBasicAuth SSLExportClientCertificates SSLCacheServerPort /usr/logs/gcache_port SSLCacheServerPath ./bin/gcache SSLSessionCacheTimeout 30 SSLRequiredCiphers RC4-MD5 SSLCacheServerPath ./bin/gcache SSLCacheServerPort logs/gcache_port SSLCacheServerRunDir /tmp Serveradmin xx@xx ServerName xxx WebAppConnection warpConnection warp localhost:8008 WebAppDeploy testcert warpConnection /testcert/ /VirtualHost and my server.xml to receive the warp connector !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true scheme=https secure=true acceptCount=10 debug=0/ /Connector !-- Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ -- !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=localhost debug=0 appBase=webapps . Any help or advise greatly appreciated Lee Lovell