Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Creating a Web Service using WTP
Creating a Web Service using WTP [message #37729] Tue, 10 August 2004 01:30 Go to next message
Eclipse UserFriend
Hi

Just playing with the WTP contributions...
Firstly followed instructions verbatim in the docs...

1. Set up Tomcat 4.1 (in preference to 5.0)
2. Created Convertor Project (Dynamic Web Project)
3. Selected Create Web Services
4. Selected the Tomcat 4.1 installation etc etc.

Then get an error

java.lang.NullPointerException
at
com.ibm.etools.webservice.axis.creation.ui.widgets.bean.Vali dateObjectSelectionCommand.execute(Va
lidateObjectSelectionCommand.java:93)
at
com.ibm.env.command.fragment.CommandFragmentEngine.runComman d(CommandFragmentEngine.j
ava:312)
at
com.ibm.env.command.fragment.CommandFragmentEngine.visitTop( CommandFragmentEngine.java:
278)
at
com.ibm.env.command.fragment.CommandFragmentEngine.moveForwa rdToNextStop(CommandFrag
mentEngine.java:198)
at
com.ibm.env.widgets.SimpleCommandEngineManager$4.run(SimpleC ommandEngineManager.java:
196)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:303)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 752)
at
com.ibm.env.widgets.SimpleCommandEngineManager.runForwardToN extStop(SimpleCommandEngine
Manager.java:165)
at
com.ibm.env.internal.widgets.WizardPageManager.runForwardToN extStop(WizardPageManager.java:
59)
at
com.ibm.env.internal.widgets.WizardPageManager.getNextPage(W izardPageManager.java:81)
at
com.ibm.env.internal.widgets.SimpleWizardPage.getNextPage(Si mpleWizardPage.java:113)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:674)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:300)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:506)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2865)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2535)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668 )
at org.eclipse.jface.window.Window.open(Window.java:648)
at
com.ibm.env.widgets.popup.DynamicPopupWizard.run(DynamicPopu pWizard.java:112)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:276)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:
915)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:866)
at
org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2865)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2535)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)

This is different from other posted problems (mainly due to Tomcat 5.0 and
arrangement of
directories.

Any ideas???

I will mention that the system is on a mac OS-X - latest version and
updates and uses 1.4.2 java
I use that mac as it is the only system that I do not have to reboot and
reload every 3 months!!!

Jeff
Re: Creating a Web Service using WTP [message #38120 is a reply to message #37729] Wed, 11 August 2004 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I believe you are trying to generate a Web service from a Java bean. Can you
double check that the Java bean you selected (in the 2nd page of the wizard)
is loadable from the service project you selected (in the 3rd page of the
wizard)?

For example, if you have a Web project called "wp" that contains a Java bean
called "test.MyBean", but you didn't pick "wp" as your service project, then
you may run into this error. In any event, there should be better error
handling, I'll submit a fix for it.

Jeff

"Jeff Lambourne" <jeffla@attglobal.net> wrote in message
news:cf9mih$l8b$1@eclipse.org...
> Hi
>
> Just playing with the WTP contributions...
> Firstly followed instructions verbatim in the docs...
>
> 1. Set up Tomcat 4.1 (in preference to 5.0)
> 2. Created Convertor Project (Dynamic Web Project)
> 3. Selected Create Web Services
> 4. Selected the Tomcat 4.1 installation etc etc.
>
> Then get an error
>
> java.lang.NullPointerException
> at
>
com.ibm.etools.webservice.axis.creation.ui.widgets.bean.Vali dateObjectSelect
ionCommand.execute(Va
> lidateObjectSelectionCommand.java:93)
> at
>
com.ibm.env.command.fragment.CommandFragmentEngine.runComman d(CommandFragmen
tEngine.j
> ava:312)
> at
>
com.ibm.env.command.fragment.CommandFragmentEngine.visitTop( CommandFragmentE
ngine.java:
> 278)
> at
>
com.ibm.env.command.fragment.CommandFragmentEngine.moveForwa rdToNextStop(Com
mandFrag
> mentEngine.java:198)
> at
>
com.ibm.env.widgets.SimpleCommandEngineManager$4.run(SimpleC ommandEngineMana
ger.java:
> 196)
> at
>
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
a:303)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 752)
> at
>
com.ibm.env.widgets.SimpleCommandEngineManager.runForwardToN extStop(SimpleCo
mmandEngine
> Manager.java:165)
> at
>
com.ibm.env.internal.widgets.WizardPageManager.runForwardToN extStop(WizardPa
geManager.java:
> 59)
> at
>
com.ibm.env.internal.widgets.WizardPageManager.getNextPage(W izardPageManager
..java:81)
> at
>
com.ibm.env.internal.widgets.SimpleWizardPage.getNextPage(Si mpleWizardPage.j
ava:113)
> at
> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:674)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:300)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:506)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 053)
> at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2865)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2535)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:668 )
> at org.eclipse.jface.window.Window.open(Window.java:648)
> at
>
com.ibm.env.widgets.popup.DynamicPopupWizard.run(DynamicPopu pWizard.java:112
)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:276)
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:
> 915)
> at
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
tem.java:866)
> at
>
org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContribu
tionItem.java:785)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 053)
> at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2865)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2535)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
> at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:335)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> at org.eclipse.core.launcher.Main.run(Main.java:644)
> at org.eclipse.core.launcher.Main.main(Main.java:628)
>
> This is different from other posted problems (mainly due to Tomcat 5.0 and
> arrangement of
> directories.
>
> Any ideas???
>
> I will mention that the system is on a mac OS-X - latest version and
> updates and uses 1.4.2 java
> I use that mac as it is the only system that I do not have to reboot and
> reload every 3 months!!!
>
> Jeff
>
Re: Creating a Web Service using WTP [message #38279 is a reply to message #38120] Wed, 11 August 2004 22:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi

You were right, that was the problem
Works very well

A very important feature

Jeff


Jeff Liu wrote:

> Hi,

> I believe you are trying to generate a Web service from a Java bean. Can you
> double check that the Java bean you selected (in the 2nd page of the wizard)
> is loadable from the service project you selected (in the 3rd page of the
> wizard)?

> For example, if you have a Web project called "wp" that contains a Java bean
> called "test.MyBean", but you didn't pick "wp" as your service project, then
> you may run into this error. In any event, there should be better error
> handling, I'll submit a fix for it.

> Jeff

> "Jeff Lambourne" <jeffla@attglobal.net> wrote in message
> news:cf9mih$l8b$1@eclipse.org...
> > Hi
> >
> > Just playing with the WTP contributions...
> > Firstly followed instructions verbatim in the docs...
> >
> > 1. Set up Tomcat 4.1 (in preference to 5.0)
> > 2. Created Convertor Project (Dynamic Web Project)
> > 3. Selected Create Web Services
> > 4. Selected the Tomcat 4.1 installation etc etc.
> >
> > Then get an error
> >
> > java.lang.NullPointerException
> > at
> >
> com.ibm.etools.webservice.axis.creation.ui.widgets.bean.Vali dateObjectSelect
> ionCommand.execute(Va
> > lidateObjectSelectionCommand.java:93)
> > at
> >
> com.ibm.env.command.fragment.CommandFragmentEngine.runComman d(CommandFragmen
> tEngine.j
> > ava:312)
> > at
> >
> com.ibm.env.command.fragment.CommandFragmentEngine.visitTop( CommandFragmentE
> ngine.java:
> > 278)
> > at
> >
> com.ibm.env.command.fragment.CommandFragmentEngine.moveForwa rdToNextStop(Com
> mandFrag
> > mentEngine.java:198)
> > at
> >
> com.ibm.env.widgets.SimpleCommandEngineManager$4.run(SimpleC ommandEngineMana
> ger.java:
> > 196)
> > at
> >
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
> a:303)
> > at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
> > at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 752)
> > at
> >
> com.ibm.env.widgets.SimpleCommandEngineManager.runForwardToN extStop(SimpleCo
> mmandEngine
> > Manager.java:165)
> > at
> >
> com.ibm.env.internal.widgets.WizardPageManager.runForwardToN extStop(WizardPa
> geManager.java:
> > 59)
> > at
> >
> com.ibm.env.internal.widgets.WizardPageManager.getNextPage(W izardPageManager
> ..java:81)
> > at
> >
> com.ibm.env.internal.widgets.SimpleWizardPage.getNextPage(Si mpleWizardPage.j
> ava:113)
> > at
> > org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:674)
> > at
> > org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:300)
> > at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:506)
> > at
> > org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205)
> > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 053)
> > at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2865)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2535)
> > at org.eclipse.jface.window.Window.runEventLoop(Window.java:668 )
> > at org.eclipse.jface.window.Window.open(Window.java:648)
> > at
> >
> com.ibm.env.widgets.popup.DynamicPopupWizard.run(DynamicPopu pWizard.java:112
> )
> > at
> > org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:276)
> > at
> >
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> ContributionItem.java:
> > 915)
> > at
> >
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
> tem.java:866)
> > at
> >
> org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContribu
> tionItem.java:785)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1196)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1220)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1205)
> > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 053)
> > at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2865)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2535)
> > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
> > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> > at
> >
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
> > at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
> > at
> > org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
> > at
> >
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:335)
> > at
> >
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> > at
> >
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> ..java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> > at org.eclipse.core.launcher.Main.run(Main.java:644)
> > at org.eclipse.core.launcher.Main.main(Main.java:628)
> >
> > This is different from other posted problems (mainly due to Tomcat 5.0 and
> > arrangement of
> > directories.
> >
> > Any ideas???
> >
> > I will mention that the system is on a mac OS-X - latest version and
> > updates and uses 1.4.2 java
> > I use that mac as it is the only system that I do not have to reboot and
> > reload every 3 months!!!
> >
> > Jeff
> >
Re: Creating a Web Service using WTP [message #52067 is a reply to message #37729] Fri, 05 November 2004 14:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jbailo.vestcom.com

Jeff Lambourne wrote:

> Hi
>
> Just playing with the WTP contributions...
> Firstly followed instructions verbatim in the docs...

Where are the docs?

I don't see them in the download.
Re: Creating a Web Service using WTP [message #53086 is a reply to message #52067] Wed, 10 November 2004 13:08 Go to previous messageGo to next message
Eclipse UserFriend
"John Bailo" <jbailo@vestcom.com> wrote in message
news:cmgjte$lfd$1@eclipse.org...
> Jeff Lambourne wrote:
>
> > Hi
> >
> > Just playing with the WTP contributions...
> > Firstly followed instructions verbatim in the docs...
>
> Where are the docs?
>
> I don't see them in the download.
>

The URL is: http://www.eclipse.org/webtools/index.html.

Go to the bottom of the page and you'll see under the Initial Code
Contributions section, a file called ibm.zip and on the same line "Getting
Started Guide". Click on that link and you'll get to the documentation on
how to get started with the various components contributed by IBM.
Re: Creating a Web Service using WTP [message #53140 is a reply to message #53086] Thu, 11 November 2004 11:24 Go to previous message
Eclipse UserFriend
The URL should be:

http://download.eclipse.org/webtools/downloads/


"Kathy Chan" <kathy@ca.ibm.com> wrote in message
news:cmtld9$ek1$1@eclipse.org...
>
> "John Bailo" <jbailo@vestcom.com> wrote in message
> news:cmgjte$lfd$1@eclipse.org...
> > Jeff Lambourne wrote:
> >
> > > Hi
> > >
> > > Just playing with the WTP contributions...
> > > Firstly followed instructions verbatim in the docs...
> >
> > Where are the docs?
> >
> > I don't see them in the download.
> >
>
> The URL is: http://www.eclipse.org/webtools/index.html.
>
> Go to the bottom of the page and you'll see under the Initial Code
> Contributions section, a file called ibm.zip and on the same line "Getting
> Started Guide". Click on that link and you'll get to the documentation on
> how to get started with the various components contributed by IBM.
>
>
Previous Topic:WebServices Create client fails
Next Topic:Pollinate Status and Meeting Agenda 2004-11-11
Goto Forum:
  


Current Time: Sat May 17 18:33:28 EDT 2025

Powered by FUDForum. Page generated in 0.06796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top