I've got everything loaded in felix console now and am cheek to jowl with the problem that's been haunting me all along; can't get org.jdom to behave like I want.

Here's the console log

-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.2.1)
[   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.0)
[   4] [Active     ] [    1] soakit.core (1.0.0.SNAPSHOT)
[   5] [Active     ] [    1] iPOJO (1.0.0)
[   6] [Installed  ] [    1] soakit.port.file (1.0.0.SNAPSHOT)
[   7] [Active     ] [    1] soakit.transform.identity (1.0.0.SNAPSHOT)
[   9] [Installed  ] [    1] soakit.port.http (1.0.0.SNAPSHOT)
[  13] [Installed  ] [    1] soakit.transform.log (1.0.0.SNAPSHOT)
[  14] [Installed  ] [    1] soakit.transform.pep (1.0.0.SNAPSHOT)
[  15] [Installed  ] [    1] soakit.transform.xsl (1.0.0.SNAPSHOT)
[  16] [Installed  ] [    1] soakit.main (1.0.0.SNAPSHOT)
[  17] [Installed  ] [    1] soakit.test (1.0.0.SNAPSHOT)
-> start 17
org.osgi.framework.BundleException: Unresolved constraint in bundle 17: package; (package=org.apache.felix.main)
-> start 16
org.osgi.framework.BundleException: Unresolved constraint in bundle 16: package; (&(package=org.jdom.input)(version>=1.0.0))
-> start 6
org.osgi.framework.BundleException: Unresolved constraint in bundle 6: package; (&(package=org.jdom.input)(version>=1.0.0))

The intent is for org.jdom and commons.collections to be enclosed by soakit.core (transtively) and exported to from there to the ports and transforms.

From the following, it seems that it should be, but some (soakit.transform.identity) but not all components are picking it up. This is somewhat hacked; I couldn't read it in the original form. Actually; make that none of them; identity transform is trivially simple and uses almost nothing.

-> headers 4

soakit.core (4)
---------------
Bundle-ClassPath = .,lib,lib/com.springsource.org.apache.commons.collections-3.2.0.jar,lib/osgi-3.3.0-v20070530.jar,lib/com.springsource.org.jdom-1.0.0.jar
Tool = Bnd-0.0.255
Created-By = Apache Maven Bundle Plugin & iPOJO
Bnd-LastModified = 1226252783052
Embed-Directory = lib
iPOJO-Components = component { $classname="com.gestalt.soakit.core.CompositeService" provides { }manipulation { interface { $name="org.osgi.framework.ServiceFactory" }method { $arguments="{org.jdom.Element}" $return="com.gestalt.soakit.core.Composite" $name="createComposite" }}}instance { $component="com.gestalt.soakit.core.Composite" }
Built-By = bradcox
Private-Package = ,\
        about_files,\
        lib,\
        org.eclipse.core.runtime.adaptor,\
        org.eclipse.core.runtime.internal.adaptor,\
        org.eclipse.core.runtime.internal.stats,\
        org.eclipse.osgi.baseadaptor,\
        org.eclipse.osgi.baseadaptor.bundlefile,\
        org.eclipse.osgi.baseadaptor.hooks,\
        org.eclipse.osgi.baseadaptor.loader,\
        org.eclipse.osgi.event,\
        org.eclipse.osgi.framework.adaptor,\
        org.eclipse.osgi.framework.console,\
        org.eclipse.osgi.framework.debug,\
        org.eclipse.osgi.framework.eventmgr,\
        org.eclipse.osgi.framework.internal.core,\
        org.eclipse.osgi.framework.internal.protocol,\
        org.eclipse.osgi.framework.internal.protocol.bundleentry,\
        org.eclipse.osgi.framework.internal.protocol.bundleresource,\
        org.eclipse.osgi.framework.internal.protocol.reference,\
        org.eclipse.osgi.framework.internal.reliablefile,\
        org.eclipse.osgi.framework.launcher,\
        org.eclipse.osgi.framework.log,\
        org.eclipse.osgi.framework.util,\
        org.eclipse.osgi.internal.baseadaptor,\
        org.eclipse.osgi.internal.module,\
        org.eclipse.osgi.internal.profile,\
        org.eclipse.osgi.internal.provisional.verifier,\
        org.eclipse.osgi.internal.resolver,\
        org.eclipse.osgi.internal.verifier,\
        org.eclipse.osgi.service.datalocation,\
        org.eclipse.osgi.service.debug,\
        org.eclipse.osgi.service.environment,\
        org.eclipse.osgi.service.localization,\
        org.eclipse.osgi.service.pluginconversion,\
        org.eclipse.osgi.service.resolver,\
        org.eclipse.osgi.service.runnable,\
        org.eclipse.osgi.service.urlconversion,\
        org.eclipse.osgi.storagemanager,\
        org.eclipse.osgi.util,\
        org.osgi.framework,\
        org.osgi.service.condpermadmin,\
        org.osgi.service.packageadmin,\
        org.osgi.service.permissionadmin,\
        org.osgi.service.startlevel,\
        org.osgi.service.url,\
        org.osgi.util.tracker
