我的日志文件中有 InaccessibleWSDLException 但一切正常。怎么了?
我正在部署一个 Web 应用程序,该应用程序通过 WebLogic 容器中的 jax-ws 访问一些远程 Web 服务。在调用 Web 服务之前,我在 WebLogic 控制台上看到这些消息,
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.
这让我认为 Web 服务客户端代码存在问题,但尽管存在错误,但 Web 服务工作正常。我正在使用此代码创建 Web 服务客户端
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();
这些错误消息意味着什么?我应该担心它们吗?
I'm deploying a web application which accesses some remote web services via jax-ws in a WebLogic container. Before 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在WEB-INF中创建文件夹classes,因此在classes中创建文件夹META-INF。
结构为:WEB-INF/classes/META-INF。
将文件 jax-ws-catalog.xml 放入 META-INF 中。
将文件 file.wsdl 放入 META-INF 中。
文件 jax-ws-catalog.xml 必须包含:
现在,您必须将地址更改为 http://localhost /wsdl/file.wsdl 在您的服务类中。
当系统在 http://localhost/wsdl/file.wsdl 查找 wsdl 时,它将被重定向到本地文件。
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:
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.