Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Problems with servlet 3.0 annotations

Christian,

The jetty-hightide-8.x distribution has annotations enabled by
default, so you may want to look at that, although all the mechanisms
are present in the normal jetty-8 distribution, just not turned on
(look in etc/jetty-plus.xml).

The set of configurations needed are:

               <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item>
               <Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item>
               <Item>org.eclipse.jetty.webapp.MetaInfConfiguration</Item>
               <Item>org.eclipse.jetty.webapp.FragmentConfiguration</Item>
               <Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item>
               <Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item>
               <Item>org.eclipse.jetty.annotations.AnnotationConfiguration</Item>
               <Item>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</Item>

Then you also need to enable plus, annotations, jta  jars on the
classpath. You can see which these are by doing:
java -jar start.jar --list-options.


Jan

On 20 January 2012 19:12, Christian Wolfgang <chw@xxxxxxxxxx> wrote:
> Hi.
>
> I was trying to get embedded jetty 8 to work with servlet 3.0
> annotations. As far as I could read, I needed to
> "context.setConfigurations( new Configuration[] { new
> AnnotationConfiguration() } );",
> but I keep getting ClassNotFoundException's. I have annotated my
> servlets. Before, when I used servlet 2.5, i had no problems.
>
> Can someone tell how servlet 3.0 is working with jetty 8 or point me
> to some documentation? I have searched high and low with no luck.
>
> Thanks.
>
> Christian
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top