It's reproducable but only on Linux.

@WebServlet(name = "MyServlet", urlPatterns = "/testservlet")
public class TestServlet extends HttpServlet {

    private static final long serialVersionUID = 1L;

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse
response)
            throws ServletException, IOException {

        response.getWriter().println("Hello World!");

    }
}

This for instance works on Windows and not on Linux, producing 404 not
found on /project/testservlet.

No dependcies in pom only javaee-api

BR

Matej

2014-09-13 10:40 GMT+02:00 Romain Manni-Bucau <[email protected]>:

> Hi
>
> are you able to reproduce it? Is it from WEB-INF/classes or from a lib?
>
> If a lib it can be excluded (excluded prefixes are
>
> http://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/main/resources/default.exclusions
> )
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-13 10:18 GMT+02:00 Matej <[email protected]>:
> > Hello all.
> >
> > Is there maybe a bug in TomEE not scaning the  @WebServlet annotation
> under
> > linux.
> >
> > I am facing a strange problem. Where upgrading from 1.6.x to 1.7 the
> > WebServlet annotation stoped working under linux.... giving 404
> >
> > I tried with many different attribute combinations, also changing jdk,
> jre
> > version 1.7, 1.8. Also tried with different projects, machines... Altough
> > Linux was always Centos
> >
> > On Windows no issues.
> >
> > Everything seems to work from web.xml on both platforms.
> >
> > BR
> >
> > Matej
>

Reply via email to