Bug 780712 (SOA-3164)

Summary: Juddi client cannot retrieve services with JAXWSTransport
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Len DiMaggio <ldimaggi>
Component: jUDDI - within SOAAssignee: tcunning
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.2.0dev2CC: kevin.conner, tcunning
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3164
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
5.2 Dev2 build (with jUDDI 3.1.0)
Last Closed: 2011-11-15 18:21:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
simple-publish.zip
none
simple_publish-fixed.zip none

Description Len DiMaggio 2011-07-12 23:41:36 UTC
Steps to Reproduce: Run the jUDDI sample app - see attached .zip file.

project_key: SOA

The problem first reported in https://issues.jboss.org/browse/SOA-2425 and resolved for 5.1 GA is back in 5.2 Dev2.


org.apache.juddi.v3.client.transport.TransportException: {urn:uddi-org:v3_service}UDDI_Security_Port is not a valid service. Valid services are: {urn:uddi-org:v3_service}UDDISecurityService
publish
	at org.apache.juddi.v3.client.transport.JAXWSTransport.getUDDISecurityService(JAXWSTransport.java:104)
	at org.apache.juddi.v3.client.transport.Transport.getUDDISecurityService(Transport.java:43)
	at org.apache.juddi.example.publish.SimplePublish.<init>(SimplePublish.java:43)
	at org.apache.juddi.example.publish.SimplePublish.main(SimplePublish.java:122)
Caused by: javax.xml.ws.WebServiceException: {urn:uddi-org:v3_service}UDDI_Security_Port is not a valid service. Valid services are: {urn:uddi-org:v3_service}UDDISecurityService
	at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:230)
	at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:175)
	at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
	at javax.xml.ws.Service.<init>(Service.java:76)
	at javax.xml.ws.Service.create(Service.java:700)
	at org.apache.juddi.v3.client.transport.JAXWSTransport.getUDDISecurityService(JAXWSTransport.java:101)
	... 3 more
java.lang.NullPointerException
	at org.apache.juddi.example.publish.SimplePublish.publish(SimplePublish.java:62)
	at org.apache.juddi.example.publish.SimplePublish.main(SimplePublish.java:123)

Comment 1 Len DiMaggio 2011-07-12 23:41:56 UTC
Attachment: Added: simple-publish.zip


Comment 2 Len DiMaggio 2011-07-12 23:42:22 UTC
Link: Added: This issue is related to SOA-2425


Comment 3 Kevin Conner 2011-07-13 08:49:07 UTC
This is different from SOA-2425 as we are now using the jUDDI webservice endpoints and not the ESB provided ones.  It looks like we may have to reintroduce our endpoints.


Comment 4 tcunning 2011-07-14 15:25:11 UTC
Attachment: Added: simple_publish-fixed.zip


Comment 5 tcunning 2011-07-14 15:27:24 UTC
Works on dev2.     Two changes : 

- in the pom.xml, change the juddi version from 3.0.4 to 3.1.0
- in the uddi.xml, change the endpoints to match what jbossws reports (for example, http://127.0.0.1:8080/juddiv3/services/inquiry rather than http://127.0.0.1:8080/juddiv3/services/inquiry?wsdl)

I also the maven exec plugin into the test to make it easier to run (mvn exec:exec).

Comment 6 tcunning 2011-07-14 15:28:38 UTC
The fixes above went into the simple_publish test (uploaded a simple_publish-fixed.zip with the changes).