Ok, I've adapted for my project the greenpages 2.0.0 web module and tried to add blazeds in my web layer's POM file:
And modified the template.mf:Code:<dependency> <groupId>org.springframework.flex</groupId> <artifactId>org.springframework.flex</artifactId> <version>1.0.0.RELEASE</version> </dependency> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>com.springsource.flex.messaging.common</artifactId> <version>${spring.blazeds.version}</version> </dependency><dependency> <groupId>com.adobe.flex</groupId> <artifactId>com.springsource.flex.messaging</artifactId> <version>${spring.blazeds.version}</version> </dependency> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>com.springsource.flex.messaging.services.http</artifactId> <version>${spring.blazeds.version}</version> </dependency> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>com.springsource.flex.messaging.services.remoting</artifactId> <version>${spring.blazeds.version}</version> </dependency>
Then I've added the new web artifact in the PAR and deployed it, adding the new BlazeDS-related bundles to the $DMS_HOME/repository/bundles/usr directory.Code:Manifest-Version: 1.0 Bundle-Classpath: . Bundle-Version: 2.0 Bundle-ManifestVersion: 2 Import-Library: org.springframework.spring;version="[2.5.6, 3.1.0)" Import-Bundle: org.springframework.flex;version="[1.0.0.RELEASE,1.0.0.RELEASE]", com.springsource.flex.messaging;version="${spring.blazeds.version}", com.springsource.flex.messaging.common;version="${spring.blazeds.version}", com.springsource.flex.messaging.services.http;version="${spring.blazeds.version}", com.springsource.flex.messaging.services.remoting;version="${spring.blazeds.version}", com.springsource.net.sf.cglib;version="[2.1.3,2.1.3]" Import-Package: javax.servlet;version="[2.5.0,2.5.0]", javax.servlet.http;version="[2.5.0,2.5.0]", com.springsource.server.web.dm;version="[1.0.0, 3.0.0)", org.springframework.web.context;version="[2.5.6, 3.1.0)" Excluded-Imports: org.springframework.test.*, org.junit.* Import-Template: org.springframework.*;version="[2.5.6, 3.1.0)", flex.messaging.*;version="${spring.blazeds.version}" Excluded-Exports: it.amtservices.ido2.core.web Export-Template: it.amtservices.ido2.core.service.*;version="${project.version}" Bundle-Vendor: ${organization.name} (${organization.url}) Bundle-SymbolicName: ${project.artifactId} Bundle-Name: ${bundle.name} Bundle-Version: ${project.version} Web-ContextPath: ${webapp.name}
Starting the server means a chain of missing dependencies where I had to add xerces xalan 2.7.0, xerces 2.8.1, xml commons and so on until I finally get:
Maybe it is a bit late here and I'm sleeping but may someone point me where to look for solutions?Code:[2009-08-21 22:01:56.311] fs-watcher <SPDE0018E> Unable to install application from location 'file:/home/mario/apps/springsource/dm-server-1.0.2.SR02/pickup/ido2.backend-1.0.0.SNAPSHOT.par'. Could not satisfy constraints for bundle 'ido2-1.0.0.SNAPSHOT-core.web' at version '1.0.0.SNAPSHOT'. Cannot resolve: ido2-1.0.0.SNAPSHOT-core.web Resolver report: Bundle: com.springsource.org.apache.xalan_2.7.0 - Missing Constraint: Import-Package: org.apache.xerces.parsers; version="[2.8.1,3.0.0)" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.datatype; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.namespace; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.parsers; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.transform; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.transform.dom; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.transform.sax; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.transform.stream; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: javax.xml.validation; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.apache.xml.resolver; version="[1.2.0,1.3.0)" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.apache.xml.resolver.readers; version="[1.2.0,1.3.0)" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.w3c.dom; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.w3c.dom.events; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.w3c.dom.html; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.w3c.dom.ls; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.w3c.dom.ranges; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.w3c.dom.traversal; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.xml.sax; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.xml.sax.ext; version="0.0.0" Bundle: com.springsource.org.apache.xerces_2.8.1 - Constraints from the fragment conflict with the host: Import-Package: org.xml.sax.helpers; version="0.0.0" . [2009-08-21 22:01:56.315] fs-watcher <SPDE0011E> Deployment of 'ido2' version '1.0.0.SNAPSHOT' failed.![]()


.
