Thanks for your time, Carsten and Christopher. I used Christopher's pom.xml
for the sling.samples.simple-demo as described above. This gives me still
errors in the console, see pom and output below.

On a general note, I have serious doubts about this approach of OSGi. I
mean, we are talking here only about using a single library! I wonder how
cumbersome really complicate things get?



<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<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>
    <parent>
        <groupId>org.apache.sling</groupId>
        <artifactId>sling</artifactId>
        <version>4-incubator-SNAPSHOT</version>
        <relativePath>../../parent/pom.xml</relativePath>
    </parent>

    <groupId>org.apache.sling.samples</groupId>
    <artifactId>org.apache.sling.samples.simple-demo</artifactId>
    <version>2.0.3-incubator-SNAPSHOT</version>
    <packaging>bundle</packaging>

    <name>Sling - Sample Sling Application</name>
    <description>
        This bundle provides a simple Sling Application to show some of
        the features and functionalities of Sling, such as node type
        definition, content mapping, running JSPs off the repository and
        the bundle.
    </description>

    <scm>
        <connection>scm:svn:
http://svn.apache.org/repos/asf/incubator/sling/trunk/samples/simple-demo
</connection>
        <developerConnection>scm:svn:
https://svn.apache.org/repos/asf/incubator/sling/trunk/samples/simple-demo
</developerConnection>
        <url>
http://svn.apache.org/viewvc/incubator/sling/trunk/samples/simple-demo</url>
    </scm>

    <build>
        <plugins>
            <!-- Handle the @ocm JavaDoc tags to generate the mapping
descriptors -->
            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-jcrocm-plugin</artifactId>
                <version>2.0.2-incubator</version>
                <executions>
                    <execution>
                        <id>generate-JCR-OCM-descriptor</id>
                        <goals>
                            <goal>ocm</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Compile JSP scripts into the bundle -->
            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-jspc-plugin</artifactId>
                <version>2.0.2-incubator</version>
                <executions>
                    <execution>
                        <id>compile-jsp</id>
                        <goals>
                            <goal>jspc</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Generation of SCR descriptors -->
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <!-- Bundling the sample project -->
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <!-- we have to export for the classes to be visible
-->
                        <Export-Package>
                            org.apache.sling.sample;
                            org.apache.jsp.*;version=${pom.version}
                        </Export-Package>

                        <!-- node types to be created -->
                        <Sling-Nodetypes>
                            SLING-INF/nodetypes/test.cnd
                        </Sling-Nodetypes>

                        <!-- initial content to be loaded on bundle
installation -->
                        <Sling-Initial-Content>
                            SLING-INF/content
                        </Sling-Initial-Content>

                        <!-- Bundle supplied resource prefixes -->
                        <Include-Resource>
                            {maven-resources},src/main/scripts
                        </Include-Resource>

                        <Sling-Bundle-Resources>
                            /apps/sling/sample,
                            /classes/org/apache/jsp/apps/sling/sample
                        </Sling-Bundle-Resources>

                        <Import-Package>
                            javax.el.*,
                            org.apache.sling.jcr.ocm.*,
                            org.apache.sling.scripting.jsp.jasper.runtime.*,
                            org.apache.sling.scripting.jsp.taglib.*,
                            org.slf4j.*,
                            com.sun.msv.*;resolution:=optional,
                            javax.jcr.*,
                            javax.mail.*;resolution:=optional,
                            javax.servlet.*;version=2.4,
                            javax.xml.*,
                            nu.xom.*;resolution:=optional,
                            org.apache.sling.api.*,
                            org.dom4j.*;resolution:=optional,
                            org.jdom.*;resolution:=optional,
                            org.relaxng.*;resolution:=optional,
                            org.xml.sax.*
                        </Import-Package>

                        <Embed-Dependency>
                            abdera-core,
                            abdera-i18n,
                            abdera-parser,
                            axiom-api,
                            axiom-impl,
                            commons-codec,
                            commons-logging-api,
                            geronimo-activation_1.1_spec,
                            geronimo-stax-api_1.0_spec,
                            jaxen,
                            wstx-asl
                        </Embed-Dependency>

                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                  <!-- No javadocs -->
                    <excludePackageNames>
                        org.apache.sling
                    </excludePackageNames>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <repositories>
        <repository>
            <id>apache-incubating</id>
            <name>Apache Incubating Repository</name>
            <url>
                http://people.apache.org/repo/m2-incubating-repository/
            </url>
        </repository>
    </repositories>

    <dependencies>
 <!-- start of abdera dependencies -->
       <dependency>
           <groupId>commons-codec</groupId>
           <artifactId>commons-codec</artifactId>
           <version>1.3</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>commons-logging</groupId>
           <artifactId>commons-logging-api</artifactId>
           <version>1.1</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>jaxen</groupId>
           <artifactId>jaxen</artifactId>
           <version>1.1.1</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>javax.jcr</groupId>
           <artifactId>jcr</artifactId>
           <version>1.0</version>
           <scope>compile</scope>
       </dependency>
       <dependency>
           <groupId>javax.servlet</groupId>
           <artifactId>servlet-api</artifactId>
           <version>2.4</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.abdera</groupId>
           <artifactId>abdera-core</artifactId>
           <version>0.5.0-incubating-SNAPSHOT</version>
           <scope>compile</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.abdera</groupId>
           <artifactId>abdera-i18n</artifactId>
           <version>0.5.0-incubating-SNAPSHOT</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.abdera</groupId>
           <artifactId>abdera-parser</artifactId>
           <version>0.5.0-incubating-SNAPSHOT</version>
           <scope>compile</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.geronimo.specs</groupId>
           <artifactId>geronimo-activation_1.1_spec</artifactId>
           <version>1.0.2</version>
           <scope>compile</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.geronimo.specs</groupId>
           <artifactId>geronimo-stax-api_1.0_spec</artifactId>
           <version>1.0.1</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.ws.commons.axiom</groupId>
           <artifactId>axiom-api</artifactId>
           <version>1.2.7</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.ws.commons.axiom</groupId>
           <artifactId>axiom-impl</artifactId>
           <version>1.2.7</version>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>org.codehaus.woodstox</groupId>
           <artifactId>wstx-asl</artifactId>
           <version>3.2.1</version>
           <scope>runtime</scope>
       </dependency>
 <!-- end of abdera dependencies -->
       <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.api</artifactId>
            <version>2.0.2-incubator</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.resource</artifactId>
            <version>2.0.2-incubator</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.ocm</artifactId>
            <version>2.0.2-incubator</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.engine</artifactId>
            <version>2.0.2-incubator</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.scripting.jsp.taglib</artifactId>
            <version>2.0.2-incubator</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.osgi.core</artifactId>
        </dependency>
    </dependencies>
