Cannot generate bottom up JAX-WS Web Service when using WebSphere Developer Tools for Eclipse

Technote (troubleshooting)


Problem(Abstract)

When using WebSphere Developer Tools for Eclipse that is installed into an existing Eclipse instance on Mac OS, generating a bottom up JAX-WS web service with the Liberty profile fails with the error message: "Errors occurred during wsgen."

Symptom

The following details are displayed in the dialog box:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.ibm.ast.ws.jaxws.emitter.tools.command.AbstractWsGenCommand.execute(AbstractWsGenCommand.java:134)
at com.ibm.ast.ws.jaxws.emitter.command.WsGenCommand.execute(WsGenCommand.java:64)


Cause

The Eclipse workbench is running on a Java 6 JVM, with com.sun.mirror.apt.AnnotationProcessorFactory in the classpath.

Resolving the problem

Launch Eclipse with a Java 7 JVM that does not contain com.sun.mirror.apt.AnnotationProcessorFactory in the classpath.

To specify which JVM to use when starting Eclipse, use the -vm runtime option.


Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Application Developer for WebSphere Software
Web Services Development

Software version:

9.0

Operating system(s):

Mac OS X

Software edition:

All Editions

Reference #:

1632234

Modified date:

2013-06-17

Translate my page

Machine Translation

Content navigation