[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uddi4j-general
Subject:    RE: [Uddi4j-general] Questions about setting up HTTPS client to t
From:       Bin Xu <BXu () vitria ! com>
Date:       2001-09-11 17:16:31
[Download RAW message or body]

Hi Dave,

I am using WSTK-2.4 and the SOAP and UDDI4J come with it. I am able to run
FindBusinessExample now after using correct verion of jaxp.jar and also able
to compile SaveBusinessExample.java after installing JSSE1.0.2 and updating
CLASSPATH (see below) with ibmjsse.jar etc. But I still can not run the
SaveBusinessExample (see log below). I must have missed some configurations
somewhere.

Thanks,

--Bin

Here is the log:

D:\WS\wstk-2.4\uddi4j\samples>java -Djavax.net.debug=ssl,all
SaveBusinessExample

Get authtoken
keyStore is :
keyStore type is : jks
init keystore
init keymanager of type SunX509
default context init failed: java.security.PrivilegedActionException
<<java.security.NoSuchAlgorithm
Exception: Algorithm SunX509 not available>>
[SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: null;
targetException=java.lang
.IllegalArgumentException: Error opening socket: null]
        at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja
va:333)
        at org.apache.soap.messaging.Message.send(Message.java:123)
        at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1217)
        at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1187)
        at com.ibm.uddi.client.UDDIProxy.get_authToken(UDDIProxy.java:907)
        at SaveBusinessExample.run(SaveBusinessExample.java:82)
        at SaveBusinessExample.main(SaveBusinessExample.java:42)

D:\WS\wstk-2.4\uddi4j\samples>set CLA
CLASSPATH=.;D:\work\export\java;D:\jaxp-1.1\jaxp.jar;D:\WS\tomcat\lib\servle
t.jar;D:\xerces-1_4_2\xe
rces.jar;D:\WS\wstk-2.4\uddi4j\lib\uddi4j.jar;D:\WS\wstk-2.4\soap\lib\activa
tion.jar;D:\WS\wstk-2.4\
soap\lib\mail.jar;D:\WS\wstk-2.4\soap\lib\soap.jar;D:\WS\wstk-2.4\soap\lib\s
oap-sample.jar;D:\WS\jss
e\lib\jcert.jar;D:\WS\jsse\lib\jnet.jar;D:\WS\jsse\lib\jsse.jar;D:\WS\wstk-2
.4\lib\ibmjsse.jar;D:\WS
\wstk-2.4\lib\ibmjsse.jar;D:\WS\wstk-2.4\lib\ibmpkcs.jar;D:\WS\wstk-2.4\lib\
javapki.jar;D:\WS\wstk-2
.4\lib\ibmjceprovider.jar;D:\WS\wstk-2.4\lib\ibmjcefw.jar

-----Original Message-----
From: David Melgar [mailto:dmelgar@us.ibm.com]
Sent: Monday, September 10, 2001 7:29 PM
To: Bin Xu
Cc: 'uddi4j-general@www-124.ibm.com'
Subject: Re: [Uddi4j-general] Questions about setting up HTTPS client to
talk with IBM's Test U DDI site


1) Which version of SOAP are you using? The Apache SOAP 2.2 release works.
2) Where are you running the samples from? The samples shipped with UDDI4J
reference Sun JSSE. The samples packaged with the web services toolkit
reference IBM JSSE which is installed into the wstk-2.4\lib directory as
jsse.jar.
3) You do not need to create any local certificates on the client to
communicate with the registries using https.

David Melgar
Web Services Toolkit Development
Emerging Technologies
dmelgar@us.ibm.com


Bin Xu <BXu@vitria.com>@www-126.southbury.usf.ibm.com on 09/10/2001
07:12:13 PM

Sent by:  uddi4j-general-admin@www-126.southbury.usf.ibm.com


To:   "'uddi4j-general@www-124.ibm.com'"
      <uddi4j-general@www-126.southbury.usf.ibm.com>
cc:
Subject:  [Uddi4j-general] Questions about setting up HTTPS client to talk
      with IBM's Test U DDI site



Hi,

I am trying to run the UDDI4J sample code. I met serveral problems:

1) java FindBusinessExample =>
Exception in thread "main" java.lang.AbstractMethodError
        at org.apache.soap.util.xml.DOM2Writer.print(DOM2Writer.java:139)
        at
org.apache.soap.util.xml.DOM2Writer.serializeAsXML(DOM2Writer.java:98)
        at org.apache.soap.Utils.marshallNode(Utils.java:109)
        at org.apache.soap.Body.marshall(Body.java:162)
        at org.apache.soap.Envelope.marshall(Envelope.java:195)
        at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja

va:255)
        at org.apache.soap.messaging.Message.send(Message.java:123)
        at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1215)
        at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1187)
        at com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
        at FindBusinessExample.run(FindBusinessExample.java:62)
        at FindBusinessExample.main(FindBusinessExample.java:25)

I checked the doc and it seems that
org.apache.soap.util.xml.DOM2Writer.print is not a public method. Did
anyone
met this problem before?

2) javac SaveBusinessExample =>

>SaveBusinessExample.java:38: cannot resolve symbol
>    symbol  : class JSSEProvider
>    location: package jsse
>              java.security.Security.addProvider(new
com.ibm.jsse.JSSEProvider());

I installed JSSE1.0.2 from Sun, but where is IBM's JSSE package? I cannot
locate which jar.

3) In order to access IBM's Test UDDI Server with HTTPS, I have registered
the Test System and got id and password. Is it necessary to generate
Certificates for my client? If necessary, is there any doc to demo how
exception the general Apache SOAP SSL instructions?

Thanks,

Bin
_______________________________________________
Uddi4j-general mailing list
Uddi4j-general@www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/uddi4j-general


_______________________________________________
Uddi4j-general mailing list
Uddi4j-general@www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/uddi4j-general

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic