[ https://issues.apache.org/jira/browse/SLING-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14164945#comment-14164945 ]
Robert Munteanu commented on SLING-4002: ---------------------------------------- Fixed in https://svn.apache.org/viewvc?view=revision&revision=1630341 and https://svn.apache.org/viewvc?view=revision&revision=1630342 > Deleting a file throws a 'Could not publish' error > -------------------------------------------------- > > Key: SLING-4002 > URL: https://issues.apache.org/jira/browse/SLING-4002 > Project: Sling > Issue Type: Bug > Components: IDE > Affects Versions: Sling Eclipse IDE 1.0.2 > Reporter: Catalin Buzoiu > Assignee: Robert Munteanu > Fix For: Sling Eclipse IDE 1.0.4 > > > 1. Create a new {{AEM Sample Multi-Module Project}} project (using version 7 > of the artifact), > 2. Delete the Logger config under > <project>.ui.apps/src/main/content/jcr_root/apps/<project>/config > 3. Following error appears: > {noformat} > Publishing failed > Could not publish to the server. > java.io.FileNotFoundException: > /Users/cbuzoiu/Documents/workspace-OAK/lego/ui.apps/src/main/content/jcr_root/apps/lego/config/org.apache.sling.commons.log.LogManager.factory.config-mgp.xml > (No such file or directory) > {noformat} > Exception stack trace is: > {noformat} > java.lang.RuntimeException: java.io.FileNotFoundException: > /Users/cbuzoiu/Documents/workspace-OAK/lego/ui.apps/src/main/content/jcr_root/apps/lego/config/org.apache.sling.commons.log.LogManager.factory.config-mgp.xml > (No such file or directory) > at > org.apache.sling.ide.impl.vlt.serialization.VltSerializationManager.getBaseResourcePath(VltSerializationManager.java:143) > at > org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory.getFilterResult(ResourceChangeCommandFactory.java:215) > at > org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory.removeFileCommand(ResourceChangeCommandFactory.java:496) > at > org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory.newCommandForRemovedResources(ResourceChangeCommandFactory.java:469) > at > org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.removeFileCommand(SlingLaunchpadBehaviour.java:516) > at > org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishContentModule(SlingLaunchpadBehaviour.java:419) > at > org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:231) > at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) > at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) > at > org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) > at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) > at > org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:54) > at > org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3154) > at > org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) > Caused by: java.io.FileNotFoundException: > /Users/cbuzoiu/Documents/workspace-OAK/lego/ui.apps/src/main/content/jcr_root/apps/lego/config/org.apache.sling.commons.log.LogManager.factory.config-mgp.xml > (No such file or directory) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.<init>(FileInputStream.java:146) > at > org.apache.sling.ide.impl.vlt.serialization.VltSerializationManager.getBaseResourcePath(VltSerializationManager.java:135) > ... 14 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)