NoClassDefFoundError: org/openqa/selenium/WebElement

setting up jenkins with KRE but no luck, keep throwing NoClassDefFoundError, please help.

./katalonc -noSplash -runMode=console -projectPath=“/home/appl/jenkins_slave/workspace/Testing/test-katalon-runtime-engine/test/functional/New_UI/cp-ui-ft/cp-ui-ft.prj” -retry=0 -testSuiteCollectionPath=“Test Suites/Collection/FT_XXX_KRE” -browserType=“Chrome (headless)”

Katalon workspace folder is set to default location: /tmp/session-bfd32d87
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
134 org.codehaus.groovy_2.4.20.v202009301404-e2006-RELEASE ACTIVE

INFO: Katalon Version: 7.9.1
INFO: Command-line arguments: -runMode=console -projectPath=/home/appl/jenkins_slave/workspace/Testing/test-katalon-runtime-engine/test/functional/New_UI/cp-ui-ft/cp-ui-ft.prj -retry=0 -testSuiteCollectionPath=Test Suites/Collection/FT_Airline_KRE -browserType=Chrome (headless)
INFO: User working dir: /var/lib/Katalon_Studio_Engine_Linux_64-7.9.1
INFO: Error log: /tmp/session-bfd32d87/.metadata/.log
INFO: Katalon TestOps server URL: https://analytics.katalon.com
INFO: Katalon Store server URL: https://store.katalon.com
INFO: User home: /home/appl/jenkins_slave
INFO: Java vendor: OpenLogic-OpenJDK
INFO: Java version: 1.8.0-262
INFO: Local OS: Linux 64bit
INFO: CPU load: 0%
INFO: Total memory: 40072 MB
INFO: Free memory: 12766 MB
Start getting machine ID on Linux
End getting machine ID on Linux xxx
Start appending additional signatures
hardwareSerialNumber
osDependentUsername jenkins_slave
End appending additional signatures xxx__jenkins_slave
INFO: Machine ID: xxx
INFO: Your environment is compatible with the Katalon Runtime Engine NODE-LOCKED or FLOATING license. For a fixed machine ID, use a NODE-LOCKED license; for a dynamic machine ID, use a FLOATING license.

Activating…
Start activating offline…
Search for valid offline licenses in folder: /home/appl/jenkins_slave/.katalon/license
Start checking license: KRE_xxx_xxx.lic
KRE_xxx_xxx.lic is valid.
The number of valid offline licenses: 1
The number of Runtime Engine running sessions: 1
Delete folder: bin
Delete folder: Libs
Cleaning up workspace
Opening project file: /home/appl/jenkins_slave/workspace/Testing/test-katalon-runtime-engine/test/functional/New_UI/cp-ui-ft/cp-ui-ft.prj
Generating global variables…
Parsing custom keywords…
Project ‘cp-ui-ft’ opened
Start reloading plugins…

Thu Mar 11 12:56:12 HKT 2021
java.lang.NoClassDefFoundError: org/openqa/selenium/WebElement
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetPublicMethods(Class.java:2902)
at java.lang.Class.getMethods(Class.java:1615)
at com.kms.katalon.custom.parser.NamingMethodVisitor.(NamingMethodVisitor.java:34)
at com.kms.katalon.custom.parser.CustomKeywordParser.parsePluginKeywords(CustomKeywordParser.java:135)
at com.kms.katalon.controller.KeywordController.parseCustomKeywordInStore(KeywordController.java:169)
at com.kms.katalon.controller.KeywordController.parseAllCustomKeywords(KeywordController.java:156)
at com.kms.katalon.activation.plugin.service.PluginService.refreshProjectClasspath(PluginService.java:402)
at com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:231)
at com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:391)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:316)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)
at com.kms.katalon.application.Application.runConsole(Application.java:125)
at com.kms.katalon.application.Application.start(Application.java:88)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebElement
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:702)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:812)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:800)
… 33 more

Start check license task
chromedriver is located at default location: /home/appl/jenkins_slave/.eclipse/702272915_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver. In case your browser is updated to a newer version, please use this command to update chromdriver: --config -webui.autoUpdateDrivers=true
INFO: KATALON_JAVA_HOME: /usr/lib/jvm/openlogic-openjdk-jre-8u262-b10-linux-64/


Test Suites/Collection/FT_Airline_KRE - 20210311_125613…0/1(0%)

Test Suites/Function/CAC/CAC_all - Chrome (headless) - 20210311_125614…0/1(0%)

