If you work with larger maven projects make sure you do use test, compile
and provided scopes on your dependencies.
Usually this will help filter out lot's of your issues already as only
compile dependencies are included if you use the maven-bundle-plugin.

Right now I wouldn't know of any restrictions about your dependencies, but
that doesn't mean there are non :)

First you might want to check the correct setting of he ClassPath in the
Manifes. It should not only contain the lib/jar (hell you got there) but
also the WEB-INF/classses as path.

regards, Achim


2014-11-12 12:56 GMT+01:00 jochenw <[email protected]>:

> Better check from time to time what Maven does in a complex project .
>
> We'll have to check how to get rid of all the jars needed for testing. In
> the meantime, I have removed at least the toxic items from the lib folder
> (osgi jars, javax.servlet, and, to be sure, also the jetty jars). Already
> after removal of the osgi jars, the deployment worked, and web:list and
> http:list look reasonable.
>
> However, I still receive a 404 when calling the usual URL for the UI
> (myserver:8181/testwar). When checking the log, I found
> org.ops4j.pax.web.pax-web-extender-war throwing a warning that the class
> for
> which the WebServlet annotation was found could not be "created", and the
> class ....MyUI.Servlet wasn't loaded (the servlet class - extending
> VaadinServlet - is an inner class of the main UI class - extending the
> Vaadin framework class UI). The class exists in WEB-INF/classes as
> MyUI$Servlet.class. Should this combination still be supported by pax-web,
> or is this the point where my experiments to simply deploy the war in Karaf
> have to come to an end, and we have to go for a full OSGi integration of
> our
> Vaadin-based Web UI?
>
> Best Regards,
> Jochen
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/pax-web-war-stays-in-deploying-state-tp4036280p4036363.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to