Yes, I have jdk1.6.  but I set JAVA_HOME to point to a jdk1.4.2 directory. 
I'll follow your other tasks and respond back.

Brian


Jason van Zyl-2 wrote:
> 
> I see on the m2eclipse list you're using JDK 1.6 which we haven't  
> tested our examples with just FYI.
> 
> On 7 Jun 07, at 7:11 PM 7 Jun 07, Jason van Zyl wrote:
> 
>> Need to know what version of Maven, and if you're starting from  
>> scratch I assume the latest released version of surefire which has  
>> some problems.
>>
>> Look in your local repository:
>>
>> 1. remove  $localRepository/org/apache/maven/plugins/maven-surefire- 
>> plugin
>> 2. reset the killerapp back to its original state
>> 3. run the example again
>> 4. Tell me what's in $localRepository/org/apache/maven/plugins/ 
>> maven-surefire-plugin
>>
>> Then I know what version of Maven and the Surefire plugin and I can  
>> help you.
>>
>> On 7 Jun 07, at 6:47 PM 7 Jun 07, bkbonner wrote:
>>
>>>
>>> So, one of my guys is taking a look at sonatype's mavenbook example
>>> http://www.sonatype.com/book/simple-project.html  where it says to  
>>> run mvn
>>> install on the killerapp project.
>>>
>>> We're seeing this error msg.   Has anyone else seen this problem  
>>> and how did
>>> they solve it.  I googled a bit and tried using forkMode to get  
>>> around this
>>> problem to no avail.
>>>
>>> Brian
>>>
>>> --------------------------------------------------------------------- 
>>> ----------
>>> Battery:  
>>> com.training.killerapp.store.xstream.KillerAppXStreamStoreTest
>>> --------------------------------------------------------------------- 
>>> ----------
>>> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.953 sec
>>>
>>> testPersistence 
>>> (com.training.killerapp.store.xstream.KillerAppXStreamStoreTest)
>>> Time elapsed: 0.922 sec  <<< ERROR!
>>>
>>> [ stdout ]  
>>> ---------------------------------------------------------------
>>>
>>>
>>>
>>> [ stderr ]  
>>> ---------------------------------------------------------------
>>>
>>>
>>>
>>> [ stacktrace ]  
>>> -----------------------------------------------------------
>>>
>>> java.lang.LinkageError: loader constraint violation: loader  
>>> (instance of
>>> <bootloader>) previously initiated loading for a different type  
>>> with name
>>> "org/xml/sax/InputSource"
>>>     at
>>> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse 
>>> (DOMParser.java:218)
>>>     at
>>> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse 
>>> (DocumentBuilderImpl.java:283)
>>>     at
>>> com.thoughtworks.xstream.io.xml.DomDriver.createReader 
>>> (DomDriver.java:40)
>>>     at
>>> com.thoughtworks.xstream.io.xml.DomDriver.createReader 
>>> (DomDriver.java:29)
>>>     at com.thoughtworks.xstream.XStream.fromXML(XStream.java:490)
>>>     at
>>> com.training.killerapp.store.xstream.KillerAppXStreamStore.read 
>>> (KillerAppXStreamStore.java:193)
>>>     at
>>> com.training.killerapp.store.xstream.KillerAppXStreamStore.getUser 
>>> (KillerAppXStreamStore.java:134)
>>>     at
>>> com.training.killerapp.store.xstream.KillerAppXStreamStoreTest.testPe 
>>> rsistence(KillerAppXStreamStoreTest.java:63)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke 
>>> (NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>>> (DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at junit.framework.TestCase.runTest(TestCase.java:154)
>>>     at junit.framework.TestCase.runBare(TestCase.java:127)
>>>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>>>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>>>     at junit.framework.TestResult.run(TestResult.java:109)
>>>     at junit.framework.TestCase.run(TestCase.java:118)
>>>     at junit.framework.TestSuite.runTest(TestSuite.java:208)
>>>     at junit.framework.TestSuite.run(TestSuite.java:203)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke 
>>> (NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>>> (DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at
>>> org.apache.maven.surefire.battery.JUnitBattery.executeJUnit 
>>> (JUnitBattery.java:230)
>>>     at
>>> org.apache.maven.surefire.battery.JUnitBattery.execute 
>>> (JUnitBattery.java:204)
>>>     at org.apache.maven.surefire.Surefire.executeBattery 
>>> (Surefire.java:213)
>>>     at org.apache.maven.surefire.Surefire.run(Surefire.java:161)
>>>     at org.apache.maven.surefire.Surefire.run(Surefire.java:85)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke 
>>> (NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>>> (DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at
>>> org.apache.maven.surefire.SurefireBooter.runTestsInProcess 
>>> (SurefireBooter.java:232)
>>>     at org.apache.maven.surefire.SurefireBooter.run 
>>> (SurefireBooter.java:181)
>>>     at org.apache.maven.test.SurefirePlugin.execute 
>>> (SurefirePlugin.java:338)
>>>     at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo 
>>> (DefaultPluginManager.java:443)
>>>     at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
>>> (DefaultLifecycleExecutor.java:539)
>>>     at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi 
>>> fecycle(DefaultLifecycleExecutor.java:480)
>>>     at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
>>> (DefaultLifecycleExecutor.java:459)
>>>     at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan 
>>> dleFailures(DefaultLifecycleExecutor.java:311)
>>>     at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen 
>>> ts(DefaultLifecycleExecutor.java:278)
>>>     at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
>>> (DefaultLifecycleExecutor.java:143)
>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke 
>>> (NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>>> (DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: 
>>> 315)
>>>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>     at org.codehaus.classworlds.Launcher.mainWithExitCode 
>>> (Launcher.java:430)
>>>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>
>>>
>>>
>>> -- 
>>> View this message in context: http://www.nabble.com/loader- 
>>> constraint-violation---killerapp-example-at-sonatype- 
>>> tf3886824s177.html#a11017677
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder and PMC Chair, Apache Maven
>> jason at sonatype dot com
>> ----------------------------------------------------------
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> Thanks,
> 
> Jason
> 
> ----------------------------------------------------------
> Jason van Zyl
> Founder and PMC Chair, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/loader-constraint-violation---killerapp-example-at-sonatype-tf3886824s177.html#a11019483
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to