Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] brain freeze on simple config

I have in my web.xml a servlet definition like 3 others that work, the servlet says that it's initialized, but the browser gives 404.

    <servlet>
        <servlet-name>getkext</servlet-name>
<servlet-class>com.me.servlet.KwdMatch</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>getkext</servlet-name>
        <url-pattern>/getkext</url-pattern>
    </servlet-mapping>

And in com.me.servlet.KwdMatch,

    @Override
    public void init(ServletConfig config) throws ServletException {
        log.info("KwdMatch Init OK");
    }

    @Override
    public void doPost(HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException  {

        log.info("KwdMatch POST ");

        ...

    }

On startup I see

12/10 21:49:01.520 [main] INFO com.me.servlet.KwdMatch - KwdMatch Init OK

But my browser tells me

    http://localhost:8080/pr/getkext 404 (Not Found)

What am I missing? '/getmext' for example works fine with a parallel configuration.

Thanks,

Bill




Back to the top