</project>








Symbolic Nameorg.apache.sling.samples.simple-demo
Version2.0.3.incubator-SNAPSHOT
Locationinputstream:org.apache.sling.samples.simple-demo-2.0.3-incubator-SNAPSHOT.jar
Last ModificationMon Aug 04 10:29:07 CEST 2008
VendorThe Apache Software Foundation
DescriptionThis bundle provides a simple Sling Application to show some of
the features and functionalities of Sling, such as node type definition,
content mapping, running JSPs off the repository and the bundle.
Start Level20
Exported
Packagesorg.apache.jsp.apps.sling.sample,version=2.0.3.incubator-SNAPSHOT
org.apache.sling.sample,version=2.0.3.incubator-SNAPSHOT
Imported Packages!! com.sun.msv.grammar,version=0.0.0 from -- Cannot be
resolved
!! com.sun.msv.grammar.trex,version=0.0.0 from -- Cannot be resolved
!! com.sun.msv.reader,version=0.0.0 from -- Cannot be resolved
!! com.sun.msv.reader.trex.ng,version=0.0.0 from -- Cannot be resolved
!! com.sun.msv.reader.util,version=0.0.0 from -- Cannot be resolved
!! com.sun.msv.util,version=0.0.0 from -- Cannot be resolved
!! com.sun.msv.verifier,version=0.0.0 from -- Cannot be resolved
!! com.sun.msv.verifier.regexp,version=0.0.0 from -- Cannot be resolved
javax.el,version=2.1.0 from org.apache.sling.scripting.jsp (35)
javax.jcr,version=1.0.0 from org.apache.sling.jcr.api (21)
!! javax.mail,version=0.0.0 from -- Cannot be resolved
!! javax.mail.internet,version=0.0.0 from -- Cannot be resolved
javax.servlet,version=2.4.0 from System Bundle (0)
javax.servlet.http,version=2.4.0 from System Bundle (0)
!! javax.servlet.jsp,version=2.4.0 from -- Cannot be resolved
!! javax.servlet.jsp.tagext,version=2.4.0 from -- Cannot be resolved
javax.xml.namespace,version=0.0.0 from System Bundle (0)
javax.xml.parsers,version=0.0.0 from System Bundle (0)
javax.xml.transform,version=0.0.0 from System Bundle (0)
javax.xml.transform.dom,version=0.0.0 from System Bundle (0)
javax.xml.transform.sax,version=0.0.0 from System Bundle (0)
javax.xml.transform.stream,version=0.0.0 from System Bundle (0)
!! nu.xom,version=0.0.0 from -- Cannot be resolved
org.apache.sling.api,version=2.0.2.incubator from org.apache.sling.api (2)
org.apache.sling.api.resource,version=2.0.2.incubator from
org.apache.sling.api (2)
org.apache.sling.api.scripting,version=2.0.2.incubator from
org.apache.sling.api (2)
org.apache.sling.api.servlets,version=2.0.2.incubator from
org.apache.sling.api (2)
org.apache.sling.jcr.ocm,version=2.0.2.incubator from
org.apache.sling.jcr.ocm (24)
org.apache.sling.scripting.jsp.jasper.runtime,version=2.0.2.incubator from
org.apache.sling.scripting.jsp (35)
org.apache.sling.scripting.jsp.taglib,version=2.0.2.incubator from
org.apache.sling.scripting.jsp.taglib (29)
!! org.dom4j,version=0.0.0 from -- Cannot be resolved
!! org.dom4j.io,version=0.0.0 from -- Cannot be resolved
!! org.jdom,version=0.0.0 from -- Cannot be resolved
!! org.jdom.input,version=0.0.0 from -- Cannot be resolved
!! org.relaxng.datatype,version=0.0.0 from -- Cannot be resolved
org.slf4j,version=0.0.0 from org.apache.sling.commons.log (1)
org.xml.sax,version=0.0.0 from System Bundle (0)
org.xml.sax.ext,version=0.0.0 from System Bundle (0)
org.xml.sax.helpers,version=0.0.0 from System Bundle (0)

Reply via email to