AEM 6.4 -> 6.5.6 : Apache felix framework 6.02 not resolving dependencies

Avatar

Avatar

sagar_verliani

Avatar

sagar_verliani

sagar_verliani

28-10-2020

Hi All,

 

In our upgrade project, We are unable to get header for javax Webservices called.

Seems like Apache felix framework bundle(5.6.1) was already providing that previously in 6.4

Now in 6.5, the same bundle is not having webservices related dependencies.

Do we have any documentation for this or any guidance available to resolve this.

 

We have added below dependencies in our core/pom.xml

<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
 
After adding this also we are getting following error in our project log:
20-10-28 07:59:47.472 ERROR [com.aem.project.core.service.impl.projectserviceimpl] WebServiceException {}
javax.xml.ws.WebServiceException: Provider com.sun.xml.internal.ws.spi.ProviderImpl not found

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

02-11-2020

Hi @sagar_verliani 

This issue not related to AEM. Issue seems to be in Webservices along with Java11. Please go through below like. It might help.

https://stackoverflow.com/questions/54032558/jdk-11-jax-ws-provider-com-sun-xml-internal-ws-spi-prov...

AG

Answers (9)

Answers (9)

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

01-11-2020

Hi @sagar_verliani 

Try adding below dependency.

<dependency>

    <groupId>com.sun.xml.ws</groupId>

    <artifactId>rt</artifactId>

    <version>2.3.1</version>

</dependency>

Hope this works!

AG

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

29-10-2020

Hi @sagar_verliani 

If you have a local AEM instance try to run in Java 8 and see.

AG

Avatar

Avatar

sagar_verliani

Avatar

sagar_verliani

sagar_verliani

29-10-2020

Hi All,

 

Our project POM is pointing to jdk 1.8 and AEM Server is running on jdk 11, do you think if this is an issue?

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

28-10-2020

Hi @sagar_verliani 

Try below two methods. Hope one of them will work.

  1. Add <type>pom</type>  to dependency jaxws-rt<dependency>
    <groupId>com.sun.xml.ws</groupId>
    <artifactId>jaxws-rt</artifactId>
    <version>2.3.1</version>
    <type>pom</type>
    </dependency>
  2. Or upgrade to version 2.3.3

        <dependency>
        <groupId>com.sun.xml.ws</groupId>
        <artifactId>jaxws-rt</artifactId>
        <version>2.3.3</version>
        </dependency>

AG

Avatar

Avatar

santhosh_kumark

Avatar

santhosh_kumark

santhosh_kumark

28-10-2020

Hi @sagar_verliani ,

 

Hope this helpx article help you in fixing this issue.

https://helpx.adobe.com/in/experience-manager/kb/jaxws-webservice-calls-not-working-aem-65.html

https://stackoverflow.com/questions/54032558/jdk-11-jax-ws-provider-com-sun-xml-internal-ws-spi-prov...

This issue is may be due to the fact that CFX packages have been removed from AEM and you have to install those externally.

To resolve the issue, you can install the "cfx-bundles-1.0.zip" package which provides the minimal set of jar files for the 2.3.0 release of CXF DOSGi

 

Regards,

Santosh

Avatar

Avatar

sagar_verliani

Avatar

sagar_verliani

sagar_verliani

04-11-2020

Hi All,

 

We are getting null when fetching values of soapMessage or soapEnvelope or soapHeader.

This was working earlier in 6.4.

Now in 6.5 the javax.xml.ws dependency which is present OOTB bundle (servicemix jaxb api) is updated to v2.2.0 as opposed to v2.1.0 in 6.4 present in felix framework bundle OOTB

Need more inputs to solve this

@Anudeep_Garnepudi @santhosh_kumark @kautuk_sahni