Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » strange problem generating webservice client(strange problem generating webservice client)
strange problem generating webservice client [message #489134] Thu, 01 October 2009 15:20 Go to next message
Lee Breisacher is currently offline Lee BreisacherFriend
Messages: 4
Registered: July 2009
Junior Member
I'm seeing a rather strange but serious problem trying to create a web service client. I have seen this problem on both ganymede and galileo. I have a normal JEE eclipse. I've updated to the latest of everything.

Here's what I'm seeing: I create a web service client using New/Other/WebServices/WebServiceClient, enter the URL of the WSDL and click "Finish". All is fine - lots of nice client classes are generated. Then I install the Subclipse subversion plugin and do the exact same steps to generate ws client and I get this error:

IWAB0503E Unable to update Java build path. Please check your system environment.
java.io.FileNotFoundException: /lib/saaj.jar
at org.eclipse.osgi.framework.internal.protocol.bundleentry.Han dler.findBundleEntry(Handler.java:44)
at org.eclipse.osgi.framework.internal.core.BundleResourceHandl er.openConnection(BundleResourceHandler.java:175)
at java.net.URL.openConnection(URL.java:945)
at org.eclipse.core.runtime.internal.adaptor.URLConverterImpl.t oFileURL(URLConverterImpl.java:32)
at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.j ava:206)
at org.eclipse.core.runtime.Platform.asLocalURL(Platform.java:5 59)
at org.eclipse.jst.ws.internal.axis.consumption.ui.task.CopyAxi sJarCommand.getTheJarPath(CopyAxisJarCommand.java:411)
at org.eclipse.jst.ws.internal.axis.consumption.ui.task.CopyAxi sJarCommand.addAxisJarsToBuildPath(CopyAxisJarCommand.java:2 99)
at org.eclipse.jst.ws.internal.axis.consumption.ui.task.CopyAxi sJarCommand.execute(CopyAxisJarCommand.java:114)
at org.eclipse.jst.ws.internal.axis.consumption.ui.task.ClientC odeGenOperation$ClientWSModifyOperation.execute(ClientCodeGe nOperation.java:93)
at org.eclipse.jst.ws.internal.axis.consumption.ui.task.ClientC odeGenOperation.execute(ClientCodeGenOperation.java:64)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.runCommand(CommandFragmentEngine.java:419)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.visitTop(CommandFragmentEngine.java:359)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.moveForwardToNextStop(CommandFragmentEngine.jav a:254)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleComman dEngineManager$6.run(SimpleCommandEngineManager.java:294)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)

I have searched far and wide for an explanation, but have not found anything. Please help - any idea what's going on or how to workaround it or fix it?

Thanks,

Lee

