Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
HttpsURLConnection, Tomcat 4.1.27, and jsse.jar

HttpsURLConnection, Tomcat 4.1.27, and jsse.jar

2003-10-14       - By Yuriy Stul

 Back
Reply:     1     2     3     4  


May be problem is that Tomcat 4.1.27 was compiled under Java 1.4... and
JSSE under Java 1.3?

Yuriy.
> -- --Original Message-- --
> From: Nathan Christiansen [mailto:Nathan_Christiansen@(protected)]
> Sent: Monday, October 13, 2003 7:32 PM
> To: Tomcat Users List
> Subject: RE: HttpsURLConnection, Tomcat 4.1.27, and jsse.jar
>
>
> I assume that you are trying from within your JSP page to
> connect to another host using HTTPS (i.e. programmatic https
> client connections).
>
> I have had similar problems.
>
> How I solved my problems was to use the Jakarta Commons
> HttpClient. It will handle the programmatic https client
> connection for you. All you have to do is work with the
> higher level GET and POST requests with optional parameters.
>
> For my purposes (getting a textual response from the remote
> host) it works extremely well.
>
> Of course, you do have to have the remote host's TLS/SSL
> public key in a keystore file pointed to by:
> System.setProperty("javax.net.ssl.trustStore", strKeyStoreFilename);
>
> You will also need to supply the password to the keystore by:
> System.setProperty("javax.net.ssl.trustStorePassword",
> strKsyStorePassword);
>
>
> -- Nathan Christiansen
>    Tahitian Noni International
>    http://www.tahitiannoni.com
>
>
> -- --Original Message-- --
> From: Lukas Bradley [mailto:lukas@(protected)]
> Sent: Sunday, October 12, 2003 11:35 PM
> To: tomcat-user@(protected)
> Subject: HttpsURLConnection, Tomcat 4.1.27, and jsse.jar
>
>
> I'm having a strange problem with Tomcat and
> javax.net.ssl.HttpsURLConnection Source code of javax.net.ssl.HttpsURLConnection  I'm using Tomcat 4.1.27,
> JDK 1.4.1_04,
> and the jsse.jar containing the javax.net.ssl and other fine classes.
>
> I've read about certain bugs located here
> http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERe
> fGuide.html#InstallProbs
> under the heading "Code Using HttpsURLConnection Class Throws
> ClassCastException in JSSE 1.0.x."  That is exactly the
> problem I am having.
>
> However, my command line tests work fine.  The JDK works fine
> by itself.
> There is no ClassCastException.  That means that the regular
> command-line
> version of the HttpsURLConnection is wonderful.  The JSSE classes are
> configured correctly using "java".
>
> However, if you attempt to hit the jsp located at
> http://www.dollars.com/URLTest.jsp, you'll get an error
> message with the
> aforementioned ClassCastException.  Tomcat and/or Catalina
> are not finding
> the classes, or are having a rough go with the configuration.
>
> Since the JSSE classes now ship with JDK 1.4, I've been
> having a hard time
> understanding why we are getting this error.  The only two
> ideas I have are
> (1) Tomcat is running off an old JDK (which I don't think is
> the case) or
> (2) there is some configuration error.
>
> Attempting to place the System.setProperty() "kludge-fix" in
> the JSP, it
> still doesn't work.
>
> Does anyone have any insight as to how the Tomcat/Catalina
> settings could
> have the JSSE classes misconfigured?
>
> Also read this:
> http://jce.iaik.tugraz.at/mailarchive/iaik-jce/msg02392.html
> And this:
> http://forum.java.sun.com/thread.jsp?forum=2&thread=254821
>
> But, as you will see in the JSP, it doesn't help.  I've also tried
> "javax.net.ssl" in the package property, and it doesn't work.
>
> Do any and all searches for "jsse tomcat ClassCastException"
> and you'll see
> stuff.  I think you might have to explicitly install the JSSE
> classes into
> the java \lib\ext directory, which still doesn't make sense,
> because they
> should be included in 1.4.1 anyway.
>
> Thanks for any and all help.
>
> Lukas
>
>
>
>
>
>
>
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.