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

I don't think so, other than general stuff about enabling JNDI:
http://wiki.eclipse.org/Jetty/Feature/JNDI

I think I should fill out some info on the placeholder we have for
"Porting to Jetty-8". Here's my issue reference for that:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369449

Jan

On 23 January 2012 18:31, Christian Wolfgang <chw@xxxxxxxxxx> wrote:
> Thank you. It worked perfectly.
> Is there any documentation on these configuration classes?
>
> On Fri, Jan 20, 2012 at 22:14, Jan Bartel <janb@xxxxxxxxxxx> wrote:
>> 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
>> _______________________________________________
>> jetty-dev mailing list
>> jetty-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top