On 7/17/07, syg6 <[EMAIL PROTECTED]> wrote:

Hi Matt,

I would have thought the opposite - it seems some library (Spring validator)
is somehow 'bundling' version 2.1 of commons-lang when in fact it needs 2.3.
It seems to me that I need to tell it to use 2.3, not 2.1.

Sorry, I misunderstood. You sound like you know what you're doing though. ;-)


What I don't get is why this broke only after exploding Appfuse, and who is
'including' version 2.1. I ran the 'mvn -X' command and 'commons-lang-2-1'
is popping up all over the place. Is there any way to make those apps that
depend on 2.1 instead use 2.3? I am a Maven newb, as you can probably tell

You can use <exclusions> to exclude commons-lang from those
dependencies. Is there a dependency that actually references 2.3 and
it's just not getting picked up? If so, I've seen this happen before -
usually Maven picks the shortest path. That's the reason why putting
it in your pom.xml explicitly should fix the problem.

Matt

...

Thanks!
Bob



mraible wrote:
>
> If you add an explicit dependency on commons-lang-2.1 to your pom.xml,
> it should fix any transitive dependency issues. The problem is likely
> because struts-menu (or another library) depends on a newer version of
> commons-lang. You can run "mvn -X > mvn.log" to see the full
> dependency list in mvn.log.
>
> Matt
>
> On 7/17/07, syg6 <[EMAIL PROTECTED]> wrote:
>>
>> I have been working with Appfuse M5 for a couple weeks now. I had no
>> problem
>> with anything while working with the JAR-ed and WAR-ed version.
>>
>> But then I have 'exploded' Appfuse into my Eclipse using 'mvn
>> appfuse:full-source' and 'mvn eclipse:eclipse'. And now when I run 'mvn
>> test
>> -Dtest=PersonControllerTest' I get this error:
>>
>> java.lang.NoSuchFieldError: IS_JAVA_1_6
>> at
>> org.springmodules.validation.util.LibraryUtils.<clinit>(LibraryUtils.java:40)
>>
>> http://forum.springframework.org/archive/index.php/t-35083.html This
>> post
>> seems to say that the Spring Validation framework has a dependency on
>> commons-lang-2.1, whereas Appfuse uses commons-lang-2.3.
>>
>> But I can't find commons-lang-2.1 anywhere in Appfuse and this wasn't
>> happening before using the exploded verison of Appfuse.
>>
>> Btw, I am using Spring MVC Basic.
>>
>> Many thanks!
>> Bob
>> --
>> View this message in context:
>> 
http://www.nabble.com/Problems-executing-controller-test-after-running-mvn-appfuse%3Afull-source-tf4097676s2369.html#a11652009
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/Problems-executing-controller-test-after-running-mvn-appfuse%3Afull-source-tf4097676s2369.html#a11652420
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to