Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
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.

0 votes


Permanent link
Stephen,

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
C:\development\RTC\code_tip\Code_Development\presentation\WEB-INF\lib\aspectjrt.jar
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 support@genuitec.com or post on our forums at http://myeclipseide.com/forums

Best,
Brian

0 votes

Comments

Brian,

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.

Stephen

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1

Question asked: Jun 06 '13, 9:22 a.m.

Question was seen: 4,973 times

Last updated: Jun 07 '13, 9:38 a.m.

Related questions
Confirmation Cancel Confirm