Hi there !
Context : Karaf 3.0.1, Pax Web 3.1.0, building an app with Osgiliath Enterprise Framework
First of all, I'm pretty new to everything here, so I may
## First problem
When embedding my jetty-web.xml :
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="virtualHosts">
<Array type="java.lang.String">
<Item>
www.blah.com</Item>
</Array>
</Set>
</Configure>
I get the java.lang.NoSuchMethodException: class org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$2.setVirtualHosts(class [Ljava.lang.String;)
It happens for all methods (like getSecurityHandler()).
Looking at class hierarchy and DOMJettyWebXmlParser works, I can't figure out why as ServletContextHandler implements those public methods and org.ops4j.pax.web.service.jetty.internal.HttpServiceContext extends it.
Any idea what I could do wrong ?
## Second one
I tried to embed a jetty.xml configuration in a fragment. My fragment is correctly hosted but jetty.xml seems ignored.
in osgi.bnd :
Fragment-Host: org.ops4j.pax.web.pax-web-jetty-bundle
my jetty.xml at the root of the bundle fragment :
<Configure class="org.eclipse.jetty.server.Server">
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host">
<Property name="jetty.host" />
</Set>
<Set name="port">
<Property name="jetty.port" default="8282" />
</Set>
<Set name="maxIdleTime">300000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">20000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>
</New>
</Arg>
</Call>
</Configure>
No such connector is opened and I cant find any trace like :
DEBUG pax.web.service.internal.JettyServerImpl - configure using bundleresource://100/jetty.xml
Again, what's wrong with this ?
Thanks in advance !