Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jaxws-dev] MASM0004 Error

Hello, everyone.

My team develops an Eclipse RCP Application that still relies on Java 8 to run, and we're trying to make it run on Java 11.  Given that we work with webservices, and that we rely on classes removed from Java SE Platform (see JEP 320 - https://openjdk.java.net/jeps/320), we are trying to adjust our code to use external libraries.  But it's been a nightmare.

We've tried to use various versions of Jakarta XML Web Services and Eclipse Metro.  But we always end up on the same dead end:

MASM0004: No <tubelines> section found in the default [ jaxws-tubes-default.xml ] configuration file

The exception is thrown by the class MetroConfigLoader, method init.

Comparing the jaxws-tubes-default.xml files from Java 8 and from the jars we collected, we see they have nearly the same content, except for slight differences on package names.

As far as we could sort out, it happens because the file unmarshaller reads the xml contents into the wrong attributes of the com.sun.xml.ws.runtime.config.MetroConfig class. The Tubelines object read from the xml is not set on the tubelines attribute. Instead, it's set on the any attribute.

Debugging deeper into the code, we could see that on Java 8 the tubelines attribute is associated with the namespace "http://java.sun.com/xml/ns/metro/config", but on Java 11 it's not.

We could not dig any deeper, nor could we find any information about this error on the web.

Does anyone have any idea that could help us make the file be parsed as expected?  It feels like we're missing some detail.

Thanks in advance.

Mario Marinato
~ Cachoeiras de Macacu/RJ/Brazil
~ www.osarcofago.blogspot.com

Back to the top