Bug 780864 (SOA-3319) - Missing Spring framework dependencies when using CXF web services
Summary: Missing Spring framework dependencies when using CXF web services
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3319
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossWS, Build Process
Version: 5.2.0.ER3,5.2.0.ER4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.2.0 GA,5.2.0.ER5
Assignee: Julian Coleman
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-30 11:57 UTC by Filip Nguyen
Modified: 2011-10-20 12:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-20 12:02:33 UTC
Type: Bug


Attachments (Terms of Use)
soa-3319-additions.txt (4.00 KB, text/plain)
2011-10-04 12:53 UTC, Alessio Soldano
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 780874 0 urgent CLOSED Missing client jars for MTOM support 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 780977 0 urgent CLOSED JBossWS-CXF unit tests broken classpath 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-3319 0 None Closed Missing Spring framework dependencies when using CXF web services 2012-01-13 07:21:32 UTC

Internal Links: 780874 780977

Description Filip Nguyen 2011-08-30 11:57:13 UTC
project_key: SOA

It is not possible to run web service client for CXF webservice with JARs from client directory. 

The problem is that new Spring framework is used in 5.2.0.ER3 (version 3x). For example class that is required at runtime org.springframework.asm.ClassVisitor used to be in client/spring-core.jar but now is located on the server side (jboss-as/server/production/deploy/spring.esb/spring-asm-3.0.3.RELEASE.jar). 

It is possible to easily reproduce this bug when running quickstart webservice_wssecurity with correctly set up classpath (currently the quickstart uses too wide exec-classpath which uses jars both from client's folder and from deploy/**).

Comment 1 Aleksandar Kostadinov 2011-09-01 16:15:22 UTC
Just FYI wsconsume and perhaps wsprovide scripts are also affected by that.

Comment 2 Filip Nguyen 2011-09-02 07:40:09 UTC
At least following jars need to be in client directory: spring-aop-3.0.3.RELEASE.jar, spring-asm-3.0.3.RELEASE.jar, spring-beans.jar, spring-context.jar, spring-core.jar, spring-expression-3.0.3.RELEASE.jar

Also it is necessary to modify CXF installer because it adds spring jars into client directory.

Comment 3 Julian Coleman 2011-09-18 07:59:15 UTC
Link: Added: This issue relates to SOA-3330


Comment 4 Julian Coleman 2011-09-18 08:20:32 UTC
Resolved with revision 10079 of:

  src/main/patches/eap/patch_wscxf_console.xml
  pom.xml

Commit message:

  SOA-3290
  SOA-3319
  SOA-3330
  Use jbossws-cxf-installer version 5.1.2-SOA.

Comment 5 Julian Coleman 2011-09-18 08:20:32 UTC
Release Notes Docs Status: Added: Not Required


Comment 6 David Le Sage 2011-09-18 23:27:18 UTC
Writer: Added: dlesage


Comment 7 Filip Nguyen 2011-10-03 14:50:20 UTC
Verified. After running CXF installer, the jars popup.

Comment 8 Aleksandar Kostadinov 2011-10-04 05:25:06 UTC
ws*.sh/bat still don't work properly. Are all necessary dependencies also added to these scripts?

Comment 9 trev 2011-10-04 12:27:55 UTC
Fernando thinks the scripts refer to the spring 2 jars and not the spring 3 jars in the patch, can you investigate please.

Comment 10 Alessio Soldano 2011-10-04 12:53:10 UTC
Yes, Fernando is right. Attached you find and additional patch for fixing the scripts.

Comment 11 Alessio Soldano 2011-10-04 12:53:10 UTC
Attachment: Added: soa-3319-additions.txt


Comment 12 Permaine Cheung 2011-10-04 14:26:40 UTC
jbossws-cxf-3.1.2-6.SP9.5.1.soa5.el6 built with the attached patch.

Comment 13 Douglas Palmer 2011-10-04 22:34:36 UTC
Fix will be included in the ER5 build.

Comment 14 Brian Fitzpatrick 2011-10-06 12:34:31 UTC
Link: Added: This issue is a dependency of JBIDE-9831


Comment 15 Filip Nguyen 2011-10-20 12:02:33 UTC
After installing EDS with CXF following spring jars are copied to the client directory:

spring-aop.jar
spring-asm.jar
spring-beans.jar
spring-context.jar
spring-core.jar
spring-expression.jar

Manifest says they are jars of spring version 3.0.6.RELEASE.

So I am closing the issue.

Comment 16 Aleksandar Kostadinov 2011-10-20 12:48:42 UTC
Link: Added: This issue relates to SOA-3446



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