Hello,

Could I please have some suggestions on how to get the 1.4 codegen plugin to work in eclipse?

I have attached copies of the error output from when I ran eclipse in debug mode and some wsdl I am attempting to generate stubs for.

Any help would be much appreciated.

Thanks,
Shawn


Shawn Talbot wrote:
Hello,

My problem is that I have been unable to generate client stubs for any WSDL using the eclipse Wsdl2Java tool.

I have just downloaded the latest axis2 1.4 binary distribution and eclipse tools.

At the last step, when I click finish I always get a "An error occurred while completing process -java.lang.reflect.InvocationTargetException" pop-up in eclipse. I have tried this under both eclipse 3.3 and eclipse 3.4-m6. (with the axis2 home directory set, and the eclipse axis2 preferences field pointed to the axis2 1.4 directory) The tool will not even work for me with using the default Version service that comes with axis2. (I have also noticed that the plugins for axis2 1.4 are called 1.3.0 in the eclipse plugin xml file...)
I am running windows xp, and JDK 6.
Please note that I had used axis2 1.3 on this same machine successfully for the past 4 months.

Has anyone else encountered this error? Can someone help me to get axis2 1.4 up and running on my dev machine under eclipse?

Any help is appreciated

Thanks,
Shawn


Retrieving document at 'c:\\helloservice.xml'.
Retrieving document at 'c:\\helloservice.xml'.
java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalCont
ext.java:422)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:347)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
        at org.apache.axis2.tool.codegen.eclipse.CodeGenWizard.doFinishWSDL2Java
(CodeGenWizard.java:353)
        at org.apache.axis2.tool.codegen.eclipse.CodeGenWizard.performFinish(Cod
eGenWizard.java:171)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
:742)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
:373)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
227)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:83)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3773)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3372)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(Wiz
ardHandler.java:260)
        at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.
java:280)
        at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.ja
va:273)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)

        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Para
meterizedCommand.java:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(Handle
rService.java:169)
        at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(S
laveHandlerService.java:247)
        at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAct
ion.java:157)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:582)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
butionItem.java:499)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
ontributionItem.java:410)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:83)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3773)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3372)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2375)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2339)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2205)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:478)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
va:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:473)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
cation.java:106)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:362)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:175)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/c
oncurrent/ConcurrentHashMap
        at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.j
ava:78)
        at org.apache.axis2.description.AxisService.<init>(AxisService.java:363)

        at org.apache.axis2.description.WSDLToAxisServiceBuilder.<init>(WSDLToAx
isServiceBuilder.java:101)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.<init>(WSDL11
ToAxisServiceBuilder.java:205)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.<init>(WSDL11
ToAxisServiceBuilder.java:249)
        at org.apache.axis2.tool.codegen.WSDL2JavaGenerator.getAxisService(WSDL2
JavaGenerator.java:201)
        at org.apache.axis2.tool.codegen.eclipse.CodeGenWizard$1.execute(CodeGen
Wizard.java:223)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModify
Operation.java:104)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800
)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp
eration.java:116)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalCont
ext.java:407)
        ... 49 more
Caused by: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util
.concurrent.ConcurrentHashMap
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassIntern
al(BundleLoader.java:481)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundl
eLoader.java:397)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundl
eLoader.java:385)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:87)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        ... 60 more

Attachment: helloService.wsdl
Description: XML document

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to