I have been working on a small example web application that started off as a traditional war file. I tested it under tomcat and after it worked I deployed it to the DM Server and all works fine. I then started to move the application over to a Shared Libraries WAR. In the traditional war the commons logging jar was included and all worked fine. I was able to make a Shared Libraries WAR file and it deployed with errors. In the end I was able to remove the following Import-Bundle entry from the manifest file allowing the application to deploy and function.
The error that the DM server returned when the Import-Bundle entry was present in the manifest file is:Code:com.springsource.org.apache.commons.logging;version="[1.1.1,1.1.1]"
Why is the Shared Services WAR failing to deploy when the commons logging jar is imported as a bundle?Code:[2009-05-27 16:18:26.489] onnection(5)-192.168.0.2 <SPOF0005W> Detected Import-Bundle of bundle 'com.springsource.org.apache.commons.logging' version '1.1.1' which exports packages that are exported by the system bundle: consider importing the packages explicitly. For example, use Import-Package: org.apache.commons.logging,org.apache.commons.logging.impl. [2009-05-27 16:18:29.306] onnection(5)-192.168.0.2 <SPFF0002I> Wrote dump file "C:\development\springsource-dm-server-1.0.2.RELEASE\serviceability\dump\2009-05-27_16-18-28.dump" [2009-05-27 16:18:29.659] onnection(5)-192.168.0.2 <SPDE0018E> Unable to install application from location 'file:///C:/development/springsource-dm-server-1.0.2.RELEASE/stage/myspring-webapp.war'. Could not satisfy constraints for bundle 'com.mycompany.example.myspring-webapp-shared-libs' at version '1.0.0'. Cannot resolve: com.mycompany.example.myspring-webapp-shared-libs Resolver report: Bundle: com.mycompany.example.myspring-webapp-shared-libs_1.0.0 - Uses Conflict: Import-Package: org.springframework.beans.factory.support; version="2.5.6" Possible Supplier: org.springframework.beans_2.5.6.A - Export-Package: org.springframework.beans.factory.support; version="2.5.6.A" Possible Conflicts: org.springframework.core,org.apache.commons.logging,net.sf.cglib.proxy,org.springframework.util,org.springframework.core.io,org.springframework.beans,org.springframework.core.io.support,org.springframework.beans.factory.config,org.springframework.beans.factory Possible Supplier: org.springframework.beans_2.5.6 - Export-Package: org.springframework.beans.factory.support; version="2.5.6" Possible Conflicts: org.springframework.core,org.apache.commons.logging,net.sf.cglib.proxy,org.springframework.util,org.springframework.core.io,org.springframework.beans,org.springframework.core.io.support,org.springframework.beans.factory.config,org.springframework.beans.factory . [2009-05-27 16:18:29.765] onnection(5)-192.168.0.2 <SPDE0011E> Deployment of 'com.mycompany.example.myspring-webapp-shared-libs' version '1' failed.
The following is the content of the Shared Service WAR manifest file that works. I am using an older version of Spring, (version 2.5.6) compared to the included version of Spring, (2.5.6.A). I thought that this would not be a problem because there might be a case to move older applications over and then start a process of upgrading.
Code:Manifest-Version: 1.0 Bundle-Name: MySpring Web Application Bundle-Classpath: . Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.mycompany.example.myspring-webapp-shared-libs Bundle-Vendor: MyComapny Inc. Bundle-Version: 1.0 Import-Bundle: org.springframework.web;version="[2.5.6,2.5.6]", org.springframework.web.servlet;version="[2.5.6,2.5.6]", org.springframework.jdbc;version="[2.5.6,2.5.6]", org.springframework.aop;version="[2.5.6,2.5.6]", org.springframework.transaction;version="[2.5.6,2.5.6]", org.springframework.beans;version="[2.5.6,2.5.6]", org.springframework.core;version="[2.5.6,2.5.6]", org.springframework.context;version="[2.5.6,2.5.6]", com.springsource.org.aopalliance;version="[1.0.0,1.0.0]", com.springsource.javax.servlet;version="[2.5.0,2.5.0]", com.springsource.javax.servlet.jsp;version="[2.1.0,2.1.0]", com.springsource.javax.servlet.jsp.jstl;version="[1.1.2,1.1.2]", com.springsource.org.apache.taglibs.standard;version="[1.1.2,1.1.2]", com.springsource.org.apache.commons.dbcp;version="[1.2.2.osgi,1.2.2.osgi]", com.springsource.org.apache.commons.pool;version="[1.3.0,1.3.0]", com.springsource.com.mysql.jdbc;version="[5.1.6,5.1.6]"
Any help to understand this would be really appreciated.


