Websphere 8.5.5的Axis2 Web服务部署问题

时间:2015-01-30 13:15:38

标签: java web-services websphere axis2 websphere-8

我遇到了关于axis2 webservices注释的问题。我的环境是:WAS 8.5.5,AXIS2 1.7。

MyApplication有5个服务需要在WAS中部署,客户端将使用这些服务。但是,在部署之后,我在下面提到的SystemOut.log中遇到了很多错误。我是Axis和Websphere的新成员。请分享您的想法,并帮助我找到相同的解决方案。如果您需要需要查找更多调试的ant文件,请告诉我。

我主要担心的是为什么我得到如下null。也包括在下面的日志中。

JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses将JAXWS带注释的类a.b.c.d.e.DocServicesImpl部署为服务 - nullDocServices

[1/30/15 3:55:14:983 PST] 00000001 OAuth20Provid I   CWOAU0001I: Initializing OAuth 20 providers.

 [1/30/15 3:55:15:155 PST] 00000040 CompositionUn A   WSVR0190I: Starting composition unit WebSphere:cuname=MyApplication in BLA WebSphere:blaname=MyApplication.

[1/30/15 3:55:15:483 PST] 00000040 ApplicationMg A   WSVR0200I: Starting application: MyApplication

[1/30/15 3:55:15:483 PST] 00000040 ApplicationMg A   WSVR0204I: Application: MyApplication  Application build level: Unknown

[1/30/15 3:55:17:311 PST] 00000040 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_81f191e4_15.01.30_03.55.17.1245101993067054092340.txt com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.buildServices 1362

[1/30/15 3:55:17:311 PST] 00000040 WSModuleDescr E   WSWS7027E: JAX-WS Service Descriptions could not be correctly built because of the following error: java.lang.AbstractMethodError: org/apache/neethi/AssertionBuilderFactory.registerBuilder(Ljavax/xml/namespace/QName;Lorg/apache/neethi/builders/AssertionBuilder;)V


[1/30/15 3:55:20:342 PST] 00000040 webcontainer  I com.ibm.ws.webcontainer.WSWebContainer initialize SRVE0161I: IBM WebSphere Application Server - Web Container.  Copyright IBM Corp. 1998-2012
[1/30/15 3:55:20:342 PST] 00000040 webcontainer  I com.ibm.ws.webcontainer.WSWebContainer initialize SRVE0162I: Servlet Specification Level: 3.0
[1/30/15 3:55:20:342 PST] 00000040 webcontainer  I com.ibm.ws.webcontainer.WSWebContainer initialize SRVE0163I: Supported JSP Specification Level: 2.2

[1/30/15 3:55:20:452 PST] 00000040 webapp        I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: MyApplication.war.

[1/30/15 3:55:20:733 PST] 00000040 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key default_host/myapplication

[1/30/15 3:55:37:780 PST] 00000040 AxisAdminServ W org.apache.axis2.transport.http.AxisAdminServlet init Web application uses org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to use org.apache.axis2.webapp.AxisAdminServlet instead

[1/30/15 3:55:37:811 PST] 00000040 ClusterBuilde I org.apache.axis2.deployment.ClusterBuilder buildCluster Clustering has been disabled

[1/30/15 3:55:38:749 PST] 00000040 JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses Deploying JAXWS annotated class a.b.c.d.e.AppServicesImpl as a service - nullAppServices

[1/30/15 3:55:39:077 PST] 00000040 JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses Deploying JAXWS annotated class a.b.c.d.e.DocServicesImpl as a service - nullDocServices

[1/30/15 3:55:39:342 PST] 00000040 ** JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses Deploying JAXWS annotated class a.b.c.d.e.LibServicesImpl as a service - nullLibServices

[1/30/15 3:55:39:811 PST] 00000040 JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses Deploying JAXWS annotated class a.b.c.d.e.QueueServicesImpl as a service - nullQueueServices

[1/30/15 3:55:40:014 PST] 00000040 JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses Deploying JAXWS annotated class a.b.c.d.e.SysServicesImpl as a service - nullSysServices

[1/30/15 3:55:40:311 PST] 00000040 SystemOut     O Could not identify the Annotation....
[1/30/15 3:55:40:311 PST] 00000040 SystemOut     O Could not identify the Annotation....
[1/30/15 3:55:40:452 PST] 00000040 ServiceDeploy E org.apache.axis2.deployment.ServiceDeployer deploy The DocServices service, which is not valid, caused The following error occurred during schema generation:      sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl incompatible with java.lang.Class                               org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl incompatible with java.lang.Class 

 Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl incompatible with java.lang.Class at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)  .. 43 more
 Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl incompatible with java.lang.Class
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaForType(DefaultSchemaGenerator.java:1062)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:383)
at                                   org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchem    a(DefaultSchemaGenerator.java:273)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:468)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)
... 43 more

1 个答案:

答案 0 :(得分:1)

1.Pls将Axis2 lib Jar路径添加到websphere控制台类路径加载器共享库位置 2.Keep Axis2 lib Jar到WAS lib(/ usr / websphere / .... location。