Bug 1098018
Summary: | NoClassDefFoundError of dependent jar class during process execution | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Toshiya Kobayashi <tkobayas> | ||||
Component: | jBPM Core | Assignee: | Alessandro Lazarotti <alazarot> | ||||
Status: | CLOSED EOL | QA Contact: | Ivo Bek <ibek> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.0.1 | CC: | alazarot | ||||
Target Milestone: | ER1 | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Fixed Issue Summary:
A bug with handling maven dependencies in kie-ci occurred in which only direct dependencies of the project were taken, but the transitive dependencies were not. This would result in the following error:
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
This issue has been resolved with 6.0.3, and the script runs without errors.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-03-27 20:13:18 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1115481 | ||||||
Attachments: |
|
Description
Toshiya Kobayashi
2014-05-15 05:47:48 UTC
Created attachment 895714 [details]
jbpm-spring-dep-test-new.zip
Maciej, might this be solved by similar previous fixes? this was indeed a bug with handling maven dependencies in kie-ci as it was only taking the direct dependencies of the project and not including transitive dependencies. fixed on master drools master: https://github.com/droolsjbpm/drools/commit/604f86c13596bc0d046753cacd8cd44221e09b60 backported to 6.0.x branch drools 6.0.x: https://github.com/droolsjbpm/drools/commit/a5549b276c934ce3bb92249abfde606d11e67bab Verified in BPMS 6.0.3.ER1 (6.0.3-redhat-5) Output of the test is following: Starting ScriptTask Calling Spring Service Thread.currentThread().getContextClassLoader() = sun.misc.Launcher$AppClassLoader@3aeb203b CheckServiceClient.class.getClassLoader() = java.net.URLClassLoader@7548fbb4 Aug 26, 2014 4:03:48 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1ab7e237: startup date [Tue Aug 26 16:03:48 CEST 2014]; root of context hierarchy Aug 26, 2014 4:03:48 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from URL [jar:file:/home/ibek/.m2/repository/com/sample/jbpm-spring-dep-jar/1.0.0-SNAPSHOT/jbpm-spring-dep-jar-1.0.0-SNAPSHOT.jar!/checkservice.xml] Aug 26, 2014 4:03:48 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7eb6e1: defining beans [checkFeasibilityService]; root of factory hierarchy context.getClassLoader() = java.net.URLClassLoader@7548fbb4 false false Completed ScriptTask Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.749 sec |