Custom task code uses Spring 2.5.6 - clashes with WSO2 1.7.1 Spring version

sergemerz's picture
Hello All, I have built a custom task to do some work. It uses various OSS jar files including Spring 2.5.6. I deployed my jar along with all the depedencies into /webapp/WEB-INF/lib/extensions. Not surprisingly, loading my Spring XML config caused problems which appear to be caused by loading the wrong version of Spring (Error BTW was :org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null"). As a general principle, there is no way of deploying libraries which clash with WSO2 versions - i.e. I cannot get a separate class loader for my custom code ? Regards, Serge
indika's picture

Hi Serge ESB 2.X is based

Hi Serge ESB 2.X is based on OSGI and with that you can do what you want. Thanks Indika
indika's picture

BTW , if your are not using

BTW , if your are not using ESB spring mediator ... you can remove existing spring jars ...and also if the your spring jar's are new , spring mediator may still work if spring have preserved backward compatibility.
sergemerz's picture

Upgrading Spring jars inside WS02 1.7.1

Indika, I will give it a try and post my results on this forum. Serge
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)