It's all about the answers!

Ask a question

Symlinks and MyEclipse

Stephen Long (14311013) | asked Jun 06 '13, 9:22 a.m.
edited Jun 06 '13, 9:25 a.m.

We are using RTC 4.0.1 and MyEclipse 10.  Everything sooms to be working fine until we build and deploy our java code to a WebLogic server.  We have a directory in our source code that contains all of the libraries that the server requires to run.  During the deployment MyEclipse attempts to copy the files in this directory (which is loaded in the sandbox) to the WebLogic server.  Some of the libraries in this directory are symlinked to other locations and these symlinked files fail to copy. Failed to copy full contents from
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyFile(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyFileToDirectory(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.deployAsExplodedArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at Source)
at Source)

Attempting to open the symlink via Windows Explorer works fine, so the symlink is valid. 

One thing we have noticed is Symlinks are behaving differently in RTC (We have imported our code from ClearCase using the RTC ClearCase Synchroniser).  In a windows symlinks ClearCase snapshot views are not loaded as links, but in RTC symlinks are appearing a shorcuts with 0 bytes file size.

2 answers

permanent link
Tim Mok (6.6k38) | answered Jun 06 '13, 10:17 a.m.
It sounds like your symlinks are created correctly if you can see them in Windows Explorer so that's good. However, the error is a stack trace from MyEclipse. They're using an Apache library to copy the file and it might not handle the symlink or the library isn't used correctly. Either way, it doesn't look like an RTC problem.

permanent link
Brian Fernandes (11) | answered Jun 07 '13, 8:51 a.m.

We specifically tested our deployment engine with both symlinked folders and symlinked files. The deployment worked fine in both cases, with the linked resources being copied to the deployment location as expected. We tested in MyEclipse 10.7.1.

1) Which version of MyEclipse are you using?
2) From your example, just to be sure, was
a link to a file in another location or was the lib directory itself linked to another location? I'm assuming the former.

We'd be happy to investigate this further with you - you could write to or post on our forums at


Stephen Long commented Jun 07 '13, 9:36 a.m. | edited Jun 07 '13, 9:38 a.m.


Thanks for your reply.

To answer your questions

  1. We are using v10.7.1
  2. This file is linked to another location.  This WEB-INF/lib folder contains several libraraies that are individually linked to other locations.

We do have a workaround, which is breaking the symlinks and copying the files into this location, but as you suggest I will get one of our Java Developers to contact MyEclipse support as well.


Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.