IBM Support

How to disable JAX-WS Web Service cache

Troubleshooting


Problem

WebSphere Knowledge Center doesn't provide information on how to disable Web Service cache generation for JAX-WS based implementation generated during deployment of Web Service applications.

Symptom

There can be multiple symptoms of the issue which can contribute to the incorrect generation of web service cache during deployment, For example

1) Following error
***********
java.lang.NullPointerException
at
com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSDLGenerator.java:238)

java.lang.NullPointerException


at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.reportAvailableServices(WebServicesServlet.java:955)
***************

2) After deployment of Web Service application request fails with 404 error or
javax.servlet.UnavailableException: SRVE0201E: Servlet [com.xxx.services.cccc.xxxxxxx2WS]: not a servlet class


3) Modules fails to start with WSWS3142E: Error: Could not find Web services engine.

Cause

Incorrect generation of Web Service cache during deployment

Resolving The Problem

Use below JVM custom property as work around under critical situations or as advised by IBM support

Create a JVM custom property with following name / value pair

Name: WSFP_DISABLE_CACHE

Value: true

Refer below URL on how set JVM custom property
Java virtual machine custom properties
http://www-01.ibm.com/support/knowledgecenter/SSAW57_7.0.0/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/xrun_jvm.html?cp=SSAW57_7.0.0%2F3-16-5-448

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Services (for example: SOAP or UDDI or WSGW or WSIF)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF013","label":"Inspur K-UX"},{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5;8.5;8.0;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21688167