This is because something that is not a jar was added to the classpath container. We saw this in house when an eclipse bundle had mar files added to its bundle classpath. Since this was a mistake it didn't hurt to remove them from the classpath. I would suspect that IvyDE is being too aggressive in setting up the compiletime classpath.
> -----Original Message----- > From: John Gill [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 27, 2007 9:49 AM > To: [email protected] > Subject: Re: Illegal type of archive for required library > > I'm getting the same message with tld and some other files I am trying to > retrieve in order to put them in a war. Ivy from ant works fine, but I get > the same error message in ivyDE in the problems tab. > > I am using ivy 1.4.1, ivyDE 1.2.0 and eclipse 3.3. > > In addition, I'm not sure that turning the logging level from Error to > Warning is a good solution, as wouldn't that mask all errors? > > I also tried putting the offending artifacts in a separate conf, and turned > that conf off for ivyDE, but that didn't make any difference when I resolved > in ivyDE. In addition, when I quit out of eclipse and restarted, the ivyDE > container was completely empty. However once I removed the tld artifacts as > dependencies, and restarted eclipse again it came back. > > This all seems very odd. Has anyone else used ivyDE when there are non jar, > or zip type artifacts? > > On 7/10/07, bhatia <[EMAIL PROTECTED]> wrote: > > > > > > Stack Trace: > > > > Severity and > > Description Path Resource Location Creation Time > > Id > > Illegal type of archive for required library: 'C:\Documents and > > Settings\bhatia\.ivy\cache\ofac\di\wars\di-prod.war' in project > > ad ad Build > > path 1184071244817 9247 > > > > I got rid of this problem by changing the level from Error to Warning in > > the > > Eclipse Java->Compiler->Building setting. I dont get this error anymore in > > the Problems tab of my project in Eclipse. > > > > > > > > > > > > > > Xavier Hanin wrote: > > > > > > On 7/10/07, bhatia <[EMAIL PROTECTED]> wrote: > > >> > > >> > > >> Hi, > > >> > > >> I am able to make, publish my jar, war artifacts including sources > > using > > >> IvyDE 1.2.0/Ivy1.4.1. However, when I resolve my Ivy library in > > Eclipse, > > >> I > > >> get the following error in my "Problems" tab: > > >> > > >> Illegal type of archive for required library: 'C:\Documents and > > >> Settings\bhatia\.ivy\cache\ofac\di\wars\di-prod.war' > > >> > > >> Eclipse Ivy Settings: > > >> Acepted Types: jar, war > > >> Source types: source > > >> > > >> Appreciate your response. > > > > > > > > > Do you have a stack trace with the message? > > > > > > Xavier > > > > > > Thanks > > >> -- > > >> View this message in context: > > >> > > http://www.nabble.com/Illegal-type-of-archive-for-required-library-tf405 5591.html#a11520057 > > >> Sent from the ivy-user mailing list archive at Nabble.com. > > >> > > >> > > > > > > > > > -- > > > Xavier Hanin - Independent Java Consultant > > > http://xhab.blogspot.com/ > > > http://incubator.apache.org/ivy/ > > > http://www.xoocode.org/ > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/Illegal-type-of-archive-for-required-library-tf405 5591.html#a11520835 > > Sent from the ivy-user mailing list archive at Nabble.com. > > > > > > > -- > Regards, > John Gill
