'ADM8002 Failed to Publish Web Service to Registries' when Glassfish Publishes Web Services to UDDI v3.0 Remote Service Registry (Doc ID 1184799.1)

Last updated on APRIL 06, 2017

Applies to:

Oracle GlassFish Server - Version: 2.1 and later   [Release: 2.1 and later ]
Information in this document applies to any platform.

Symptoms

GlassFish version 2.1.1 cannot publish web services to UDDI v3.0 remote service registry.
Error below appear in server.log as it fails to recognize UDDI v3.0 xmlns and cannot process a UDDI v3.0 soap response.

|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.admin|
|ADM8002: Failed to publish Web Service to registries.
javax.xml.registry.JAXRException: JAXRException:Unexpected node type: null


|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|
|java.lang.reflect.UndeclaredThrowableException
at $Proxy138.publishToRegistry(Unknown Source)
at com.sun.enterprise.tools.admingui.handlers.WebServiceHandlers.publishToRegistry(WebServiceHandlers.java:814)
..
Caused by: java.lang.reflect.InvocationTargetException
... 55 more
Caused by: java.lang.RuntimeException: javax.xml.registry.JAXRException: JAXRException:Unexpected node type: null
... 68 more
Caused by: javax.xml.registry.JAXRException: JAXRException:Unexpected node type: null


|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.admin|
|ADM8002: Failed to publish Web Service to registries.
javax.xml.registry.JAXRException: JAXRException:javax.xml.bind.UnmarshalException: unexpected element (uri:"urn:uddi-org:v3..
Expected elements are <{urn:uddi-org:api_v2..
..
at com.sun.enterprise.admin.wsmgmt.registry.RegistryAccessObjectImpl.publishWSDL(RegistryAccessObjectImpl.java:379)
at com.sun.enterprise.admin.wsmgmt.registry.RegistryAccessObjectImpl.publish(RegistryAccessObjectImpl.java:206)
at com.sun.enterprise.admin.wsmgmt.WebServiceMgrBackEnd.publishToRegistry(WebServiceMgrBackEnd.java:643)
at com.sun.enterprise.management.ext.wsmgmt.WebServiceMgrImpl.publishToRegistry(WebServiceMgrImpl.java:183)
Caused by: javax.xml.registry.JAXRException: JAXRException:javax.xml.bind.UnmarshalException: unexpected element (uri:"urn:uddi-org:v3..
Expected elements are <{urn:uddi-org:api_v2..


Changes

If remote service registry is UDDI v3.0 then this problem will occur.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms