Axis2 error - java.lang.NoClassDefFoundError: org / apache / ws / commons / schema / XmlSchema

I am trying to create a simple web service using WSDL using Axis 2 (1.7.3) and tomcat server (V6.0) when creating a webservice client. I get this error, I tried everything, changing server versions to add or delete some jar files, but nothing works.

I added the XMLSchema core - 2.2.1 jar file to the lib folder and add it to the project build path. I also add the XMLSchema file to the server configuration folder, but nothing works for this. I am using jdk version 1.8.0. with lower versions it still does not work and I am working on Eclipse Neon. I don’t know what I am missing.

Below is my WSDL, which is done on the server:

<?xml version="1.0" encoding="UTF-8"?>

  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

  <wsdl:port binding="impl:OperatorClassSoapBinding" name="OperatorClass">

     <wsdlsoap:address location="http://localhost:8080/Testwebservice/services/OperatorClass"/>

  </wsdl:port>

I added an error image:

< , .

+4
4
  • AXIS 1.6.4 ( 1.7.4)
  • Tomcat 7
  • - 2.5
  • Axis 2 1.6.4 - Eclipse → → - → Axis 2
+1

xmlscema-core.jar .

maven,

<!-- https://mvnrepository.com/artifact/org.apache.ws.commons.schema/XmlSchema -->
<dependency>
    <groupId>org.apache.ws.commons.schema</groupId>
    <artifactId>XmlSchema</artifactId>
    <version>1.4.7</version>
</dependency>
0

. NoClassDefError - classpath . :

  • , .
  • - AXIS AXIS_LIB .
  • maven java/javac . : 2 maven
  • , eclipse SoapUI - . .

, .

0

:

https://yiingw.wordpress.com/2018/02/12/axis2-java-lang-noclassdeffounderror-org-apache-ws-commons-schema-utils-namespaceprefixlist/

: Axis2 1.7.x XmlSchema 2.2.x, Axis2 1.6.x, Eclipse XmlSchema -.

. xmlschema-core-2.2.1.jar $ AXIS2_HOME/lib Eclipse WebContent/WEB-INF/lib, -.

0

Source: https://habr.com/ru/post/1654858/


All Articles