On 11/01/2008, Peter Neubauer <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> another beginners problem regarding the mvn pax:eclipse with PaxWeb.
> The generated manifest in Eclipse looks like the following, giving me
> an error that javax.servlet.http and javax.serlet do not exist in this
> plugin.
> Is that a bug in PaxWeb, PaxRunner generating the Eclipse manifest or
> in Eclipse not being able to parse correctly?


not really a bug as such - that version of PaxWeb was not configured to
support generation of the right eclipse metadata wrt. embedded deps,
so it's more of a missing feature

it's because it uses Embed-Dependency which puts jars in folders that
match their groupId, but the project pom is still set to use the old pax
plugin which requires you to embed dependencies in a specific folder
under target...

try using the latest pax plugin:

   mvn org.ops4j:maven-pax-plugin:0.6.3:clean
   mvn install org.ops4j:maven-pax-plugin:0.6.3:eclipse

which should get you a working project

/peter
>
Manifest-Version: 1.0
> Bundle-Activator: org.ops4j.pax.web.service.internal.Activator
> Created-By: 1.5.0_11 (Sun Microsystems Inc.)
> Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.html
> Import-Package: javax.net.ssl;resolution:=optional,javax.security.cert
> ;resolution:=optional,javax.servlet;version=2.5,javax.servlet.http;ve
> rsion=2.5,javax.xml.parsers,org.apache.commons.logging;resolution:=op
> tional,org.ops4j.pax.web.service;version=0.2.2,org.osgi.framework;ver
> sion="[1.0.0,2.0.0)",org.osgi.service.cm;version="[1.0.0,2.0.0)",org.
> osgi.service.http;version="[1.0.0,2.0.0)",org.osgi.util.tracker;versi
> on="[1.3.0,2.0.0)",org.slf4j;resolution:=optional,org.xml.sax,org.xml
> .sax.helpers
> Bnd-LastModified: 1197621101263
> Export-Package: javax.servlet.http;uses:=javax.servlet;version=2.5,jav
> ax.servlet;version=2.5,org.ops4j.pax.web.service;uses:="org.osgi.serv
> ice.http,org.osgi.framework,org.apache.commons.logging,org.osgi.util.
> tracker,org.ops4j.pax.web.service.internal,org.osgi.service.cm";versi
> on=0.2.2
> Bundle-Version: 0.2.2
> Ignore-Package: javax.servlet.resources,javax.servlet.jsp.resources
> Bundle-Name: OPS4J Pax Web - Service
> Bundle-Description: Pax Web is a OSGi Http Service based on Jetty 6
> Bundle-ClassPath: .,org.mortbay.jetty/jetty-6.1.6.jar,commons-logging/
> commons-logging-api-1.1.jar,org.mortbay.jetty/jetty-util-6.1.6.jar,or
> g.mortbay.jetty/servlet-api-2.5-6.1.6.jar
> Bundle-DocURL: http://www.ops4j.org/
> Private-Package: commons-logging,javax.servlet.jsp.resources,javax.ser
> vlet.resources,org.apache.commons.logging,org.apache.commons.logging.
> impl,org.mortbay.component,org.mortbay.io,org.mortbay.io.bio,org.mort
> bay.io.nio,org.mortbay.jetty,org.mortbay.jetty.bio,org.mortbay.jetty.
> deployer,org.mortbay.jetty.handler,org.mortbay.jetty.nio,org.mortbay.
> jetty.security,org.mortbay.jetty.servlet,org.mortbay.jetty.webapp,org
> .mortbay.log,org.mortbay.resource,org.mortbay.servlet,org.mortbay.ser
> vlet.jetty,org.mortbay.thread,org.mortbay.util,org.mortbay.util.ajax,
> org.mortbay.xml,org.ops4j.pax.web.service.internal
> Bundle-Vendor: OPS4J - Open Participation Software for Java
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: org.ops4j.pax.web.service
> Tool: Bnd-0.0.189
>
>
>
> --
> GTalk:        neubauer.peter
> Skype        peter.neubauer
> ICQ            18762544
> GTalk        neubauer.peter
> Phone       +46704 106975
> Mail           [EMAIL PROTECTED]
> LinkedIn   http://www.linkedin.com/in/neubauer
>
> http://www.neo4j.org     - New Energy for Data - the Netbase.
> http://www.ops4j.org     - New Energy for OSS Communities - Open
> Participation Software.
> http://www.qi4j.org        - New Energy for Java - Domain Driven
> Development.
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>



-- 
Cheers, Stuart
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to