Bundle-RequiredExecutionEnvironment = J2SE-1.5
Export-Package = org.jdom.xpath;uses:="org.jaxen,\
        org.jdom,\
        org.jaxen.jdom",\
        
org.apache.commons.collections.buffer;uses:="org.apache.commons.collections.collection,\
        org.apache.commons.collections.iterators,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections",\
        org.jdom.transform;uses:="org.xml.sax,\
        org.jdom,\
        javax.xml.transform,\
        javax.xml.transform.sax,\
        org.jdom.input,\
        org.xml.sax.ext,\
        org.xml.sax.helpers,\
        javax.xml.transform.stream,\
        org.jdom.output",\
        
org.apache.commons.collections.iterators;uses:="org.apache.commons.collections.functors,\
        org.apache.commons.collections.list,\
        org.apache.commons.collections",\
        
org.apache.commons.collections.bidimap;uses:="org.apache.commons.collections.map,\
        org.apache.commons.collections.collection,\
        org.apache.commons.collections.iterators,\
        org.apache.commons.collections.set,\
        org.apache.commons.collections.keyvalue,\
        org.apache.commons.collections",\
        
org.apache.commons.collections.set;uses:="org.apache.commons.collections.collection,\
        org.apache.commons.collections.iterators,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections.list,\
        org.apache.commons.collections",\
        org.jdom;uses:="org.xml.sax,\
        org.jdom.filter,\
        org.jdom.output",\
        
org.apache.commons.collections.functors;uses:="org.apache.commons.collections",\
        
org.apache.commons.collections.list;uses:="org.apache.commons.collections.collection,\
        org.apache.commons.collections.iterators,\
        org.apache.commons.collections.set,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections",\
        
org.apache.commons.collections;uses:="org.apache.commons.collections.buffer,\
        org.apache.commons.collections.iterators,\
        org.apache.commons.collections.set,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections.list,\
        org.apache.commons.collections.map,\
        org.apache.commons.collections.comparators,\
        org.apache.commons.collections.collection,\
        org.apache.commons.collections.bag,\
        org.apache.commons.collections.keyvalue",\
        
org.apache.commons.collections.map;uses:="org.apache.commons.collections.iterators,\
        org.apache.commons.collections.set,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections.list,\
        org.apache.commons.collections,\
        org.apache.commons.collections.collection,\
        org.apache.commons.collections.keyvalue",\
        org.jdom.input;uses:="org.xml.sax,\
        org.xml.sax.ext,\
        org.xml.sax.helpers,\
        javax.xml.parsers,\
        org.w3c.dom,\
        org.jdom",\
        
org.apache.commons.collections.comparators;uses:="org.apache.commons.collections",\
        
org.apache.commons.collections.collection;uses:="org.apache.commons.collections.iterators,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections.list,\
        org.apache.commons.collections",\
        org.jdom.adapters;uses:="org.xml.sax,\
        org.apache.xerces.parsers,\
        org.apache.xerces.dom,\
        oracle.xml.parser.v2,\
        org.w3c.dom,\
        org.jdom,\
        javax.xml.transform,\
        org.jdom.input,\
        javax.xml.parsers,\
        oracle.xml.parser",\
        
org.apache.commons.collections.bag;uses:="org.apache.commons.collections.collection,\
        org.apache.commons.collections.iterators,\
        org.apache.commons.collections.set,\
        org.apache.commons.collections.functors,\
        org.apache.commons.collections",\
        org.jdom.filter;uses:="org.jdom",\
        org.jdom.output;uses:="org.xml.sax,\
        org.xml.sax.ext,\
        org.xml.sax.helpers,\
        org.jdom.adapters,\
        org.w3c.dom,\
        org.jdom,\
        javax.xml.transform",\
        
org.apache.commons.collections.keyvalue;uses:="org.apache.commons.collections",\
        
com.gestalt.soakit.core;uses:="org.apache.commons.collections.iterators,\
        org.jdom,\
        com.gestalt.soalkit.core.internal";version="1.0.0.SNAPSHOT"
Bundle-Version = 1.0.0.SNAPSHOT
Build-Jdk = 1.5.0_16
Embed-Dependency = *;scope=compile|runtime
Manifest-Version = 1.0
Bundle-ManifestVersion = 2
Embed-Transitive = true
Import-Package = org.jdom.xpath;resolution:=optional;version=1.0,\
         
org.apache.commons.collections.buffer;resolution:=optional;version=3.2,\
         org.apache.xerces.parsers;resolution:=optional,\
         org.jdom.transform;resolution:=optional;version=1.0,\
org.apache.commons.collections.iterators;resolution:=optional;version=3.2,\
         
org.apache.commons.collections.bidimap;resolution:=optional;version=3.2,\
         org.apache.felix.ipojo;version=0.9.0,\
         org.apache.commons.collections.set;resolution:=optional;version=3.2,\
         com.gestalt.soalkit.core.internal;resolution:=optional,\
         
