Bug 1151047 - ClassNotFoundException for webservice resource-adapter with ConfigFile config-property
Summary: ClassNotFoundException for webservice resource-adapter with ConfigFile config...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Integration
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ER5
: 6.1.0
Assignee: Van Halbert
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-09 13:29 UTC by Jan Stastny
Modified: 2016-02-10 08:53 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2016-02-10 08:53:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-3170 0 Blocker Closed Change build to include spring framework jar dependencies for WS translator 2017-03-31 12:43:58 UTC

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


Note You need to log in before you can comment on or make changes to this bug.