通过网闸访问用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