Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Publishing failed/Resource is out of sync
Publishing failed/Resource is out of sync [message #232390] Thu, 11 June 2009 15:12 Go to next message
Kevin A. Roll is currently offline Kevin A. RollFriend
Messages: 5
Registered: July 2009
Junior Member
I'm having a recurring problem when generating a web service. The process
fails with the error message

Publishing failed with multiple errors
Resource is out of sync with the file system:
'/com.verani.web.backPage/web/WEB-INF/lib/axis.jar'.
Resource is out of sync with the file system:
'/com.verani.web.backPage/web/WEB-INF/lib/jaxrpc.jar'.

I understand this to mean that Eclipse's cache is out of sync with those
resources, which normally calls for a refresh. However, Eclipse itself is
the one that copied those jars over as part of the web service creation,
and there's no way to force a refresh in the middle of the process. Also,
I don't particularly want those jars copied anyway as I can add them to my
resources project. Can somebody point me in the right direction? Thanks!
Re: Publishing failed/Resource is out of sync [message #232417 is a reply to message #232390] Fri, 12 June 2009 07:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mauro.molinari.cardinis.com

Kevin A. Roll ha scritto:
> I'm having a recurring problem when generating a web service. The
> process fails with the error message
>
> Publishing failed with multiple errors
> Resource is out of sync with the file system:
> '/com.verani.web.backPage/web/WEB-INF/lib/axis.jar'.
> Resource is out of sync with the file system:
> '/com.verani.web.backPage/web/WEB-INF/lib/jaxrpc.jar'.
>
> I understand this to mean that Eclipse's cache is out of sync with those
> resources, which normally calls for a refresh. However, Eclipse itself
> is the one that copied those jars over as part of the web service
> creation, and there's no way to force a refresh in the middle of the
> process. Also, I don't particularly want those jars copied anyway as I
> can add them to my resources project. Can somebody point me in the right
> direction? Thanks!

I don't know if I understood your problem correctly, however try to
press F5 (or Right-click=>Refresh) on
/com.verani.web.backPage/web/WEB-INF/lib/ to issue a refresh from the
file system.

Mauro.
Re: Publishing failed/Resource is out of sync [message #232424 is a reply to message #232417] Fri, 12 June 2009 13:01 Go to previous messageGo to next message
Kevin A. Roll is currently offline Kevin A. RollFriend
Messages: 5
Registered: July 2009
Junior Member
That's exactly the problem - there is no way to issue a refresh. When I
press 'Finish' on the web service dialog, Eclipse chugs away,
automatically generating the files for the web service. As part of this
process it wants to copy some jar files into WEB-INF\lib, and it then
immediately complains that the resources are out of sync while the wizard
is still running. There's no way I can tell it to refresh while the wizard
is still going, and I don't even want those jars copied in the first place
because I can set up that dependency myself.
Re: Publishing failed/Resource is out of sync [message #232432 is a reply to message #232417] Fri, 12 June 2009 13:20 Go to previous messageGo to next message
Kevin A. Roll is currently offline Kevin A. RollFriend
Messages: 5
Registered: July 2009
Junior Member
I should add that about 1 out of 5 times the process works without an
error. There must be some sort of race condition between the wizard and
the thread that verifies that the resources are in sync.
Re: Publishing failed/Resource is out of sync [message #232440 is a reply to message #232424] Fri, 12 June 2009 13:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mauro.molinari.cardinis.com

Kevin A. Roll ha scritto:
> That's exactly the problem - there is no way to issue a refresh. When I
> press 'Finish' on the web service dialog, Eclipse chugs away,
> automatically generating the files for the web service. As part of this
> process it wants to copy some jar files into WEB-INF\lib, and it then
> immediately complains that the resources are out of sync while the
> wizard is still running. There's no way I can tell it to refresh while
> the wizard is still going, and I don't even want those jars copied in
> the first place because I can set up that dependency myself.

Now I understand it better. Unfortunately, I can't be of much help,
because, when I was working with web services, I preferred the use of a
fine tuned Ant script to perform the operations I needed.

Mauro.
Re: Publishing failed/Resource is out of sync [message #232448 is a reply to message #232440] Fri, 12 June 2009 14:40 Go to previous messageGo to next message
Kevin A. Roll is currently offline Kevin A. RollFriend
Messages: 5
Registered: July 2009
Junior Member
Ah. One of my co-workers had suggested exactly that - writing my own
script to manage Axis. Sounds like a lot of trouble if the default
functionality is all that's needed.

Thanks for your help.
Re: Publishing failed/Resource is out of sync [message #232557 is a reply to message #232424] Mon, 15 June 2009 20:22 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

Kevin A. Roll wrote:
> That's exactly the problem - there is no way to issue a refresh. When I
> press 'Finish' on the web service dialog, Eclipse chugs away,
> automatically generating the files for the web service. As part of this
> process it wants to copy some jar files into WEB-INF\lib, and it then
> immediately complains that the resources are out of sync while the
> wizard is still running. There's no way I can tell it to refresh while
> the wizard is still going, and I don't even want those jars copied in
> the first place because I can set up that dependency myself.

That definitely sounds like a bug. It should be using the workspace
APIs to write those files whenever possible.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Tomcat server timeout
Next Topic:Newbie Q: JS - Unresolved types
Goto Forum:
  


Current Time: Tue Mar 19 07:09:22 GMT 2024

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

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

Back to the top