Hi, fixed by adding org.wso2.carbon.caching.core:4.0.2 and org.wso2.carbon.user.core:4.0.2 as test dependencies.
thanks, On Tue, Oct 2, 2012 at 10:52 AM, Kasun Gajasinghe <[email protected]> wrote: > > When we updated the caching-core version to 4.0.1, it failed with the > following error. This may be a compatibility issue between newer registry > versions, and caching core 4.0.1. > > Mind that product packs contain the correct version. But at the component > level, service-mgt and module-mgt was using caching core 4.0.0 to run > tests. > > > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.968 sec > <<< FAILURE! > testSteps(org.wso2.carbon.service.mgt.TestPolicyUtil) Time elapsed: 1.948 > sec <<< FAILURE! > junit.framework.AssertionFailedError: Failed to initialize the registry. > Caused by: Error in init bootstrap realm > at junit.framework.Assert.fail(Assert.java:47) > at org.wso2.carbon.service.mgt.BaseTestCase.setUp(BaseTestCase.java:67) > at org.wso2.carbon.service.mgt.TestPolicyUtil.setUp(TestPolicyUtil.java:50) > at junit.framework.TestCase.runBare(TestCase.java:128) > at junit.framework.TestResult$1.protect(TestResult.java:106) > > Thanks, > --KasunG > > On Mon, Oct 1, 2012 at 6:22 PM, Sagara Gunathunga <[email protected]> wrote: > >> >> This issue was introduced by registry core module where registry.core >> 4.0.2 still use caching.core 4.0.0 version instead of 4.0.1 version. The >> particular class called CacheInvalidator introduced in caching.core 4.0.1 >> version and not available on 4.0.0. Please look into this issue. >> >> *+- org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.0.2:compile* >> [INFO] | +- commons-io.wso2:commons-io:jar:2.0.0.wso2v1:compile (version >> managed from 2.0.0.wso2v2) >> [INFO] | +- net.sourceforge.findbugs:annotations:jar:1.3.2:compile >> [INFO] | +- >> org.eclipse.osgi:org.eclipse.osgi.services:jar:3.2.0.v20090520-1800:compile >> (version managed from 3.3.0.v20110513) >> [INFO] | +- >> org.apache.ws.commons.schema.wso2:XmlSchema:jar:1.4.7.wso2v2:compile >> [INFO] | | \- org.apache.ws.commons.schema:XmlSchema:jar:1.4.3:compile >> (version managed from 1.4.7-wso2v2) >> [INFO] | +- >> org.wso2.carbon:org.wso2.carbon.registry.api:jar:4.0.0:compile >> [INFO] | +- >> org.wso2.carbon:org.wso2.carbon.registry.xboot:jar:4.0.0:compile >> [INFO] | +- >> org.wso2.securevault:org.wso2.securevault:jar:1.0.0-wso2v2:compile >> [INFO] | | +- >> org.apache.ws.commons.axiom:axiom-api:jar:1.2.11-wso2v2:compile (version >> managed from 1.2.11) >> [INFO] | | | +- >> org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2:compile >> [INFO] | | | +- >> org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.6:compile >> [INFO] | | | \- >> org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile >> [INFO] | | +- >> org.apache.ws.commons.axiom:axiom-impl:jar:1.2.11-wso2v2:compile (version >> managed from 1.2.11) >> [INFO] | | | \- org.codehaus.woodstox:wstx-asl:jar:3.2.9:runtime >> (scope managed from compile) >> [INFO] | | +- log4j:log4j:jar:1.2.14:compile >> [INFO] | | +- jline:jline:jar:0.9.94:compile >> [INFO] | | +- commons-logging:commons-logging:jar:1.1.1:compile >> [INFO] | | +- commons-cli:commons-cli:jar:1.0:compile >> [INFO] | | +- commons-io:commons-io:jar:2.0:compile >> [INFO] | | \- commons-codec:commons-codec:jar:1.2:compile >> [INFO] | +- org.wso2.carbon:org.wso2.carbon.user.core:jar:4.0.0:compile >> (version managed from 4.0.1) >> [INFO] | | +- org.wso2.carbon:org.wso2.carbon.user.api:jar:4.0.0:compile >> [INFO] | | \- commons-dbcp.wso2:commons-dbcp:jar:1.4.0.wso2v1:compile >> *[INFO] | +- >> org.wso2.carbon:org.wso2.carbon.caching.core:jar:4.0.0:compile* >> >> >> Thanks ! >> >> On Mon, Oct 1, 2012 at 5:53 PM, Sagara Gunathunga <[email protected]>wrote: >> >>> >>> I'm getting following exception when building >>> "components/module-mgt/org.wso2.carbon.module.mgt/4.0.2" it seems missing >>> some classes any input ? >>> >>> >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 3.971s >>> [INFO] Finished at: Mon Oct 01 17:47:44 IST 2012 >>> [INFO] Final Memory: 40M/299M >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] Failed to execute goal >>> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on >>> project org.wso2.carbon.module.mgt: Execution default-test of goal >>> org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: >>> java.lang.reflect.InvocationTargetException; nested exception is >>> java.lang.reflect.InvocationTargetException: null: >>> org/wso2/carbon/caching/core/CacheInvalidator: >>> org.wso2.carbon.caching.core.CacheInvalidator -> [Help 1] >>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to >>> execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test >>> (default-test) on project org.wso2.carbon.module.mgt: Execution >>> default-test of goal >>> org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: >>> java.lang.reflect.InvocationTargetException; nested exception is >>> java.lang.reflect.InvocationTargetException: null >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>> 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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) >>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution >>> default-test of goal >>> org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: >>> java.lang.reflect.InvocationTargetException; nested exception is >>> java.lang.reflect.InvocationTargetException: null >>> at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >>> ... 19 more >>> Caused by: org.apache.maven.surefire.util.SurefireReflectionException: >>> java.lang.reflect.InvocationTargetException; nested exception is >>> java.lang.reflect.InvocationTargetException: null >>> at >>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:197) >>> at >>> org.apache.maven.surefire.util.ReflectionUtils.invokeGetter(ReflectionUtils.java:69) >>> at >>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.getSuites(ProviderFactory.java:148) >>> at >>> org.apache.maven.plugin.surefire.booterclient.ForkStarter.getSuitesIterator(ForkStarter.java:317) >>> at >>> org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:149) >>> at >>> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:118) >>> at >>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199) >>> at >>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176) >>> at >>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:135) >>> at >>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98) >>> at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >>> ... 20 more >>> Caused by: java.lang.reflect.InvocationTargetException >>> 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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) >>> ... 30 more >>> *Caused by: java.lang.NoClassDefFoundError: >>> org/wso2/carbon/caching/core/CacheInvalidator* >>> at java.lang.Class.getDeclaredMethods0(Native Method) >>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) >>> at java.lang.Class.getMethod0(Class.java:2670) >>> at java.lang.Class.getMethod0(Class.java:2679) >>> at java.lang.Class.getMethod(Class.java:1603) >>> at >>> org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(ReflectionUtils.java:57) >>> at >>> org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isSuiteOnly(JUnit3TestChecker.java:64) >>> at >>> org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isValidJUnit3Test(JUnit3TestChecker.java:59) >>> at >>> org.apache.maven.surefire.common.junit3.JUnit3TestChecker.accept(JUnit3TestChecker.java:54) >>> at >>> org.apache.maven.surefire.junit.PojoAndJUnit3Checker.accept(PojoAndJUnit3Checker.java:43) >>> at >>> org.apache.maven.surefire.util.DefaultDirectoryScanner.locateTestClasses(DefaultDirectoryScanner.java:84) >>> at >>> org.apache.maven.surefire.junit.JUnit3Provider.scanClassPath(JUnit3Provider.java:128) >>> at >>> org.apache.maven.surefire.junit.JUnit3Provider.getSuites(JUnit3Provider.java:134) >>> ... 35 more >>> >>> >>> >>> Thanks ! >>> >>> -- >>> Sagara Gunathunga >>> >>> Technical Lead; WSO2, Inc.; http://wso2.com >>> V.P Apache Web Services ; http://ws.apache.org/ >>> Blog ; http://ssagara.blogspot.com >>> >>> >> >> >> -- >> Sagara Gunathunga >> >> Technical Lead; WSO2, Inc.; http://wso2.com >> V.P Apache Web Services ; http://ws.apache.org/ >> Blog ; http://ssagara.blogspot.com >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Kasun Gajasinghe* > Software Engineer; > Development Technologies Team, WSO2 Inc.; http://wso2.com , > *email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813* > *linked-in: *http://lk.linkedin.com/in/gajasinghe* > * > *blog: **http://blog.kasunbg.org* <http://blog.kasunbg.org>* > twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>* > * > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Supun Malinga, Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email - [email protected] <[email protected]> mobile - 071 56 91 321
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
