Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty 8 M1 annotation auto discover


Can you enable debugging, and look for lines like this:

Metadata-complete==true,  not processing annotations for context ...

parsing annotations

Scanning all classses for annotations: webxmlVersion=... configurationDiscovered=...

Let me know which ones you see.

Also, you can look at the test-annotation webapp that comes
with the hightide distro and see what is different about it
to you webapp.


On 28/08/10 03:22, Paulo Silveira wrote:

I am having some trouble to use the classpath scan. I have a servlet
annotated as followed:
@WebServlet(urlPatterns = "/chat", asyncSupported = true)
public class ChatServlet extends HttpServlet {

If I start jetty 8M1 hightide with a war containing this servlets
inside webapps, the servlet is not mapped and I will get a 404 (in the
absence of a web.xml or even with a web.xml only declaring the webapp
and the 3.0dtd)

If I put an pretty simple web.xml inside, declaring:



It works.

Shouldnt these configurations inside hightide be enough for the
classpath scanning?

Paulo Silveira
Caelum | Ensino e Inovação
jetty-users mailing list

Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx |

Back to the top