WebService通过网闸访问出错 急~

pkjxp 2009-11-18 05:39:49
通过网闸访问用WebService出现以下错误:
因为WEB服务的端口是9080 网闸我已经开放了9080端口,而且也能打开WEB页面,但是WebServic就提示错误
但在不通过网闸访问的情况下测试WebService没有问题。
WebService都是通过Spring 2.5 + Axis ,Web服务器是Tomcat 6.0。

- Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@e80a59: display name [org.springframework.context.support.ClassPathXmlApplicationContext@e80a59]; startup date [Wed Nov 18 17:22:11 CST 2009]; root of context hierarchy
- Loading XML bean definitions from class path resource [WebService.xml]
- Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@e80a59]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1617189
- Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1617189: defining beans [czjjwfxtService,WebServiceTest]; root of factory hierarchy
- Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1617189: defining beans [czjjwfxtService,WebServiceTest]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'czjjwfxtService' defined in class path resource [WebService.xml]: Invocation of init method failed; nested exception is org.springframework.remoting.RemoteLookupFailureException: Failed to initialize service for JAX-RPC port [{http://172.31.1.172:9080/services/VehAccess}VehAccess]; nested exception is javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://172.31.1.172:9080/services/VehAccess}VehAccessService
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1260)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:394)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:123)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at cn.gov.czjxj.test.Test4.main(Test4.java:15)
Caused by: org.springframework.remoting.RemoteLookupFailureException: Failed to initialize service for JAX-RPC port [{http://172.31.1.172:9080/services/VehAccess}VehAccess]; nested exception is javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://172.31.1.172:9080/services/VehAccess}VehAccessService
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.prepare(JaxRpcPortClientInterceptor.java:433)
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.afterPropertiesSet(JaxRpcPortClientInterceptor.java:355)
at org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean.afterPropertiesSet(JaxRpcPortProxyFactoryBean.java:70)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257)
... 14 more
Caused by: javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://172.31.1.172:9080/services/VehAccess}VehAccessService
at org.apache.axis.client.Service.initService(Service.java:250)
at org.apache.axis.client.Service.<init>(Service.java:165)
at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)
at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createService(LocalJaxRpcServiceFactory.java:295)
at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createJaxRpcService(LocalJaxRpcServiceFactory.java:231)
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.prepare(JaxRpcPortClientInterceptor.java:383)
... 18 more
Caused by: javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://172.31.1.172:9080/services/VehAccess}VehAccessService
at org.apache.axis.client.Service.initService(Service.java:296)
at org.apache.axis.client.Service.initService(Service.java:248)
... 23 more
...全文
560 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
0755 2011-05-18
  • 打赏
  • 举报
回复
我遇到同样的问题,通过网闸访问外网webservice,通过IE打开webservice,WSDL能出来,但程序就是获取不到数据,没有网闸的环境程序一切正常,请高人指点。。。。
kaleon 2009-11-18
  • 打赏
  • 举报
回复
在客户端 直接通过浏览器 能够获取到wsdl的定义吗?
WS没有使用其他的端口啊
pkjxp 2009-11-18
  • 打赏
  • 举报
回复
是不是WebService还使用了什么端口?

67,515

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