Since version 4.0.9 of the Karaf container the feature pax-web 
(org.ops4j.pax.web.pax-web-features) contains a list of jetty dependencies.
The jetty-deploy bundle is missing.
This bundle is needed for example to make configuration to support context 
xml deployment for enabling static resources.
The following configuration in the jetty.xml file will throw a class not 
def. error on the start of Karaf (or jetty)
{code}
 <Call name="addBean">
    <Arg>
      <New id="DeploymentManager" 
class="org.eclipse.jetty.deploy.DeploymentManager">
        <Set name="contexts">
          <Ref refid="Contexts" />
        </Set>
        <Call id="webappprovider" name="addAppProvider">
          <Arg>
            <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
              <Set name="monitoredDirName"><Property name="jetty.base" 
default="." />/etc/contexts</Set>
              <Set name="scanInterval">0</Set>
            </New>
          </Arg>
        </Call>
      </New>
    </Arg>
  </Call>
{/code}

A possible fix is to add the missing dependency in the file features.xml of 
the pax-web feature definition (for example in pax-web 4.3.0 for karaf 
4.0.9 and in pax-web 6.0.3 for karaf 4.1.1)
{code}
<bundle 
start-level="30">mvn:org.eclipse.jetty/jetty-deploy/${dependency.jetty.version}</bundle>
{/code}
or just make use of the {{jetty-all-server}} dependency like the pax-web 
version 3.2.9.  (in karaf 3.0.8)
{code}
<bundle 
start-level="30">mvn:org.eclipse.jetty.aggregate/jetty-all-server/${dependency.jetty.version</bundle>
{/code}

Could some body help on this Issue? I can not create a Issue in Jira (no 
access)
Thanks for reply

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to