Launcher status after execution process completed: Running
Start writing execution.uuid file to folder: /home/appl/jenkins_slave/workspace/Testing/test-katalon-runtime-engine/test/functional/New_UI/cp-ui-ft/Reports/20210311_125613/Function/CAC/CAC_all/20210311_125614
Start generating JUnit report folder at: /home/appl/jenkins_slave/workspace/Testing/test-katalon-runtime-engine/test/functional/New_UI/cp-ui-ft/Reports/20210311_125613/Function/CAC/CAC_all/20210311_125614…
JUnit report were generated at folder: /home/appl/jenkins_slave/workspace/Testing/test-katalon-runtime-engine/test/functional/New_UI/cp-ui-ft/Reports/20210311_125613/Function/CAC/CAC_all/20210311_125614
For real-time monitoring and better reporting capabilities please integrate this project with Katalon TestOps (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)
For real-time monitoring and better reporting capabilities please integrate this project with Katalon TestOps (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)
Preparing integration report for Katalon TestOps
Done preparing integration report for Katalon TestOps
Preparing integration report for qTest
Done preparing integration report for qTest
Uploading report to Katalon TestOps…
For real-time monitoring and better reporting capabilities please integrate this project with Katalon TestOps (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)
Report has been sent to Katalon TestOps
Uploading report to qTest…
Report has been sent to qTest


Test Suites/Collection/FT_Airline_KRE - 20210311_125613…0/1(0%)

Test Suites/Function/CAC/CAC_all - Chrome (headless) - 20210311_125614…0/1(0%)

NLS missing message: ConsoleMain_MSG_NON_DEVOPS_LICENSE_COMPATIBLITY in: com.kms.katalon.execution.constants.executionMessages
Execution completed. Exit code: 0.
Start clean up session
End check license task
End clean up session
Start release license task
End release license task
All launchers terminated

Hi
were you able to solve the error? If you did, I’m presenting the same

Hi @itsolutions,

Please grant read and write permission of the folder /var/lib/Katalon_Studio_Engine_Linux_64-7.9.1 to the jenkins user the re-run the test

Hi @arianna.carbonell,
If your scenario is running KRE with Jenkins on Linux. You can refer to my above answer.
If not, can you share the full execution logs with us?

@duyluong this is my error, i dont know whats happend.
We are trying to run a test suite on the KRE and it shows the following error. Someone help me.
Start reloading plugins…
Katalon version: 7.9.1
Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=7.9.1&appType=ENGINE&licenseType=ENTERPRISE
Wed Apr 28 14:43:03 UTC 2021
java.lang.NoClassDefFoundError: org/openqa/selenium/WebElement
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2729)
at java.lang.Class.privateGetPublicMethods(Class.java:2930)
at java.lang.Class.getMethods(Class.java:1643)
at com.kms.katalon.custom.parser.NamingMethodVisitor.(NamingMethodVisitor.java:34)
at com.kms.katalon.custom.parser.CustomKeywordParser.parsePluginKeywords(CustomKeywordParser.java:135)
at com.kms.katalon.controller.KeywordController.parseCustomKeywordInStore(KeywordController.java:169)
at com.kms.katalon.controller.KeywordController.parseAllCustomKeywords(KeywordController.java:156)
at com.kms.katalon.activation.plugin.service.PluginService.refreshProjectClasspath(PluginService.java:402)
at com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:231)
at com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:391)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:316)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)
at com.kms.katalon.application.Application.runConsole(Application.java:125)
at com.kms.katalon.application.Application.start(Application.java:88)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebElement
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:702)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:812)
at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:800)
… 33 more

@arianna.carbonell

Please share with us your Katalon Runtime Engine installed folder.

Home of a system user @duyluong

@arianna.carbonell

You should run KRE with administrator mode or move KRE installed folder to another user folder such as C:/User/username/Documents

I suppose @arianna.carbonell is not on Windows, possibly on Linux. So suggesting the folder C:/xxx to her would not make sense.

@duyluong @kazurayam
I am with Linux

I suppose @arianna.carbonell is not on Windows, possibly on Linux. So suggesting the folder C:/xxx to her would not make sense.
I am with Linux

Sorry for my above mistake. @arianna.carbonell Please add read, write and execute permission to the Katalon Runtime Engine installed folder and rerun again.

sudo chmod -R 777 [Katalon Runtime Engine installed folder]

Thanks,
hello now i have the next problem:

Start check license task
com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite ‘/opt/qa-automation/TestSuites/OneTouch/oneTouch*’ not found.
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:266)
at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:74)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:357)
at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)
at com.kms.katalon.application.Application.runConsole(Application.java:125)

ll /opt/qa-automation/TestSuites/OneTouch/
total 36
-rwxrwxrwx 1 root root 2291 Jun 7 20:19 oneTouch.groovy
-rwxrwxrwx 1 root root 2291 Jun 7 20:19 oneTouchProd.groovy
-rwxrwxrwx 1 root root 12017 Jun 7 20:19 oneTouchProd.ts
-rwxrwxrwx 1 root root 15671 Jun 7 20:19 oneTouch.ts

I need a hel @duyluong

Hi @arianna.carbonell,

Please change the test suite path argument to: -testSuitePath=“TestSuites/OneTouch/oneTouch”