JAX-WS classes are slow for the first time when creating port and JAXB context from older version of WLS 10.3.6 (Doc ID 1623727.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

A JAX-WS web service client that uses a web servcie stub generated from the WSDL using clientgen.

The first call when ever server is started is taking ver long to create JAXBContext.

WLS 12.1.2 with  weblogic.jar files
====================================
Getting the service port the first time took: 96448 ms
Getting the service the second time took: 4 ms the second Time

In Older version like wls 10.3.6 the problem is not seen

WLS 10.3.6 with  weblogic.jar files
===================================
Getting the service port the first time took: 7318 ms
Getting the service the second time took: 4 ms the second Time


Changes

default jaxb providers is changed from glassfish to eclipse link from wls 12 release. you can always revert back to old by using below options.

But if you want to use default jaxb provider we need to apply a patch.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms