You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by GUEZZEN Abdel <gu...@gmail.com> on 2008/01/08 16:24:40 UTC

Connection problem with Juddi ? SOAPHTTPConnection

Hello,

I followed this tutorial to install Juddi:
http://svn.apache.org/viewvc/webservices/juddi/trunk/docs/Getting-Started.pdf?revision=547750


I have any error in the Juddi Happiness Page
(except :

*Looking for*: javax.xml.parsers.SAXParserFactory
+Found in an unknown location
)

but when i want to access to the publish page
http://myserv:8080/juddi/<http://myserv:8080/juddi/inquiry>publish
or http://myserv:8080/juddi/inquiry i have a HTTP 405 error (*Use of the
HTTP request method 'GET' is not allowed by UDDI specification.).
*
However i can save service, find_business, get_authtoken ... with the Juddi
console.


More over when i want to access with eclipse and the uddi4j api i have a
other error :

The code :

public static void main(String[] args) {
  try {
    UDDIProxy proxy = new UDDIProxy();
    proxy.setPublishURL("http://myserv:8080/juddi/publish");
    System.out.println("Getting authtoken");
    // Pass in userID and password registered at the UDDI site
    AuthToken token = proxy.get_authToken("juddi","");     >> ERROR
    System.out.println("Returned authToken:" + token.getAuthInfoString());

    // Now get the information registered for this publisher.
    RegisteredInfo ri = proxy.get_registeredInfo(token.getAuthInfoString());

    System.out.println("\n\nUDDI Operator: " + ri.getOperator());
  }
  catch (UDDIException e) {
       System.out.println("UDDIException : " + e.getMessage());
  }

  catch (MalformedURLException e) {
       System.out.println("MalformedURLException : " + e.getMessage());
  }

  catch (TransportException e) {
       System.out.println("TransportException : " + e.getMessage());
  }

Error report :
Getting authtoken 2
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.soap.transport.http
.SOAPHTTPConnection.setProxyUserName(Ljava/lang/String;)V
    at org.uddi4j.transport.ApacheSOAPTransport.setConnection (
ApacheSOAPTransport.java:112)
    at org.uddi4j.transport.ApacheSOAPTransport.send(
ApacheSOAPTransport.java:55)
    at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
    at org.uddi4j.client.UDDIProxy.send (UDDIProxy.java:1942)
    at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
    at Test.main(Test.java:28)


i use axis2, tomcat 5.5.25, juddi 0.9 rc4 and mysql 5 , jdk 1.5 or 1.6

Thanks for you answers,

Re: Connection problem with Juddi ? SOAPHTTPConnection

Posted by Kurt T Stam <ks...@apache.org>.
rc4 (and even rc5) only supported axis1. Jeff has been working on

https://issues.apache.org/jira/browse/JUDDI-110 and
https://issues.apache.org/jira/browse/JUDDI-109

and I think things on the trunk are working now, however we still need
to go through one final
round of testing before we can close the issues. So maybe you can
download the trunk and
use the maven build and give it a try? It would give us another data point.

Thx,

--Kurt




Marcos Vinícius wrote:
> Best joyce...I decided to make my own UDDI v2 protocol to comunicate
> with jUDDI.
>
> On 1/8/08, *GUEZZEN Abdel* <guezzen@gmail.com
> <ma...@gmail.com>> wrote:
>
>     Hello,
>
>     I followed this tutorial to install Juddi:
>     http://svn.apache.org/viewvc/webservices/juddi/trunk/docs/Getting-Started.pdf?revision=547750
>     <http://svn.apache.org/viewvc/webservices/juddi/trunk/docs/Getting-Started.pdf?revision=547750>
>
>     I have any error in the Juddi Happiness Page
>     (except :
>
>     *Looking for*: javax.xml.parsers.SAXParserFactory
>
>     +Found in an unknown location
>     )
>
>     but when i want to access to the publish page
>     http://myserv:8080/juddi/
>     <http://myserv:8080/juddi/inquiry>publish or
>     http://myserv:8080/juddi/inquiry i have a HTTP 405 error ( _Use of
>     the HTTP request method 'GET' is not allowed by UDDI specification.).
>     _
>     However i can save service, find_business, get_authtoken ... with
>     the Juddi console.
>
>
>     More over when i want to access with eclipse and the uddi4j api i
>     have a other error :
>
>     The code :
>
>     public static void main(String[] args) {
>       try {
>         UDDIProxy proxy = new UDDIProxy();
>         proxy.setPublishURL(" http://myserv:8080/juddi/publish");
>         System.out.println("Getting authtoken");
>         // Pass in userID and password registered at the UDDI site
>         AuthToken token = proxy.get_authToken("juddi","");     >> ERROR 
>         System.out.println("Returned authToken:" +
>     token.getAuthInfoString());
>
>         // Now get the information registered for this publisher.
>         RegisteredInfo ri =
>     proxy.get_registeredInfo(token.getAuthInfoString());
>         System.out.println("\n\nUDDI Operator: " + ri.getOperator());
>       }
>       catch (UDDIException e) {
>            System.out.println("UDDIException : " + e.getMessage());
>       }
>       
>       catch (MalformedURLException e) {
>            System.out.println("MalformedURLException : " +
>     e.getMessage());
>       }
>       
>       catch (TransportException e) {
>             System.out.println("TransportException : " + e.getMessage());
>       }
>
>     Error report :
>     Getting authtoken 2
>     Exception in thread "main" java.lang.NoSuchMethodError:
>     org.apache.soap.transport.http
>     .SOAPHTTPConnection.setProxyUserName(Ljava/lang/String;)V
>         at org.uddi4j.transport.ApacheSOAPTransport.setConnection
>     (ApacheSOAPTransport.java:112)
>         at
>     org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java
>     :55)
>         at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
>         at org.uddi4j.client.UDDIProxy.send (UDDIProxy.java:1942)
>         at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
>         at Test.main(Test.java:28)
>
>
>     i use axis2, tomcat 5.5.25, juddi 0.9 rc4 and mysql 5 , jdk 1.5 or 1.6
>
>     Thanks for you answers,
>
>      
>
>


