For your Import-Package definition, do you use the maven-bundle-plugin?
I'd suggest using it, it should import those dependencies needed.

regards, Achim


2014-07-09 17:23 GMT+02:00 jimmy <[email protected]>:

> sorry i said pax-jetty but i would say pax-war.
> It's installed.
> In fact, i'm declaring a servlet that extends the RemoteServiceServlet of
> GWT
>
> *-using web.xml  it works*
> <?xml version="1.0" encoding="utf-8"?>
> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";>
>
>           <servlet>
>                 <display-name>Authentication</display-name>
>                 <servlet-name>Authentication</servlet-name>
>
>
> <servlet-class>com.inovelan.cloud.server.AuthenticationServiceImpl</servlet-class>
>                 <load-on-startup>1</load-on-startup>
>         </servlet>
>
>         <servlet-mapping>
>                 <servlet-name>Authentication</servlet-name>
>                 <url-pattern>/authentication</url-pattern>
>         </servlet-mapping>
>
>
> </web-app>
>
>
> but rather than declare in web.xml when I'm using,
> *@WebServlet("/authentication")*
> public class AuthenticationServiceImpl extends RemoteServiceServlet
> implements AuthenticationService
> i get a http 405.
>
>
> So maybe, there is a need for a specific package in import-package
> directive
> other than
>
> javax.inject,javax.servlet,*javax.servlet.annotation*,javax.servlet.http,org.osgi.framework;version="[1.5,2)",com.inovelan.cloud.authentication.api,org.ops4j.pax.cdi.api,org.eclipse.jetty.annotations
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Annotation-servlet-3-0-specification-karaf-tp4034093p4034095.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/>

Software Architect / Project Manager / Scrum Master

Reply via email to