Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

wsgen stops with java.lang.NoSuchMethodException: com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getInstance() #135

@glassfishrobot

Description

@glassfishrobot

I use the jaxws-maven-plugin to generate WSDL. Version 2.3 shows this exception:

java.lang.NoSuchMethodException: com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getInstance()
at java.lang.Class.getDeclaredMethod(Class.java:2004)
at com.sun.xml.ws.model.Utils.(Utils.java:58)
at com.sun.xml.ws.model.WrapperBeanGenerator.(WrapperBeanGenerator.java:77)
at com.sun.xml.ws.model.RuntimeModeler.getRequestWrapperClass(RuntimeModeler.java:375)
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:800)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:730)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:490)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:320)
at com.sun.xml.ws.db.DatabindingImpl.(DatabindingImpl.java:99)
at com.sun.xml.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:74)
at com.sun.xml.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:58)
at com.sun.xml.ws.db.DatabindingFactoryImpl.createRuntime(DatabindingFactoryImpl.java:120)
at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:254)
at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:73)
Exception in thread "main" java.lang.ClassCastException: java.lang.ExceptionInInitializerError cannot be cast to java.lang.Exception
at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:87)

Looking at class ReflectionNavigator from the JDK, there is in fact no such method.
Using version 2.2.1 of the maven plugin solves the problem.

Environment

Windows 7, Eclipse Kepler, JDK 1.7.0_45,

Affected Versions

[2.3]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions