Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProblem creating Webservice in WTP 1.0 - Array out of bounds?
https://www.eclipse.org/forums/index.php/mv/msg/52140/166606/#msg_166606
I'm trying to get re-started in a webtools-based app that I'm writing for a
client. I had stopped working on servlet stuff for a while to do local
development (in the same Eclipse instance), and all was going fine.
Today I'm trying to re-open an existing project and build it. The problem
is I can't get a new webservice to create.
My Project src folder has com/company/webservices/Sample.java
I right click on the 'Sample.java', go New->Other->Webservice, click okay
and get:
IWAB0014E Unexpected exception occured.
0
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.jst.ws.internal.consumption.ui.wsrt.WebServiceRu ntimeExtensionUtils2.getDefaultServerValueFor(WebServiceRunt imeExtensionUtils2.java:511)
at
org.eclipse.jst.ws.internal.creation.ui.widgets.ServerWizard WidgetDefaultingCommand.execute(ServerWizardWidgetDefaulting Command.java:33)
at
org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.runCommand(CommandFragmentEngine.java:387)
What am I doing wrong here? I have run my Eclipse Update to make sure I
have the latest of everything. Here's some version information:
Eclipse 3.1.2
Build id: M20060118-1600
WTP Webservice plugin is showing 1.0.1.v200602070050
I've tried trashing the project, recreating it, importing the Sample.java
into it, and then doing "Create webservice" and it fails the same way.
Shoudl I just do a nuke from orbit here? I also have some other plugins
installed (like PHPeclipse), but they shouldn't matter, yes?
Thanks, I'm in quite a bind.. :(
-dbs]]>Dave Belfer-Shevett2006-04-12T17:11:06-00:00Re: Problem creating Webservice in WTP 1.0 - Array out of bounds?
https://www.eclipse.org/forums/index.php/mv/msg/52140/166789/#msg_166789
Originally posted by: mcarr67.email.uophx.edu
I was getting the same thing until I defined and configured a server. Once I
did that the problem went away.
--
MICHAEL CARR
"Dave Belfer-Shevett" <dbs@stonekeep.com> wrote in message
news:e1jcal$5nm$1@utils.eclipse.org...
> Hi folks...
>
> I'm trying to get re-started in a webtools-based app that I'm writing for
> a
> client. I had stopped working on servlet stuff for a while to do local
> development (in the same Eclipse instance), and all was going fine.
>
> Today I'm trying to re-open an existing project and build it. The problem
> is I can't get a new webservice to create.
>
> My Project src folder has com/company/webservices/Sample.java
>
> I right click on the 'Sample.java', go New->Other->Webservice, click okay
> and get:
>
> IWAB0014E Unexpected exception occured.
> 0
> java.lang.ArrayIndexOutOfBoundsException: 0
> at
> org.eclipse.jst.ws.internal.consumption.ui.wsrt.WebServiceRu ntimeExtensionUtils2.getDefaultServerValueFor(WebServiceRunt imeExtensionUtils2.java:511)
> at
> org.eclipse.jst.ws.internal.creation.ui.widgets.ServerWizard WidgetDefaultingCommand.execute(ServerWizardWidgetDefaulting Command.java:33)
> at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.runCommand(CommandFragmentEngine.java:387)
>
> What am I doing wrong here? I have run my Eclipse Update to make sure I
> have the latest of everything. Here's some version information:
>
> Eclipse 3.1.2
> Build id: M20060118-1600
>
> WTP Webservice plugin is showing 1.0.1.v200602070050
>
> I've tried trashing the project, recreating it, importing the Sample.java
> into it, and then doing "Create webservice" and it fails the same way.
>
> Shoudl I just do a nuke from orbit here? I also have some other plugins
> installed (like PHPeclipse), but they shouldn't matter, yes?
>
> Thanks, I'm in quite a bind.. :(
>
> -dbs]]>2006-04-14T05:34:53-00:00Re: Problem creating Webservice in WTP 1.0 - Array out of bounds?
https://www.eclipse.org/forums/index.php/mv/msg/52140/166992/#msg_166992
> I was getting the same thing until I defined and configured a server. Once
> I did that the problem went away.
That was in fact the problem - I haven't gotten around to re-posting my
solution. The nutshell is that WTP throws the out of bounds error if you
have no Servers defined in Window->Preferences->Server->Installed Runtimes.