Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-87212

JDK11 - Missing javax.xml.ws dependency when compiling jaxws-osgi-bridge

    Details

      Description

      Steps to reproduce issue:

      1. Set JAVA_HOME to JDK 11
      2. Compile portal

      Expected result: Portal compiles successfully
      Actual result: jaxws-osgi-bridge fails to compile due to missing javax.xml.ws

           [exec] > Task :core:jaxws-osgi-bridge:compileJava
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:28: error: package javax.xml.ws does not exist
           [exec] import javax.xml.ws.Endpoint;
           [exec]                    ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:29: error: package javax.xml.ws does not exist
           [exec] import javax.xml.ws.EndpointReference;
           [exec]                    ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:30: error: package javax.xml.ws does not exist
           [exec] import javax.xml.ws.Service;
           [exec]                    ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:31: error: package javax.xml.ws does not exist
           [exec] import javax.xml.ws.WebServiceFeature;
           [exec]                    ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:32: error: package javax.xml.ws.spi does not exist
           [exec] import javax.xml.ws.spi.Invoker;
           [exec]                        ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:33: error: package javax.xml.ws.spi does not exist
           [exec] import javax.xml.ws.spi.ServiceDelegate;
           [exec]                        ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:34: error: package javax.xml.ws.wsaddressing does not exist
           [exec] import javax.xml.ws.wsaddressing.W3CEndpointReference;
           [exec]                                 ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:41: error: package javax.xml.ws.spi does not exist
           [exec] public class Provider extends javax.xml.ws.spi.Provider {
           [exec]                                               ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:53: error: cannot find symbol
           [exec] 	public Endpoint createAndPublishEndpoint(
           [exec] 	       ^
           [exec]   symbol:   class Endpoint
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:64: error: cannot find symbol
           [exec] 		WebServiceFeature... webServiceFeatures) {
           [exec] 		^
           [exec]   symbol:   class WebServiceFeature
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:62: error: cannot find symbol
           [exec] 	public Endpoint createAndPublishEndpoint(
           [exec] 	       ^
           [exec]   symbol:   class Endpoint
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:74: error: cannot find symbol
           [exec] 		String bindingId, Class<?> implementorClass, Invoker invoker,
           [exec] 		                                             ^
           [exec]   symbol:   class Invoker
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:75: error: cannot find symbol
           [exec] 		WebServiceFeature... webServiceFeatures) {
           [exec] 		^
           [exec]   symbol:   class WebServiceFeature
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:73: error: cannot find symbol
           [exec] 	public Endpoint createEndpoint(
           [exec] 	       ^
           [exec]   symbol:   class Endpoint
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:84: error: cannot find symbol
           [exec] 	public Endpoint createEndpoint(String bindingId, Object implementor) {
           [exec] 	       ^
           [exec]   symbol:   class Endpoint
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:93: error: cannot find symbol
           [exec] 		WebServiceFeature... webServiceFeatures) {
           [exec] 		^
           [exec]   symbol:   class WebServiceFeature
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:91: error: cannot find symbol
           [exec] 	public Endpoint createEndpoint(
           [exec] 	       ^
           [exec]   symbol:   class Endpoint
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:104: error: cannot find symbol
           [exec] 		Class<? extends Service> serviceClass) {
           [exec] 		                ^
           [exec]   symbol:   class Service
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:102: error: cannot find symbol
           [exec] 	public ServiceDelegate createServiceDelegate(
           [exec] 	       ^
           [exec]   symbol:   class ServiceDelegate
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:114: error: cannot find symbol
           [exec] 		URL wsdlURL, QName serviceQName, Class<? extends Service> serviceClass,
           [exec] 		                                                 ^
           [exec]   symbol:   class Service
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:115: error: cannot find symbol
           [exec] 		WebServiceFeature... webServiceFeatures) {
           [exec] 		^
           [exec]   symbol:   class WebServiceFeature
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:113: error: cannot find symbol
           [exec] 	public ServiceDelegate createServiceDelegate(
           [exec] 	       ^
           [exec]   symbol:   class ServiceDelegate
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:122: error: cannot find symbol
           [exec] 	public W3CEndpointReference createW3CEndpointReference(
           [exec] 	       ^
           [exec]   symbol:   class W3CEndpointReference
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:135: error: cannot find symbol
           [exec] 	public W3CEndpointReference createW3CEndpointReference(
           [exec] 	       ^
           [exec]   symbol:   class W3CEndpointReference
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:150: error: cannot find symbol
           [exec] 		EndpointReference endpointReference, Class<T> serviceEndpointInterface,
           [exec] 		^
           [exec]   symbol:   class EndpointReference
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:151: error: cannot find symbol
           [exec] 		WebServiceFeature... webServiceFeatures) {
           [exec] 		^
           [exec]   symbol:   class WebServiceFeature
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:160: error: cannot find symbol
           [exec] 	public EndpointReference readEndpointReference(Source source) {
           [exec] 	       ^
           [exec]   symbol:   class EndpointReference
           [exec]   location: class Provider
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:166: error: package javax.xml.ws.spi does not exist
           [exec] 	protected javax.xml.ws.spi.Provider getProvider() {
           [exec] 	                          ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:185: error: package javax.xml.ws.spi does not exist
           [exec] 		<javax.xml.ws.spi.Provider, javax.xml.ws.spi.Provider> _serviceTracker;
           [exec] 		                 ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:185: error: package javax.xml.ws.spi does not exist
           [exec] 		<javax.xml.ws.spi.Provider, javax.xml.ws.spi.Provider> _serviceTracker;
           [exec] 		                                            ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:47: error: package javax.xml.ws.spi does not exist
           [exec] 			javax.xml.ws.spi.Provider.class);
           [exec] 			                ^
           [exec] 
           [exec] > Task :apps:static:portal-configuration:portal-configuration-metatype-api:processResources
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:52: error: method does not override or implement a method from a supertype
           [exec] 
           [exec] > Task :core:jaxws-osgi-bridge:compileJava FAILED
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:56: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:61: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:66: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:72: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:77: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:83: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:85: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:90: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:95: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:101: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:106: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:112: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:121: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:127: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:134: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:141: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:148: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:153: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:159: error: method does not override or implement a method from a supertype
           [exec] 	@Override
           [exec] 	^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:161: error: package javax.xml.ws.spi does not exist
           [exec] 		javax.xml.ws.spi.Provider provider = getProvider();
           [exec] 		                ^
           [exec] D:\public\master\portal\modules\core\jaxws-osgi-bridge\src\main\java\com\liferay\jaxws\osgi\bridge\Provider.java:168: error: package javax.xml.ws.spi does not exist
           [exec] 			javax.xml.ws.spi.Provider provider = _serviceTracker.waitForService(
           [exec] 			                ^
           [exec] 53 errors
      

      Reproduced on:
      Portal master GIT ID: b9f0ccf6382d
      OpenJDK Java 11

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  22 weeks, 4 days ago

                  Packages

                  Version Package
                  7.2.0 GA1