[ 
http://jira.codehaus.org/browse/MRELEASE-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=154613#action_154613
 ] 

Lammert Westerhoff commented on MRELEASE-140:
---------------------------------------------

The stacktrace:

[INFO] java.lang.NoClassDefFoundError: com/.../AdoService
[INFO]  at java.lang.Class.getDeclaredMethods0(Native Method)
[INFO]  at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
[INFO]  at java.lang.Class.getMethod0(Class.java:2670)
[INFO]  at java.lang.Class.getMethod(Class.java:1603)
[INFO]  at 
org.easymock.internal.ObjectMethodsFilter.<init>(ObjectMethodsFilter.java:32)
[INFO]  at org.easymock.internal.MocksControl.createMock(MocksControl.java:48)
[INFO]  at org.easymock.classextension.EasyMock.createMock(EasyMock.java:50)
[INFO]  at 
com.ac.util.test.easymock.MockedTest.createMethodMocks(MockedTest.java:93)
[INFO]  at 
com.ac.util.test.easymock.MockedTest.createMethodMocks(MockedTest.java:72)
[INFO]  at 
com.ac.util.test.easymock.runner.MockedClassMethodsRunner.createMethodRunner(MockedClassMethodsRunner.java:52)
[INFO]  at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
[INFO]  at 
com.ac.util.test.easymock.runner.MockedClassMethodsRunner.invokeTestMethod(MockedClassMethodsRunner.java:68)
[INFO]  at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
[INFO]  at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
[INFO]  at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
[INFO]  at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
[INFO]  at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
[INFO]  at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
[INFO]  at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
[INFO]  at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]  at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
[INFO]  at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
[INFO] Caused by: java.lang.ClassNotFoundException: 
com.ac.dms.datamodel.essentials.AdoService
[INFO]  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[INFO]  at java.security.AccessController.doPrivileged(Native Method)
[INFO]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[INFO]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[INFO]  ... 26 more


> Tests fail during release:perform but work elsewhere
> ----------------------------------------------------
>
>                 Key: MRELEASE-140
>                 URL: http://jira.codehaus.org/browse/MRELEASE-140
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>         Environment: Maven 2.0.4. Linux 
>            Reporter: Adrian
>            Priority: Blocker
>         Attachments: com.dolby.pics.core.ejb.bean.CountryBeanTestCase.txt, 
> perform-output, TEST-com.dolby.pics.core.ejb.bean.CountryBeanTestCase.xml, 
> WORKING-TEST-com.dolby.pics.core.ejb.bean.CountryBeanTestCase.xml
>
>
> h2. Summary
> I have a project that builds successfully when {{mvn clean install}} is 
> executed.
> When {{mvn clean release:prepare}} is executed the integration tests run 
> successfully too.
> When {{mvn release:perform}} is executed the junit tests using surefire fail.
> h2. Details
> h3. The project layout
> The project is an EJB 3 project. The unit tests bootstrap/startup an embedded 
> EJB container to test the EJBs. The container is configured via a set of xml 
> and property files that are specified in the testResources section of the 
> pom. The embedded container is a dependency of the project with _test_ scope.
> h3. release:perform output
> The output of the release:perform goal is attached to this issue.
> h3. surefire junit test report
> The output of the release:perform goal is attached to this issue. A snippet 
> is shown here:
> {code}
> -------------------------------------------------------------------------------
> Battery: com.dolby.pics.core.ejb.bean.CountryBeanTestCase
> -------------------------------------------------------------------------------
> Tests run: 11, Failures: 0, Errors: 11, Time elapsed: 7.234 sec 
> testGetAll(com.dolby.pics.core.ejb.bean.CountryBeanTestCase)  Time elapsed: 
> 2.255 sec  <<< ERROR!
> [ stdout ] ---------------------------------------------------------------
> [ stderr ] ---------------------------------------------------------------
> [ stacktrace ] -----------------------------------------------------------
> java.lang.RuntimeException: org.jboss.xb.binding.JBossXBRuntimeException: 
> Failed to create a new SAX parser
>       at 
> org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:391)
>       at 
> com.dolby.pics.test.AbstractEJBTestCase.startupEmbeddedJboss(AbstractEJBTestCase.java:63)
>       at 
> com.dolby.pics.test.AbstractEJBTestCase.setUp(AbstractEJBTestCase.java:145)
>       at 
> com.dolby.pics.core.ejb.bean.CountryBeanTestCase.setUp(CountryBeanTestCase.java:43)
>       at junit.framework.TestCase.runBare(TestCase.java:128)
>       at junit.framework.TestResult$1.protect(TestResult.java:110)
>       at junit.framework.TestResult.runProtected(TestResult.java:128)
>       at junit.framework.TestResult.run(TestResult.java:113)
>       at junit.framework.TestCase.run(TestCase.java:120)
>       at junit.framework.TestSuite.runTest(TestSuite.java:228)
>       at junit.framework.TestSuite.run(TestSuite.java:223)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:615)
>       at 
> org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>       at 
> org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>       at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:615)
>       at 
> org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
>       at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
>       at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:615)
>       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)
> Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a 
> new SAX parser
>       at 
> org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
>       at 
> org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:84)
>       at 
> org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:380)
>       ... 44 more
> Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX 
> parser
>       at 
> org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:69)
>       at 
> org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:55)
>       at 
> org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
>       ... 46 more
> Caused by: javax.xml.parsers.ParserConfigurationException: validation is not 
> supported
>       at 
> org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:100)
>       at 
> org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:65)
>       ... 48 more
> {code}
> I would guess the problem is regarding something not on the class path when 
> the tests run within release:perform, but I am not sure. This is a eral 
> blocker as we cannot release a working project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to