开发者

InaccessibleWSDLException in my log files but everything works fine. What's wrong?

开发者 https://www.devze.com 2023-04-01 08:35 出处:网络
I\'m deploying a web application which accesses some remote web services via jax-ws in a WebLogic container. Befor开发者_JAVA技巧e a web service call I see theese messages on WebLogic\'s console

I'm deploying a web application which accesses some remote web services via jax-ws in a WebLogic container. Befor开发者_JAVA技巧e a web service call I see theese messages on WebLogic's console

Aug 30, 2011 6:48:21 PM weblogic.wsee.jaxws.framework.policy.advertisementimpl.AdvertisementHelperImplregisterExtension WARNING: Registering oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry extension failed; java.lang.ClassNotFoundException: oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry
Aug 30, 2011 6:48:21 PM weblogic.wsee.jaxws.spi.WLSServiceDelegate addWsdlDefinitionFeature SEVERE: Failed to create WsdlDefinitionFeature for wsdl location: http://192.168.192.80:19100/acme/ws/FooBarService?wsdl, error: com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException, message: 2 counts of InaccessibleWSDLException.

which makes me think there's an issue with the webservice client code, but the webservice works fine despite the errors. I'm creating the webservice client with this code

FooBarService service = new FooBarService(
       new URL("http://192.168.192.80:19100/acme/ws/FooBarService?wsdl"), 
       new QName("http://www.acme.com/acmews", "FooBarService"));
FooBarServiceSoap port = service.getFooBarServiceSoap();

What do those error messages mean and should I worry about them?


Create the folder classes inside WEB-INF, so create the folder META-INF inside classes. The struture will be: WEB-INF/classes/META-INF.

Put the file jax-ws-catalog.xml into META-INF.

Put the file file.wsdl into META-INF.

The file jax-ws-catalog.xml must contain:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"><system systemId="http://localhost/wsdl/file.wsdl" uri="file.wsdl"/></catalog>

Now, it's you must change the address to http://localhost/wsdl/file.wsdl in your service class.

When the system look for the wsdl at http://localhost/wsdl/file.wsdl, it will be redirected to local file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号