tomcat 4.0.2 and oracles XDK (xsql) Urgent

2002-03-01 Thread Thor Tall

I am trying to install some *.xsql pages under tomcat
4.0.2 with out luck. 

I am using : 
Oracle 9.0.1 rdbms 
Oracle XSQL Servlet Page Processor 9.0.1.0.0
(Production) 
from the 9.0.1 Linux distribution. 
Redhat 7.2 
Java - j2sdk1.4.0 

I have: 
1. copied classes12.jar, oraclexsql.jar, xsu12.jar and
xmlparserv2.jar to tomcathome/common/lib 
2. copied XSQLConfig.xml to
tomcathome/common/classes 
I have used the same XSQLConfig.xml with Apache/JServ
and it works. 
3. added the following two sections to the
tomcathome/conf/web.xml file: 

!-- Oracle xsql processing -- 
servlet 
servlet-namexsql/servlet-name 
servlet-classoracle.xml.xsql.XSQLServlet/servlet-class

/servlet 

servlet-mapping 
servlet-namexsql/servlet-name 
url-pattern*.xsql/url-pattern 
/servlet-mapping 

4. copied helloworld.xsql into
tomcathome/webapps/ROOT/ 

5. started tomcat with the new files. 


Now when I access the example as: 
http://myhost:8180/helloworld.xsql 

I get : 
Oracle XSQL Servlet Page Processor 9.0.1.0.0
(Production) 

XSQL-007: Cannot acquire a database connection to
process page. 
java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver 


What could possibly be wrong ??? 

Thanks 
Thor

__
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Client certificate with Apache 1.3, TC 4 and mod_webapp on SuSE Linux 7.3

2002-01-29 Thread Thor Tall

I have the same problem with tomcat 4.0.1 and
mod_webapp and haven't been able to figure out how is
should work. I have looked in the mod_webapp code and
the SSL code seem to be in place. But I have not found
out what the problem is. 
Just a question do you get a null point back from your
call ?

Regards,
Thor
 
--- Markus Maeder [EMAIL PROTECTED] wrote:
 Hi!
 
 I was playing around with Tomcat 4.0.1 and couldn't
 get the client certificates
 from apache through mod_webapp. So I tried Tomcat
 4.0.2 b2 and the build from
 January 27. I even compiled a new mod_webapp
 (1.0.2-tc402).
 
 Then I tried ajp13 and mod_jk. This is working fine
 after I changed my code
 (working in Tomcat 3.2x) from
 
 String certAttribute =
 javax.servlet.request.X509Certificate;
 X509Certificate certificate =

(java.security.cert.X509Certificate)request.getAttribute(certAttribute);
 
 To version for Tomcat 4:
 String certAttribute =
 javax.servlet.request.X509Certificate;
 X509Certificate certificate[] =

(java.security.cert.X509Certificate[])request.getAttribute(certAttribute);
 
 As I think I missed something in the configuration
 of mod_webapp, I wonder, if
 somebody has a working configuration for getting
 client certificates with
 mod_webapp, apache 1.3 and mod_ssl. 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




X.509 user certificate in tomcat4

2002-01-21 Thread Thor Tall

Hi, 

I let an Apache server validate my users certificates
and I would now like to access the X.509 certicate in
my tomcat4 servlet.

I can access the servlet from my browser but I can not
get the certificate in the servlet. 

I think that I need to get the certificate like this:

java.security.cert.X509Certificate[] certs =
(java.security.cert.X509Certificate[])
  
request.getAttribute(javax.servlet.request.X509Certificate);


but it doesn't work as certs = null

I have tried both with and without scheme and secure
in the connector in the server.xml file:
== server.xml snip.
Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=1 scheme=https
secure=true/
==

Any help on this will be greatly appreciated as I have
already spend too much time on this.

Thanks,
Thor



__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




apache-webapp-tomcat4 and SSL

2002-01-18 Thread Thor Tall

Hi,

I have setup an Apache/1.3.22 with mod_webapp and
tomcat 4.0.1. (using webapp on port 8008) on a RedHat
7.2 system

I can access a servlet via https so that works fine.

I could now like to get the contents of the client
certificate used to connect to the apache server. 

As far as I can find out I should be able to read the
certificate in my servlet in the following way:

public void doGet(HttpServletRequest request,
  HttpServletResponse response)
  throws IOException, ServletException {

java.security.cert.X509Certificate[] certs =
(java.security.cert.X509Certificate[])
   
request.getAttribute(javax.servlet.request.X509Certificate);

   --- Here I should be able to use certs but certs
is null so the certificate is not available, so how
can I configure the apache/mod_webapp to parse the
information to the servlet?

Thanks,
Thor.


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




cgi-bin and tomcat4

2002-01-07 Thread Thor Tall

Hi,

I would like to be able to run a few old C cgi
programs together with my servlets, but I can not find
any documentation on how to configure a cgi-bin
directory under tomcat4.

Could you please point me to the doc. or tell me how I
can configure tomcat4 to handle cgi programs.

Thanks a lot,
Thor.


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]