For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 9 replies, 3 voices, and was last updated 19 years, 5 months ago by
Riyad Kalla.
-
AuthorPosts
-
bob54321MemberHi,
when i open MyEclipse we have frequently “class not found error” , for class generated by automatic build of same MyEclipse project or for user Jar included in build path. At many points in time MyEclipse was not able to find some of the needed jar files.error extract by log:
!ENTRY com.rational.clearcase 4 0 2006-06-28 08:54:38.25
!MESSAGE Resource /EARPrj/.myeclipse/Myjar.jar does not exist.
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource
/EARPaif/.myeclipse/Myjar.jar does not exist.these errors are tipically triggered by:
com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDeleg
ate.runWithEventwhich then goes through the ClearCase plugin to find the resources, and
finally concludes that the resources either do not exist or are not
accessible:org.eclipse.core.internal.resources.ResourceException: Resource
/EARPrj/.myeclipse/myjar2.jar does not exist.
at
org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:304)
at
org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:172)
at
org.eclipse.core.internal.resources.Resource.getSessionProperty(Resource
.java:982)
at
com.rational.resourcemanagement.cmframework.CMUnit.getResourceData(CMUni
t.java:246)
at
com.rational.clearcase.RSCMService.filterUnitsUsingPreferences(RSCMServi
ce.java:1193)It also seems that all files which are reported as missing in the .log
are contained in a folder called ” /EARPrj/.myeclipse”.This folder does not exist in my project.
Some time the problem is resolved with the Clean or rebuild
(Issue the Clean command or Simulate change in file with errorr).Version number is:
Eclipse SDK
Version: 3.1.0
Build id: I20050627-1435Plug-IN
Provider: Genuitec, LLC
Name: MyEclipse Base Platform Feature
Version: 4.0.0
Id: com.genuitec.myeclipse.platform
thanksSeptember 20, 2006 at 12:09 am #258798
Riyad KallaMemberbob,
The .myeclipse dir is actually a temporary directory used for building your project, you should not have any references to this directory in your build path. What is happening is these files *are* infact getting created for spurious moments in time then killed off.What you should be linking to is your libraries under the WEB-INF/lib directory.
Out of curiosity, why are you linking to resources under .myeclipse? What resource is in there that you couldn’t get from another location in the project? (Also the clear case plugin might be interacting with this directory negatively, for example, stopping it from cleaning itself out which would make the files actually legitament at some points, which might be contributing to the confusion).
Note: All dot files in eclipse are considered to be hidden files and should normally not be accessed directly by the users.
September 20, 2006 at 9:05 am #258853
bob54321MemberHi,
I know that the “.myeclipse” dir is a temporary directory.
In fact, the not found classes are embedded in jar files in the directory
EARprj\APP-INF\lib (where EARprj is a EAR myEclipse project).
This folder is always included in the build path.
In other circumstances, in same installation, “not found class” is marked
also for classes normally generated by source of the same project.
I believe that the build or clean process is interrupted for some reason
with the described error.
thanks
September 20, 2006 at 9:32 am #258858
Riyad KallaMemberThis is very strange then. Have you tried restarting using the -clean command line argument to see if that helps? Have you tried executing a refresh then a clean on your project to see if that helps?
September 21, 2006 at 8:39 am #258943
bob54321MemberI have used the clean command (menu project\clean) and sometimes the problem is resolved, but subsequently after the execution of the same command sometimes it is recreated.
Moreover if I apply to a modification (add comment) to a source that it uses the classes not found,the automatic build process sometimes resolves the error for that source.
Therefore I have the same unpredictable result if open myEclipse session
(at end of the “building workspace” process) or if I execute the clean ommand.Which other information I can supply ?
thanks
September 21, 2006 at 10:24 am #258958
Riyad KallaMemberAre you using an external build script as part of your build cycle by chance? Or are you running an external build file (like ant ant script)?
September 25, 2006 at 9:04 am #259158
bob54321MemberI do not use external script.
I use only the myEclipse standard configuration.September 25, 2006 at 9:31 am #259164
Scott AndersonParticipant!ENTRY com.rational.clearcase 4 0 2006-06-28 08:54:38.25
!MESSAGE Resource /EARPrj/.myeclipse/Myjar.jar does not exist.The issue here is that the Clearcase plugin you’re using things that the temporary directory ‘.myeclipse’ is a real source directory and is under source code management. To resolve the issue you’ll have to tell Clearcase to ‘ignore’ that directory and all subdirectories and contents. With CVS that is done by adding a .cvsignore file to the directory containing it. However, I don’t know how this is done with Clearcase since we don’t use it internally. But, that’s what’s causing the issue and how to address it.
October 6, 2006 at 11:18 am #260009
bob54321MemberHello Scott,
I have asked the aid to Rational Support.
Rational Support has answered: “ClearCase not supporting third party development environments” .
Who supplies the support for ClearCase plug-in in MyEclipse environment?Thanks
October 6, 2006 at 12:52 pm #260015
Riyad KallaMemberbob unfortunately the only support for ClearCase is going to come from the developers like Rational. But following Scott’s suggesitons should do the trick, just tell ClearCase to ignore those resources.
-
AuthorPosts