Re: strange problem generating webservice client [message #489207 is a reply to message #489134] Thu, 01 October 2009 20:18 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
I've never used the subclipse plugin before.

That saaj.jar comes from the javax.xml.soap plugin. When you installed
subclipse could it have added another version of this plugin?

Lee Breisacher wrote:
> I'm seeing a rather strange but serious problem trying to create a web
> service client. I have seen this problem on both ganymede and galileo. I
> have a normal JEE eclipse. I've updated to the latest of everything.
> Here's what I'm seeing: I create a web service client using
> New/Other/WebServices/WebServiceClient, enter the URL of the WSDL and
> click "Finish". All is fine - lots of nice client classes are
> generated. Then I install the Subclipse subversion plugin and do the
> exact same steps to generate ws client and I get this error:
>
> IWAB0503E Unable to update Java build path. Please check your system
> environment.
> java.io.FileNotFoundException: /lib/saaj.jar
> at org.eclipse.osgi.framework.internal.protocol.bundleentry.Han
> dler.findBundleEntry(Handler.java:44)
> at org.eclipse.osgi.framework.internal.core.BundleResourceHandl
> er.openConnection(BundleResourceHandler.java:175)
> at java.net.URL.openConnection(URL.java:945)
> at org.eclipse.core.runtime.internal.adaptor.URLConverterImpl.t
> oFileURL(URLConverterImpl.java:32)
> at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.j
> ava:206)
> at org.eclipse.core.runtime.Platform.asLocalURL(Platform.java:5 59)
> at org.eclipse.jst.ws.internal.axis.consumption.ui.task.CopyAxi
> sJarCommand.getTheJarPath(CopyAxisJarCommand.java:411)
> at org.eclipse.jst.ws.internal.axis.consumption.ui.task.CopyAxi
> sJarCommand.addAxisJarsToBuildPath(CopyAxisJarCommand.java:2 99)
> at org.eclipse.jst.ws.internal.axis.consumption.ui.task.CopyAxi
> sJarCommand.execute(CopyAxisJarCommand.java:114)
> at org.eclipse.jst.ws.internal.axis.consumption.ui.task.ClientC
> odeGenOperation$ClientWSModifyOperation.execute(ClientCodeGe
> nOperation.java:93)
> at org.eclipse.jst.ws.internal.axis.consumption.ui.task.ClientC
> odeGenOperation.execute(ClientCodeGenOperation.java:64)
> at org.eclipse.wst.command.internal.env.core.fragment.CommandFr
> agmentEngine.runCommand(CommandFragmentEngine.java:419)
> at org.eclipse.wst.command.internal.env.core.fragment.CommandFr
> agmentEngine.visitTop(CommandFragmentEngine.java:359)
> at org.eclipse.wst.command.internal.env.core.fragment.CommandFr
> agmentEngine.moveForwardToNextStop(CommandFragmentEngine.jav a:254)
> at org.eclipse.wst.command.internal.env.ui.widgets.SimpleComman
> dEngineManager$6.run(SimpleCommandEngineManager.java:294)
> at org.eclipse.jface.operation.ModalContext.runInCurrentThread(
> ModalContext.java:464)
>
> I have searched far and wide for an explanation, but have not found
> anything. Please help - any idea what's going on or how to workaround it
> or fix it?
> Thanks,
>
> Lee
>
Re: strange problem generating webservice client [message #489210 is a reply to message #489207] Thu, 01 October 2009 20:24 Go to previous messageGo to next message
Lee Breisacher is currently offline Lee BreisacherFriend
Messages: 4
Registered: July 2009
Junior Member
> That saaj.jar comes from the javax.xml.soap plugin.
> When you installed subclipse could it have added
> another version of this plugin?

No, there's still just the one saaj.jar in the same place it was before.

Lee
Re: strange problem generating webservice client [message #489218 is a reply to message #489210] Thu, 01 October 2009 22:09 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
Hmm, that is indeed a strange problem.

I did a bit of debugging, and it looks like that if the javax.xml.soap
plugin is missing then things would fail a lot sooner and you'd get a
null pointer exception. That's why I guessed that there might have been
another javax.xml.soap plugin added to your install when you added
subclipse.

If you look under help > about eclipse > plug in details is the
javax.xml.soap plugin in that list? (and is there only 1?)

One other thing I can think to check would be the file permissions on
saaj.jar

Lee Breisacher wrote:
>> That saaj.jar comes from the javax.xml.soap plugin. When you installed
>> subclipse could it have added another version of this plugin?
>
> No, there's still just the one saaj.jar in the same place it was before.
> Lee
Re: strange problem generating webservice client [message #489230 is a reply to message #489218] Thu, 01 October 2009 23:10 Go to previous messageGo to next message
Lee Breisacher is currently offline Lee BreisacherFriend
Messages: 4
Registered: July 2009
Junior Member
You're right - I realized the same thing and checked. There are indeed two javax.xml.soap plugins. One of them is a jar and the other is a folder. Also, I think I was wrong about the Subversion thing -- I have a copy of 3.5 without SVN and it has the same problem -- two javax.xml.soap plugins and the aforementioned bug.

I tried deleting the jar file plugin, but then I get a bunch of junit4-related errors. Perhaps that extra plugin is coming with junit4?

So confused. Any suggestions for working around this?

Thanks,

Lee
Re: strange problem generating webservice client [message #489382 is a reply to message #489230] Fri, 02 October 2009 17:31 Go to previous messageGo to next message
Lee Breisacher is currently offline Lee BreisacherFriend
Messages: 4
Registered: July 2009
Junior Member
I tried again to delete the jar file plugin and now all seems to be working. But previously, I saw that jar file plugin reappear mysteriously. Shrug.

Lee
Re: strange problem generating webservice client [message #518729 is a reply to message #489134] Thu, 04 March 2010 20:22 Go to previous messageGo to next message
altiro  is currently offline altiro Friend
Messages: 1
Registered: March 2010
Junior Member
I'm using "springsource tool suite" (sts-2.3.0.RELEASE) and I have by default:
- javax.xml.soap_1.2.0.v200905122109 as folder
- javax.xml.soap_1.3.0.v200904281458.jar as a jar

I had the same problem, but after delete the jar it works ok.
Thank you very much
Re: strange problem generating webservice client [message #545571 is a reply to message #489134] Thu, 08 July 2010 09:42 Go to previous messageGo to next message
Nilakshi  is currently offline Nilakshi Friend
Messages: 1
Registered: July 2010
Junior Member
I faced the same issue. After deleting the jar it works.
Thanks! Very Happy
Re: strange problem generating webservice client [message #652855 is a reply to message #489134] Mon, 07 February 2011 11:48 Go to previous messageGo to next message
amarnath  is currently offline amarnath Friend
Messages: 1
Registered: February 2011
Junior Member
thanks for your help...
Re: strange problem generating webservice client [message #659122 is a reply to message #489134] Fri, 11 March 2011 07:37 Go to previous messageGo to next message
Mustafa  is currently offline Mustafa Friend
Messages: 1
Registered: March 2011
Junior Member
Thanks for the help. Had this problem. Found javax.xml.soap under plugins (versions 1.2,1.3). One was a jar in my eclipse installation directory, the other in a folder javax.xml.soap_1.3.0.v201005080502 under ~/.eclipse/. Moved this plugin folder out and removed a reference to it in a bundles.info file and the error is gone.
Re: strange problem generating webservice client [message #825530 is a reply to message #518729] Wed, 21 March 2012 00:05 Go to previous messageGo to next message
Saivivekh Swaminathan is currently offline Saivivekh SwaminathanFriend
Messages: 1
Registered: March 2012
Junior Member
Hi!! i'm a java newbie... i'm facing the same problem too... so where exactly is this jar? (I could run an exhaustive search, but thought you would know already)

javax.xml.soap_1.3.0.v200904281458.jar
Re: strange problem generating webservice client [message #840045 is a reply to message #825530] Mon, 09 April 2012 15:45 Go to previous message
Pontus Amberg is currently offline Pontus AmbergFriend
Messages: 1
Registered: July 2009
Junior Member
The folders are located in <your eclipse installation>/plugins/. Instead of deleting anything I just copied the "/lib" folder with its content from javax.xml.soap_1.2.0.* and placed it in javax.xml.soap_1.3.0.* . This should not change the behaviour of the 1.3.0 plugin since it should still load its classes from the javax folder and the failing "web service client" wizard will find a javax.xml.soap 1.2 JAR even if it is looking in the wrong location (the 1.3.0 folder).
Previous Topic:How to create a servlet 3.0 project with the web.xml file?
Next Topic:How to debug Javascript using JSDT & Maven?
Goto Forum:
  


Current Time: Thu Apr 18 13:29:35 GMT 2024

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

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

Back to the top