I ran into the following problem today when I updated red5_server to the latest 
release in trunk:

The Eclipse Ivy plugin did not download completely some of the jars.

Of
course, it took me a while to figure out that this is exactly what
happened - the symptom I was experiencing was that the project had
build errors of missing classes.

It was hard to diagnose
initially because the JAR was there, and the Eclipse package explorer
could browse its contents so it appeared as though the class files
reported missing were there. However, when I tried to extract the JAR
contents I discovered that the file was corrupt. Later I discovered
that some JAR files appeared in the cache with a size of 0 and some
appeared with a .part extension (partially downloaded).

The fix is to erase the corrupt / empty /
partially downloaded jars from the Ivy cache (located under
~/.ivy/cahce, ~ is the C:\Documents and Settings\<username> on
windows) and rebuild the Ivy cache.

The problem was further
complicated by the fact that Ivy would not rebuild its cache on
Open/Refresh/Clean of the eclipse project (as indicated in an earlier
post by Mondain). I discovered the following workaround that does the
trick:

Open project properties, go to the Ivy section, uncheck
and immediately check again the 'Do retrieve after solve' check box and
click OK. This would cause Ivy to retrieve the missing jars again.

After
a few iterations of the above (deducing missing/corrupt packages from
the class resolve errors) I was able to get all the packages downloaded
and the eclipse project building without errors.

I am posting this here in the hope that it might help others that run into the 
same
 problem when they try to check out and use the red5 project in Eclipse.

I am using Eclipse 3.3 and just downloaded the IvyDe plugin version 1.2.0 from 
http://www.jaya.free.fr/update/ (linked from 
http://incubator.apache.org/ivy/ivyde/). The original jaya project web site 
(http://www.jayasoft.fr/org/modules/ivyeclipseui/overview.php?) links to 
another update site - http://www.jayasoft.fr/org/updatesite, which has another 
plugin, which maybe does not have the download problems I experienced.

-Nikolay

                        
Re: [Red5] Ivy 1.4.1 Implemented
                        Mondain

                        Fri, 29 Jun 2007 08:26:16 -0700

                








All you have to do in eclipse is add the Ivy dependency entry it manages the
libraries, the IvyDE prefs file is checked into SVN so I dont know why youre
seeing any error at all.

Paul




      Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.



       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to