Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1151047

Summary: ClassNotFoundException for webservice resource-adapter with ConfigFile config-property
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Jan Stastny <jstastny>
Component: IntegrationAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: dlesage, felias, jstastny, vhalbert
Target Milestone: ER5Keywords: QA-Closed
Target Release: 6.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When ConfigFile config-property with webservice resource-adapter was set, an exception occurred when the application was started. This was fixed by upgrading the spring framework to versoi9n 3.2.12 and changing it to use name="javax.ws.rs.api" slot="2.0". As a result, users will no longer encounter this exception.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 08:53:25 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:

Description Jan Stastny 2014-10-09 13:29:00 UTC
Description:
When ConfigFile config-property with webservice resource-adapter is set, then during server startup an exception occurs. The ConfigFile property contains string with path in local filesystem. Content of the file has no effect to the outcome. When the ConfigFile property is removed, the server starts fine.

The exception stack is here:

ERROR [org.jboss.msc.service.fail] (ResourceAdapterDeploymentService Thread Pool -- 1) MSC000001: Failed to start service jboss.ra.deployment.csdyn: org.jboss.msc.service.StartException in service jboss.ra.deployment.csdyn: JBAS010446: Failed to start RA deployment [csdyn]
.
.
.
Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/BeansException
.
.
.
Caused by: java.lang.ClassNotFoundException: org.springframework.beans.BeansException from [Module "org.apache.cxf.impl:main" from local module loader @77c2bc0d (finder: local module finder @11c836e8 (roots: /home/jstastny/DV-6.1.0-ER2/jboss-eap-6.3/modules,/home/jstastny/DV-6.1.0-ER2/jboss-eap-6.3/modules/system/layers/dv,/home/jstastny/DV-6.1.0-ER2/jboss-eap-6.3/modules/system/layers/base))]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final-redhat-1]
	... 10 more

Version:
Occurs on DV 6.1.0 ER2

Expected result: server startup with no errors

Actual result: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) started (with errors) in ...

Comment 6 Van Halbert 2014-11-18 20:16:52 UTC
We're going to need all the spring framework jars, the module needed to be the following in order to start:

<module xmlns="urn:jboss:module:1.1" name="org.springframework.spring">
  <resources>
    <resource-root path="spring-beans-3.0.7.RELEASE.jar"/>
    <resource-root path="spring-context-3.0.7.RELEASE.jar"/>    
    <resource-root path="spring-core-3.0.7.RELEASE.jar"/>
    <resource-root path="spring-asm-3.0.7.RELEASE.jar"/>
    <resource-root path="spring-expression-3.0.7.RELEASE.jar"/>
    
    <resource-root path="spring-aop-3.0.7.RELEASE.jar"/>    
    <resource-root path="spring-tx-3.0.7.RELEASE.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
    <module name="org.apache.commons.logging"/> 
  </dependencies>
</module>

Comment 7 JBoss JIRA Server 2014-11-18 20:18:50 UTC
Van Halbert <vhalbert> updated the status of jira TEIID-3170 to Reopened

Comment 9 Van Halbert 2014-11-25 19:41:00 UTC
TEIID kit will be updated to have the spring framework 3.2.12 version (https://bugzilla.redhat.com/show_bug.cgi?id=1166378) and the ClassNotFoundException will be fixed by changing to use name="javax.ws.rs.api" slot="2.0".

Comment 10 JBoss JIRA Server 2014-12-09 14:35:26 UTC
Van Halbert <vhalbert> updated the status of jira TEIID-3170 to Resolved

Comment 11 JBoss JIRA Server 2015-10-08 14:39:55 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3170 to Closed