Hi again,

> -----Original Message-----
> From: Felix Meschberger [mailto:[email protected]]
> Sent: Monday, August 06, 2012 2:57 PM
> To: [email protected]
> Subject: Re: Setting the context path using the launchpad
> 
> Hi,
> 
> Am 06.08.2012 um 13:46 schrieb Robert Munteanu:
> 
> > Hi,
> >
> > I'm trying to launch a standalone Sling-based application with a
> custom context path. The command I use is
> >
> > java -jar foo.jar -p 9080 -r foo
> >
> > I can see that the configuration property is correctly set
> >
> > 04.08.2012 17:09:30.830 *INFO * [main] Setting
> org.apache.felix.http.context_path=foo
> >
> > However, the sling application is still accessible at the '/'
> context. I've also tried
> >
> > java -jar foo.jar -p 9080 -r /foo
> >
> > In the OSGi console I see that I have the
> 'org.apache.felix.http.jetty' version 2.2.0 bundle installed. The
> launchpad version is 2.4.0 . It's worth mentioning that the -a (host)
> parameter does not work either.
> 
> It is very conceivable, that the respective context path support is not
> available in the http.jetty 2.2.0 bundle since IIRC it has been added
> after that release.
> 
> You might want to try updating to a trunk build.

Hi,

I've noticed that indeed the updated configuration properties are only 
available for org.apache.felix.http.jetty 2.2.1-SNAPSHOT for now. I've tried 
including the updated http bundle in the launchpad, but that seems to have no 
effect. I've tried:

- configuring the maven-launchpad-plugin 

                <configuration>
                    <defaultBundleList>
                        <version>6</version>
                    </defaultBundleList>
                    <additionalBundles>
                        <bundle>
                                                
<groupId>org.apache.felix</groupId>
                                                
<artifactId>org.apache.felix.http.jetty</artifactId>
                                                
<version>2.2.1-SNAPSHOT</version> <!-- pick up fixes for setting context path 
and bind host -->                         
                        </bundle>
                    </additionalBundles>
                </configuration>

- updating the list.xml bundle list

    <startLevel level="5">
        <bundle>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.http.jetty</artifactId>
                <version>2.2.1-SNAPSHOT</version> <!-- pick up fixes for 
setting context path and bind host -->
        </bundle>
    </startLevel>


but they both have the same result:

$ find target/classes/resources/ -name org.apache.felix.http.jetty\*
target/classes/resources/bundles/0/org.apache.felix.http.jetty-2.2.0.jar

What am I doing wrong?

Thanks,

Robert

> 
> Regards
> Felix

Reply via email to