org.apache.commons.collections.functors;resolution:=optional;version=3.2,\
         org.apache.commons.collections;resolution:=optional;version=3.2,\
         javax.xml.transform;resolution:=optional,\
         org.apache.commons.collections.map;resolution:=optional;version=3.2,\
         org.jaxen;resolution:=optional,\
         org.osgi.service.log;version=1.3,\
         org.jdom.adapters;resolution:=optional;version=1.0,\
         javax.xml.parsers;resolution:=optional,\
         org.apache.commons.collections.bag;resolution:=optional;version=3.2,\
         javax.xml.transform.stream;resolution:=optional,\
         
org.apache.commons.collections.keyvalue;resolution:=optional;version=3.2,\
         org.xml.sax;resolution:=optional,\
         org.apache.xerces.dom;resolution:=optional,\
         oracle.xml.parser.v2;resolution:=optional,\
         org.apache.felix.ipojo.architecture;version=0.9.0,\
         javax.security.auth.x500;resolution:=optional,\
         org.w3c.dom;resolution:=optional,\
         org.jdom;resolution:=optional;version=1.0,\
         org.apache.commons.collections.list;resolution:=optional;version=3.2,\
         org.osgi.service.cm;version=1.2,\
         javax.xml.transform.sax;resolution:=optional,\
         org.jdom.input;resolution:=optional;version=1.0,\
org.apache.commons.collections.comparators;resolution:=optional;version=3.2,\
         org.xml.sax.ext;resolution:=optional,\
         org.xml.sax.helpers;resolution:=optional,\
org.apache.commons.collections.collection;resolution:=optional;version=3.2,\
         org.jdom.filter;resolution:=optional;version=1.0,\
         oracle.xml.parser;resolution:=optional,\
         org.jdom.output;resolution:=optional;version=1.0,\
         org.jaxen.jdom;resolution:=optional,\
         com.gestalt.soakit.core;resolution:=optional;version=1.0.0.SNAPSHOT
Bundle-Name = soakit.core
Bundle-Description = Soakit Core Bundle
Bundle-SymbolicName = soakit.core
->

Here's my latest soakit.core pom

<?xml version="1.0" encoding="UTF-8"?>
<project
        xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";
>
  <modelVersion>4.0.0</modelVersion>
  <groupId>soakit</groupId>
  <artifactId>soakit.core</artifactId>
  <version>1.0-SNAPSHOT</version>
  <name>soakit.core</name>
<description>SoaKit Core Bundle. Defines interfaces and abstract classes for the components defined in sub-moduless and a service (factory class) for defining soakit composites from an XML configuration file.</description>
  <packaging>bundle</packaging>

  <parent>
    <groupId>soakit</groupId>
    <artifactId>soakit</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>

  <dependencies>
                        <dependency>
                                <groupId>org.jdom</groupId>
                                
<artifactId>com.springsource.org.jdom</artifactId>
                                <version>1.0.0</version>
                        </dependency>
                        <dependency>
                                <groupId>org.apache.commons</groupId>
                                
<artifactId>com.springsource.org.apache.commons.collections</artifactId>
                                <version>3.2.0</version>
                        </dependency>
                        <dependency>
                <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.framework</artifactId>
                    <version>1.3.0-SNAPSHOT</version>
                        </dependency>
                        <dependency>
                <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.main</artifactId>
                    <version>1.3.0-SNAPSHOT</version>
                        </dependency>
                        <dependency>
                <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.shell</artifactId>
                    <version>1.1.0-SNAPSHOT</version>
                        </dependency>
</dependencies>

  <build>
    <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                                <version>1.4.3</version>
                                <extensions>true</extensions>
                                <configuration>
                                        
<manifestLocation>META-INF</manifestLocation>
                                        <instructions>
                                                        
<Bundle-Version>${pom.version}</Bundle-Version>
                                                        
<Bundle-Name>${artifactId}</Bundle-Name>
                                                        
<Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
                                                        <Bundle-Description>Soakit 
Core Bundle</Bundle-Description>
                                                        <!--
<Bundle-Activator>com.gestalt.soakit.core.CompositeActivator</Bundle-Activator>
                                                        -->
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
                    <Embed-Directory>target/dependency</Embed-Directory>
                                                        <!--
                    <_include>~META-INF/MANIFEST.MF</_include>
                                                        -->
                                                        <_failok/>
                                                        
<Bundle-ClassPath>.,lib</Bundle-ClassPath>
                                                        
<Embed-Directory>lib</Embed-Directory>
                                                        
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
                                                        
<Embed-Transitive>true</Embed-Transitive>
                                                        
<Import-Package>*;resolution:=optional</Import-Package>
                                                        <Export-Package>
                                                                        
com.gestalt.soakit.core.*;version="${pom.version}",
                                                                        
org.jdom.*,
                                                                        
org.jdom.input.*,
                                                                        
org.jdom.output.*,
                                                                        
org.apache.commons.collections.*,
                                                        </Export-Package>
                                        </instructions>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-ipojo-plugin</artifactId>
                                <version>1.0.0</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        
<goal>ipojo-bundle</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
  </build>
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to