You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bkbonner <br...@paraware.com> on 2007/06/08 00:47:00 UTC
loader constraint violation - killerapp example at sonatype
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.testPersistence(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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: loader constraint violation - killerapp example at sonatype
Posted by bkbonner <br...@paraware.com>.
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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder and PMC Chair, Apache Maven
>> jason at sonatype dot com
>> ----------------------------------------------------------
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder and PMC Chair, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: loader constraint violation - killerapp example at sonatype
Posted by Jason van Zyl <ja...@maven.org>.
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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder and PMC Chair, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: loader constraint violation - killerapp example at sonatype
Posted by Jason van Zyl <ja...@maven.org>.
On 7 Jun 07, at 10:44 PM 7 Jun 07, bkbonner wrote:
>
> Jason,
>
> I was going to ask this in another post -- I had a litany of
> versions of the
> surefire plugin out in the directory. The version that is there
> right now
> is 2.3.
>
> The version of maven is 2.0.6. I tried JDK 1.4.2, but got this error:
>
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 0.11 sec <<<
> FAILURE!
> testUpdatePage
> (com.training.killerapp.store.memory.KillerAppMemoryStoreTest)
> Time elapsed: 0.016 sec <<< ERROR!
> java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/
> Integer;
>
> Based on this, I think I need jdk1.5.
>
I know it works with 1.5, I've honestly not tested it with 1.6.
> Brian
>
>
> Jason van Zyl-2 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.testP
>>> er
>>> sistence(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.executeGoalWithL
>>> if
>>> ecycle(DefaultLifecycleExecutor.java:480)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>>> (DefaultLifecycleExecutor.java:459)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
>>> nd
>>> leFailures(DefaultLifecycleExecutor.java:311)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
>>> nt
>>> s(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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder and PMC Chair, Apache Maven
>> jason at sonatype dot com
>> ----------------------------------------------------------
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/loader-
> constraint-violation---killerapp-example-at-sonatype-
> tf3886824s177.html#a11019647
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: loader constraint violation - killerapp example at sonatype
Posted by bkbonner <br...@paraware.com>.
Jason,
I was going to ask this in another post -- I had a litany of versions of the
surefire plugin out in the directory. The version that is there right now
is 2.3.
The version of maven is 2.0.6. I tried JDK 1.4.2, but got this error:
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.11 sec <<<
FAILURE!
testUpdatePage(com.training.killerapp.store.memory.KillerAppMemoryStoreTest)
Time elapsed: 0.016 sec <<< ERROR!
java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
Based on this, I think I need jdk1.5.
Brian
Jason van Zyl-2 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.testPer
>> sistence(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.executeGoalWithLif
>> ecycle(DefaultLifecycleExecutor.java:480)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>> (DefaultLifecycleExecutor.java:459)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
>> leFailures(DefaultLifecycleExecutor.java:311)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
>> s(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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder and PMC Chair, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/loader-constraint-violation---killerapp-example-at-sonatype-tf3886824s177.html#a11019647
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: loader constraint violation - killerapp example at sonatype
Posted by Jason van Zyl <ja...@maven.org>.
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.testPer
> sistence(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.executeGoalWithLif
> ecycle(DefaultLifecycleExecutor.java:480)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:459)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
> leFailures(DefaultLifecycleExecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
> s(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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: loader constraint violation - killerapp example at sonatype
Posted by bkbonner <br...@paraware.com>.
To be more specific, I added:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.2</version>
<configuration>
<forkMode>always</forkMode>
</configuration>
</plugin>
</plugins>
</build>
to the pom.xml in the killlerapp-store-xstream project.
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.testPersistence(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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(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#a11017732
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org