Symlinks and MyEclipse
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. java.io.IOException: Failed to copy full contents from 'C:\development\RTC\code_tip\Code_Development\presentation\WEB-INF\lib\aspectjrt.jar' to 'C:\development\Oracle\Middleware\user_projects\domains\Libra\autodeploy\Libra\LibraWeb\WEB-INF\lib\aspectjrt.jar' at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:823) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:783) 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 com.genuitec.eclipse.ast.deploy.core.jobs.C.?(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.jobs.C.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 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
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.
|
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.