Hi Kamidu,
Seem like some dependency jar has transitive dependency to testng, which
should not.

Please check if any testng is reported in follwing command.

mvn dependency:tree

On Fri, Mar 9, 2018 at 6:00 PM, Kamidu Punchihewa <[email protected]> wrote:

> Hi Devs,
>
> I am in the process of updating the following carbon dependency versions
> on carbon appmgt component,
>
>    - carbon-kernel version to 4.4.24
>    - carbon-commons version to 4.6.21
>    - carbon-identity version to 5.11.120
>    - identity-inbound-auth-oauth version to 5.6.51
>    - carbon-multitenancy version to 4.6.8
>    - carbon-registry version to 4.6.28
>    - carbon-apimgt versiob to 6.2.146
>
> When the new versions are applied successfully. The following error
> occurred while building the component,
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-surefire-plugin:2.18:test (default-test) on project
> org.wso2.carbon.appmgt.hostobjects: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There
> was an error in the forked process
>
> [ERROR] java.lang.NoClassDefFoundError: org/testng/IAlterSuiteListener
>
> [ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
>
> [ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
>
> [ERROR] at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:142)
>
> [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
>
> [ERROR] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
>
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
>
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> [ERROR] at java.lang.Class.forName0(Native Method)
>
> [ERROR] at java.lang.Class.forName(Class.java:348)
>
> [ERROR] at java.util.ServiceLoader$LazyIterator.nextService(
> ServiceLoader.java:370)
>
> [ERROR] at java.util.ServiceLoader$LazyIterator.next(
> ServiceLoader.java:404)
>
> [ERROR] at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
>
> [ERROR] at org.testng.TestNG.addServiceLoaderListeners(TestNG.java:899)
>
> [ERROR] at org.testng.TestNG.initializeConfiguration(TestNG.java:834)
>
> [ERROR] at org.testng.TestNG.run(TestNG.java:948)
>
> [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(
> TestNGExecutor.java:115)
>
> [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.
> executeMulti(TestNGDirectoryTestSuite.java:205)
>
> [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.
> execute(TestNGDirectoryTestSuite.java:108)
>
> [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(
> TestNGProvider.java:111)
>
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.
> invokeProviderInSameClassLoader(ForkedBooter.java:203)
>
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.
> runSuitesInProcess(ForkedBooter.java:155)
>
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(
> ForkedBooter.java:103)
>
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> org.testng.IAlterSuiteListener
>
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> [ERROR] ... 27 more
>
> [ERROR] -> [Help 1]
>
> Any idea what can cause this issue and what steps can be taken to resolve
> this issue?
> Your inputs in this manner is much appreciated.
>
> Thanks and Best Regards,
>
> --
> Kamidu Sachith Punchihewa
> *Senior Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com <https://wso2.com/signature> *
*lean.enterprise.middleware.*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to