Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26514

Fix JDK11 compilation errors in jbosstools-integration-tests repo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.11.0.AM1
    • 4.11.0.AM1
    • integration-tests
    • None

    Description

      Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project org.jboss.tools.ws.ui.bot.test: Compilation failure: Compilation failure: 
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[21] 
      [ERROR]         import javax.xml.soap.MessageFactory;
      [ERROR]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'MessageFactory' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[22] 
      [ERROR]         import javax.xml.soap.SOAPException;
      [ERROR]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPException' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[23] 
      [ERROR]         import javax.xml.soap.SOAPMessage;
      [ERROR]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPMessage' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[24] 
      [ERROR]         import javax.xml.ws.Dispatch;
      [ERROR]                ^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'Dispatch<T>' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[25] 
      [ERROR]         import javax.xml.ws.Service;
      [ERROR]                ^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'Service' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[26] 
      [ERROR]         import javax.xml.ws.Service.Mode;
      [ERROR]                ^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'Service.Mode' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[31] 
      [ERROR]         private Dispatch<SOAPMessage> d;
      [ERROR]                 ^^^^^^^^
      [ERROR] Access restriction: The type 'Dispatch<SOAPMessage>' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[31] 
      [ERROR]         private Dispatch<SOAPMessage> d;
      [ERROR]                          ^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPMessage' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[34] 
      [ERROR]         Service s = Service.create(location, serviceName);
      [ERROR]         ^^^^^^^
      [ERROR] Access restriction: The type 'Service' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[34] 
      [ERROR]         Service s = Service.create(location, serviceName);
      [ERROR]                     ^^^^^^^
      [ERROR] Access restriction: The type 'Service' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[34] 
      [ERROR]         Service s = Service.create(location, serviceName);
      [ERROR]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'Service.create(URL, QName)' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[35] 
      [ERROR]         d = s.createDispatch(portName, SOAPMessage.class, Mode.MESSAGE);
      [ERROR]             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'Service.createDispatch(QName, Class<SOAPMessage>, Service.Mode)' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[35] 
      [ERROR]         d = s.createDispatch(portName, SOAPMessage.class, Mode.MESSAGE);
      [ERROR]                                        ^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPMessage' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[35] 
      [ERROR]         d = s.createDispatch(portName, SOAPMessage.class, Mode.MESSAGE);
      [ERROR]                                                           ^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'Service.Mode' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[35] 
      [ERROR]         d = s.createDispatch(portName, SOAPMessage.class, Mode.MESSAGE);
      [ERROR]                                                                ^^^^^^^
      [ERROR] Access restriction: The field 'Service.Mode.MESSAGE' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[39] 
      [ERROR]         SOAPMessage result = null;
      [ERROR]         ^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPMessage' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[41] 
      [ERROR]         SOAPMessage msg = MessageFactory.newInstance().createMessage( null, new ByteArrayInputStream(message.getBytes()));
      [ERROR]         ^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPMessage' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[41] 
      [ERROR]         SOAPMessage msg = MessageFactory.newInstance().createMessage( null, new ByteArrayInputStream(message.getBytes()));
      [ERROR]                           ^^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'MessageFactory' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[41] 
      [ERROR]         SOAPMessage msg = MessageFactory.newInstance().createMessage( null, new ByteArrayInputStream(message.getBytes()));
      [ERROR]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'MessageFactory.newInstance()' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[41] 
      [ERROR]         SOAPMessage msg = MessageFactory.newInstance().createMessage( null, new ByteArrayInputStream(message.getBytes()));
      [ERROR]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'MessageFactory.createMessage(MimeHeaders, InputStream)' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[42] 
      [ERROR]         msg.saveChanges();
      [ERROR]         ^^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'SOAPMessage.saveChanges()' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[43] 
      [ERROR]         result = d.invoke(msg);
      [ERROR]                  ^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'Dispatch<SOAPMessage>.invoke(SOAPMessage)' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/org.jboss.tools.ws.wise.ui-2.0.102-SNAPSHOT.jar/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[44] 
      [ERROR]         } catch (SOAPException e) {
      [ERROR]                  ^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPException' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[45] 
      [ERROR]         L.log(Level.WARNING, e.getMessage(), e);
      [ERROR]                              ^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'SOAPException.getMessage()' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[55] 
      [ERROR]         private String msgToString(SOAPMessage msg) {
      [ERROR]                                    ^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPMessage' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[61] 
      [ERROR]         msg.writeTo(out);
      [ERROR]         ^^^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'SOAPMessage.writeTo(OutputStream)' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[62] 
      [ERROR]         } catch (SOAPException e) {
      [ERROR]                  ^^^^^^^^^^^^^
      [ERROR] Access restriction: The type 'SOAPException' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] /home/jkopriva/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wsclient/WSClient.java:[63] 
      [ERROR]         L.log(Level.WARNING, e.getMessage(), e);
      [ERROR]                              ^^^^^^^^^^^^^^
      [ERROR] Access restriction: The method 'SOAPException.getMessage()' is not API (restriction on classpath entry '/home/jkopriva/.m2/repository/.cache/tycho/javax.xml.soap-1.2.0.v201005080501.jar/lib/saaj.jar')
      [ERROR] 28 problems (28 errors)
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      [ERROR] 
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :org.jboss.tools.ws.ui.bot.test
      
      

      Attachments

        Activity

          People

            jkopriva@redhat.com Josef Kopriva
            jkopriva@redhat.com Josef Kopriva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: