IBM Support

PH22765: WSWS7054E ERROR DURING WSDL GENERATION DUE TO CLASSNOTFOUNDEXCEPTION ON JAVAX.VALIDATION.CONSTRAINTVIOLATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following exception is generated during the deployment of
    the web service application:
    
    [x/xx/xx xx:xx:xx:xxx GMT]
    000000a8 WSModuleDescr E WSWS7027E: JAX-WS Service Descriptions
    could not be correctly built because of the following error:
    javax.xml.ws.WebServiceException: WSWS7054E: The Web Services
    Description Language (WSDL) file could not be generated for the
    com.xxx.xxx.ws.TestWS Web service implementation class because
    of the following error: java.lang.NoClassDefFoundError:
    javax.validation.ConstraintViolation
     at com.ibm.ws.websvcs.wsdl
    .WASWSDLGenerator.generateWsdl(WASWSDLGenerator.java:299)
     at or
    g.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.ge
    nerateWSDL(EndpointDescriptionImpl.java:2102)
     at org.apache.axi
    s2.jaxws.description.impl.EndpointDescriptionImpl.<init>(Endpoin
    tDescriptionImpl.java:452)
     at org.apache.axis2.jaxws.descriptio
    n.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java
    :401)
     at org.apache.axis2.jaxws.description.impl.ServiceDescrip
    tionImpl.<init>(ServiceDescriptionImpl.java:297)
     at org.apache.
    axis2.jaxws.description.impl.DescriptionFactoryImpl.createServic
    eDescriptionFromDBCMap(DescriptionFactoryImpl.java:277)
    
    ....
    Caused by: java.lang.ClassNotFoundException:
    javax.validation.ConstraintViolation
     at
    java.net.URLClassLoader.findClass(URLClassLoader.java:609)
     at
    java.lang.ClassLoader.loadClassHelper(ClassLoader.java:926)
     at
    java.lang.ClassLoader.loadClass(ClassLoader.java:871)
     at
    java.lang.ClassLoader.loadClass(ClassLoader.java:854)
     at
    java.lang.Class.getDeclaredMethodsImpl(Native Method)
     ... 71
    more
    

Local fix

  • Problem can be workarounded by adding the following JVM
    argument to the process which is generating the wsdl:
    
     -Dcom.ib
    m.websphere.webservices.WSDL_Generation_Extra_ClassPath=<WAS_Ins
    tall_Dir>/plugins/javax.j2ee.validation.jar
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server users of   *
    *                  JAX-WS web service applications             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Exception: WSWS7054E is thrown when     *
    *                      deploying a JAX-WS web service          *
    *                      application                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When deploying a JAX-WS web service application without a WSDL
    packaged, if the application uses a Java validation API in its
    web service implementation, the following error will be
    reported:
    WSWS7027E: JAX-WS Service Descriptions could not be correctly
    built because of the following error:
    javax.xml.ws.WebServiceException: WSWS7054E: The Web Services
    Description Language (WSDL) file could not be generated for
    the example.sampleService Web service implementation class
    because of the following error:
    java.lang.NoClassDefFoundError:
    javax.validation.ConstraintViolation
    

Problem conclusion

  • When deploying a JAX-WS web service application which uses the
    Java Validation API, the JAX-WS runtime failed to generate the
    WSDL file because there was no Java Validation library in the
    classpath.
    
    The JAX-WS runtime is changed to include the necessary Java
    Validation library in the classpath while generating a WSDL
    file for the web service application.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.18 and 9.0.5.5. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    http://www.ibm.com/support/docview.wss?uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH22765

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-02-27

  • Closed date

    2020-06-11

  • Last modified date

    2020-06-11

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
01 November 2021