Skip to main content

Java 1.5/1.6 and WebFault class

1 reply [Last post]


Apologies in advance if this is off base or has been addressed - I'm
pretty new to Metro and jax-ws.

It looks to me as if Metro 2.0 has a dependency on JDK 1.6, contrary to
the release notes. During startup, I get this exception:

The version of that's included in Metro in
webservices-api.jar does have the messageName() method, which is also in
the version of the jax-ws classes that's included in Java SE 6, but not
in previous versions. Doing "javap" confirms that
my runtime contains the old version, and unless I do funny stuff with
the class loader, the runtime version will override the Metro version.
Is the problem in the Metro distribution or in my mind? I'm continuing
to use Metro 1.5 for now because of this.

Eli Bishop
Wavemarket, Inc.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-06-01

As you can see, messageName is added in JAX-WS 2.2 API. Seems like, the API is loaded from JDK 6 which has JAX-WS 2.1 API. You might have to use endorsed mechanism to use Metro 2.0 on JDK 6. See on this topic.