axis2实现Webservice,启动tomcat成功,访问wsdl时报错..
jdk 1.6 + tomcat 6.0 + axis2 1.5.5 的环境,发布到 websphere 8.0 上可以访问,一切正常
我在本地启动tomcat正常,访问wsdl时报错。报错内容是:
信息: Server startup in 32347 ms
2014-10-15 09:44:29.122 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: addressing-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/addressing-1.5.5.mar
2014-10-15 09:44:29.248 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: jaxws-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/axis2-jaxws-mar-1.5.5.mar
2014-10-15 09:44:29.388 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: metadataExchange-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/mex-1.5.5.mar
2014-10-15 09:44:29.419 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: mtompolicy-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/mtompolicy-1.5.5.mar
2014-10-15 09:44:29.450 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: ping-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/ping-1.5.5.mar
2014-10-15 09:44:29.482 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: script-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/scripting-1.5.5.mar
2014-10-15 09:44:29.497 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: soapmonitor-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/soapmonitor-1.5.5.mar
2014-10-15 09:44:29.622 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: messageModule - file:/D:/workspace/EBWS/web/WEB-INF/classes/
2014-10-15 09:44:31.775 INFO http-8080-1 [org.apache.axis2.deployment.ServiceDeployer] - The EBService service, which is not valid, caused java.lang.ClassCastException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:131)
at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:661)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:567)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:452)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:827)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
2014-10-15 09:44:31.775 INFO http-8080-1 [org.apache.axis2.deployment.DeploymentEngine] - org.apache.axis2.deployment.DeploymentException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
2014-10-15 09:44:31.823 WARN http-8080-1 [org.apache.axis2.transport.http.AxisServlet] - No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!
请有经验的朋友帮忙解答下。谢谢~
我在本地启动tomcat正常,访问wsdl时报错。报错内容是:
信息: Server startup in 32347 ms
2014-10-15 09:44:29.122 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: addressing-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/addressing-1.5.5.mar
2014-10-15 09:44:29.248 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: jaxws-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/axis2-jaxws-mar-1.5.5.mar
2014-10-15 09:44:29.388 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: metadataExchange-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/mex-1.5.5.mar
2014-10-15 09:44:29.419 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: mtompolicy-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/mtompolicy-1.5.5.mar
2014-10-15 09:44:29.450 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: ping-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/ping-1.5.5.mar
2014-10-15 09:44:29.482 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: script-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/scripting-1.5.5.mar
2014-10-15 09:44:29.497 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: soapmonitor-1.5.5 - file:/D:/workspace/EBWS/web/WEB-INF/modules/soapmonitor-1.5.5.mar
2014-10-15 09:44:29.622 INFO http-8080-1 [org.apache.axis2.deployment.ModuleDeployer] - Deploying module: messageModule - file:/D:/workspace/EBWS/web/WEB-INF/classes/
2014-10-15 09:44:31.775 INFO http-8080-1 [org.apache.axis2.deployment.ServiceDeployer] - The EBService service, which is not valid, caused java.lang.ClassCastException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:131)
at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:661)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:567)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:452)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:827)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
2014-10-15 09:44:31.775 INFO http-8080-1 [org.apache.axis2.deployment.DeploymentEngine] - org.apache.axis2.deployment.DeploymentException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
2014-10-15 09:44:31.823 WARN http-8080-1 [org.apache.axis2.transport.http.AxisServlet] - No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!
请有经验的朋友帮忙解答下。谢谢~
...全文
相关推荐
eclipse+tomcat+axis下创建WebService
接下来,为了使 WebService 可供外部访问,我们需要编辑 Tomcat 的 `server.xml` 文件,添加一个新的 `<Context>` 元素,指定 WebService 的路径和部署位置
Axis2发布以及调用webservice具体实例
Axis2 在 Tomcat 6.0 上部署了一个简单的 WebService,并实现了客户端的调用。
webservice+axis2+myeclipse+tomcat
确保 Tomcat 正常启动,并且 Axis2 的库文件已添加到项目的类路径中。2. WSDL 文件是 WebService 的接口描述,必须正确无误。3.
axis2实现webservice
- **验证安装**:启动Tomcat服务后,访问`http://localhost:8080/axis2/`,如果能看到Axis2的管理界面,则表示安装成功。
Eclipse + Axis2发布WebService
测试客户端程序时,确保Tomcat服务器已经启动并且Web服务正在运行。通过执行客户端程序并检查控制台输出,如图所示,如果输出与预期相符,那么测试即为成功。


Web 开发
