Getting the following error when I clear the caches, resolve, and attempt to republish:
java.io.FileNotFoundException: /home/andrew/.ivy2/cache/company/company-core/jars/company-core-1.2.0.5-201003190057.jar (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.wst.server.core.util.PublishHelper.copyFile(PublishHelper.java:488) at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:338) at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:362) at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:362) at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:183) at org.eclipse.jst.server.generic.core.internal.publishers.AbstractModuleAssembler.copyModule(AbstractModuleAssembler.java:170) at org.eclipse.jst.server.generic.core.internal.publishers.WarModuleAssembler.assemble(WarModuleAssembler.java:31) at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.assembleModule(AntPublisher.java:167) at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:128) at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:82) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:949) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1039) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:872) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:708) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2731) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:278) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Now, that doesn't involve IvyDE at all, so it's either a WTP bug (and I should raise one over there), or IvyDE isn't doing something it should be doing... The JAR it should be seeing is company-core-1.2.0.5-201003191543.jar, but for some reason it is still holding a reference to the old one in memory. - Andrew On Thu, Mar 18, 2010 at 10:57 PM, Andrew Thorburn <[email protected]> wrote: > I've got a really frustrating problem: > > I use Ivy to manage dependencies for my web application, and > WTP/Eclipse to debug it. Mostly, that works fine. However, today, I > added in a new class to a project, built a new JAR using Ant/Ivy, > resolved my Ivy container in Eclipse, saw the new JAR appear (its name > contains a timestamp, so it's very easy to tell that it's the right > one). Make changes in Eclipse using the new class. > > Publish to server. And then it breaks, because it can't find the class > I've just added. What the hell? Far as I can tell, the only way to get > Eclipse to publish the new JAR (as opposed to the old one) is by > closing the Web Application project and reopening it. Not cool. > > I'm using apache-ivyde-2.0.0.final-200907011148-RELEASE, and Ivy > 2.1.0, Eclipse 3.5.2 and WTP 3.1.1, with Jetty 6.1.22 as the server. > > Does anyone have any idea why this is happening? And how I can solve > it? This is liable to drive me up the wall... > > Thanks, > > - Andrew Thoburn >
