简体   繁体   中英

Axis2 webservice deployment issue with Websphere 8.5.5

I am facing a trouble with axis2 webservices annotations. My environment is : WAS 8.5.5 , AXIS2 1.7 .

MyApplication had 5 services which need to be deployed in WAS and the client will consume. But, after deploying, i am getting lot of error in SystemOut.log mentioned below. I am a new bud to both Axis and Websphere. Kindly share your thoughts and help me in finding a solution for the same. Please do let me know if u need ant files that need to look for more debug.

My main concern here is why i am getting null as below. Included in log below as well.

JAXWSDeployer I org.apache.axis2.jaxws.framework.JAXWSDeployerSupport deployClasses Deploying JAXWS annotated class abcdeDocServicesImpl as a service - 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.将Axis2 lib Jar路径添加到Websphere控制台类路径加载器共享库的位置2.将Axis2 lib Jar保留到WAS lib(/ usr / websphere / ....位置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM