Hi,
--- Anil <[EMAIL PROTECTED]> wrote:
> In our Project, we are using JBoss 2.2.1 and Tomcat 3.2.1. From
> this
> environment we have to access the https port of another Web Server.
> (iPlanet). We have successfully configured https in iPlanet and is
> able to access the same from an ordinary Java class. But when the
> same code snippet is moved to a bean/servlet in Tomcat& JBoss
> environment it is failing to recognise the https protocol. I tried
> calling the ordinary class(which was working as stand alone) from
> the
> Servlet. That also gave the same error. JSSE jar files are in the
> JBoss classpath.(lib\ext directory).
>
> The error messages we are getting are ..
>
> when the JSSE jars are in JBoss lib\ext only
>
> java.net.MalformedURLException: unknown protocol:https
>
> when the JSSE jars are in <jre> lib\ext also/only
>
> java.net.SocketException: SSL implementation not
> available
>
>
> It will be a great help if you can help us in solving this problem.
>
> Any info/ help will be appreciated.
>
>
> The code snippet related to SSL
> ----------------------------------------------------
>
> ***************
>
> System.setProperty
>
("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol")
> ;
> System.setProperty
> ("javax.net.ssl.trustStore","samplecacerts");
> Security.addProvider
> (new com.sun.net.ssl.internal.ssl.Provider());
>
> //appears these properties are not getting set !!!
> ***********
>
> theUrl = new URL("https://myserver:9003/");
>
> HttpsURLConnection con = null;
> con = (HttpsURLConnection)theUrl.openConnection();
>
> con.setAllowUserInteraction(true);
> con.setUseCaches(false);
> con.setRequestProperty("Un_Name","Un_Value");
>
> ----------------------------------------------------------------
>
Have you tried setting the properties on the jboss command line -
change run.bat/sh to set them then - also print them out too - to see
if they are set.
Its probably a class loader/System issue - although I did not think
System is affected by the classloader. You almost definitely need
the jsse jars in the jre libs - as you've seen.
HTH,
Chris
=====
Need somewhere to Live in London - http://freeflats.com
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user