Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error javax.jws.WebMethod is not available in profile 'compact2'

FeliceDS_65Oct 16 2018 — edited Oct 17 2018

Hi Scot Krause and others ... I need community support!!!

I developed a web service client (SOAP) in Oracle - Jedeveloper - MAF

starting from the wsdl. JDeveloper did the job for a good part and created both the proxy and the client

of the webservice in a correct manner and in line with other clients of the same webservice developed, for example, with NetBeans.

The problem I'm experiencing is that JDeveloper reports errors like:

"Error javax.jws.WebMethod is not available in profile 'compact2'"

on all the following imports:

import javax.jws.WebMethod;

import javax.jws.WebParam;

import javax.jws.WebResult;

import javax.jws.WebService;

import javax.xml.bind.annotation.XmlSeeAlso;

import javax.xml.ws.Action;

import javax.xml.ws.RequestWrapper;

import javax.xml.ws.ResponseWrapper;

I have verified that the above classes exist in the JDeveloper classpath (for example in D: \ Oracle \ Middleware \ Oracle_Home \ oracle_common \ jdk \ jre \ lib \ rt.jar)

however, the IDE reports this error and prevents it from continuing.

The IDE itself can easily recognize other classic imports (eg import java.util.List)

I am using (both on iOS and on Windows) the following tool:

Java(TM) Platform 1.8.0_131errorJDeveloper_1.pngclasspath_1.png

Oracle IDE 12.2.1.3.42.170820.0914

Versioning Support 12.2.1.3.42.170820.0914

Mobile Application Framework ver. 2.5.1.0.42.180529.1103

Is there anyone who had (and solved) this problem? While I make other attempts at a solution ... a suggestion would be very welcome.

thank you

PS: I also attach some clarification images

This post has been answered by Steven Davelaar-Oracle on Oct 16 2018
Jump to Answer
Comments
Post Details
Added on Oct 16 2018
2 comments
5,453 views