-- 
Kurt T Stam
kstam@apache.org

callto://kurtstam
c. +1 978.471.9213
f. +1 432.224.0461


Re: Connection problem with Juddi ? SOAPHTTPConnection

Posted by Marcos Vinícius <ma...@digitalassets.com.br>.
Best joyce...I decided to make my own UDDI v2 protocol to comunicate with
jUDDI.

On 1/8/08, GUEZZEN Abdel <gu...@gmail.com> wrote:
>
> Hello,
>
> I followed this tutorial to install Juddi:
> http://svn.apache.org/viewvc/webservices/juddi/trunk/docs/Getting-Started.pdf?revision=547750
>
>
> I have any error in the Juddi Happiness Page
> (except :
>
> *Looking for*: javax.xml.parsers.SAXParserFactory
> +Found in an unknown location
> )
>
> but when i want to access to the publish page http://myserv:8080/juddi/<http://myserv:8080/juddi/inquiry>publish
> or http://myserv:8080/juddi/inquiry i have a HTTP 405 error (*Use of the
> HTTP request method 'GET' is not allowed by UDDI specification.).
> *
> However i can save service, find_business, get_authtoken ... with the
> Juddi console.
>
>
> More over when i want to access with eclipse and the uddi4j api i have a
> other error :
>
> The code :
>
> public static void main(String[] args) {
>   try {
>     UDDIProxy proxy = new UDDIProxy();
>     proxy.setPublishURL("http://myserv:8080/juddi/publish");
>     System.out.println("Getting authtoken");
>     // Pass in userID and password registered at the UDDI site
>     AuthToken token = proxy.get_authToken("juddi","");     >> ERROR
>     System.out.println("Returned authToken:" + token.getAuthInfoString());
>
>
>     // Now get the information registered for this publisher.
>     RegisteredInfo ri = proxy.get_registeredInfo(token.getAuthInfoString());
>
>     System.out.println("\n\nUDDI Operator: " + ri.getOperator());
>   }
>   catch (UDDIException e) {
>        System.out.println("UDDIException : " + e.getMessage());
>   }
>
>   catch (MalformedURLException e) {
>        System.out.println("MalformedURLException : " + e.getMessage());
>   }
>
>   catch (TransportException e) {
>        System.out.println("TransportException : " + e.getMessage());
>   }
>
> Error report :
> Getting authtoken 2
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.soap.transport.http
> .SOAPHTTPConnection.setProxyUserName(Ljava/lang/String;)V
>     at org.uddi4j.transport.ApacheSOAPTransport.setConnection (
> ApacheSOAPTransport.java:112)
>     at org.uddi4j.transport.ApacheSOAPTransport.send(
> ApacheSOAPTransport.java:55)
>     at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
>     at org.uddi4j.client.UDDIProxy.send (UDDIProxy.java:1942)
>     at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
>     at Test.main(Test.java:28)
>
>
> i use axis2, tomcat 5.5.25, juddi 0.9 rc4 and mysql 5 , jdk 1.5 or 1.6
>
> Thanks for you answers,
>
>
>

Re: Connection problem with Juddi ? SOAPHTTPConnection

Posted by Kurt T Stam <ks...@apache.org>.
Also, you can't use jdk1.6 yet. We are in the process of sorting out our
build for that too:

https://issues.apache.org/jira/browse/JUDDI-100

--Kurt

GUEZZEN Abdel wrote:
> Hello,
>
> I followed this tutorial to install Juddi:
> http://svn.apache.org/viewvc/webservices/juddi/trunk/docs/Getting-Started.pdf?revision=547750
> <http://svn.apache.org/viewvc/webservices/juddi/trunk/docs/Getting-Started.pdf?revision=547750>
>
> I have any error in the Juddi Happiness Page
> (except :
> *Looking for*: javax.xml.parsers.SAXParserFactory
> +Found in an unknown location
> )
> but when i want to access to the publish page
> http://myserv:8080/juddi/ <http://myserv:8080/juddi/inquiry>publish or
> http://myserv:8080/juddi/inquiry i have a HTTP 405 error (_Use of the
> HTTP request method 'GET' is not allowed by UDDI specification.).
> _
> However i can save service, find_business, get_authtoken ... with the
> Juddi console.
>
>
> More over when i want to access with eclipse and the uddi4j api i have
> a other error :
>
> The code :
>
> public static void main(String[] args) {
>   try {
>     UDDIProxy proxy = new UDDIProxy();
>     proxy.setPublishURL("http://myserv:8080/juddi/publish");
>     System.out.println("Getting authtoken");
>     // Pass in userID and password registered at the UDDI site
>     AuthToken token = proxy.get_authToken("juddi","");     >> ERROR 
>     System.out.println("Returned authToken:" +
> token.getAuthInfoString());
>
>     // Now get the information registered for this publisher.
>     RegisteredInfo ri =
> proxy.get_registeredInfo(token.getAuthInfoString());
>     System.out.println("\n\nUDDI Operator: " + ri.getOperator());
>   }
>   catch (UDDIException e) {
>        System.out.println("UDDIException : " + e.getMessage());
>   }
>   
>   catch (MalformedURLException e) {
>        System.out.println("MalformedURLException : " + e.getMessage());
>   }
>   
>   catch (TransportException e) {
>        System.out.println("TransportException : " + e.getMessage());
>   }
>
> Error report :
> Getting authtoken 2
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.soap.transport.http
> .SOAPHTTPConnection.setProxyUserName(Ljava/lang/String;)V
>     at org.uddi4j.transport.ApacheSOAPTransport.setConnection
> (ApacheSOAPTransport.java:112)
>     at
> org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:55)
>     at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
>     at org.uddi4j.client.UDDIProxy.send (UDDIProxy.java:1942)
>     at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
>     at Test.main(Test.java:28)
>
>
> i use axis2, tomcat 5.5.25, juddi 0.9 rc4 and mysql 5 , jdk 1.5 or 1.6
>
> Thanks for you answers,
>