You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by tonywestonuk <to...@totspics.com> on 2015/09/03 17:50:00 UTC

WebServlet match on root

This used to match the Context Root URI in Tomee 1.7.1  (as per the Servlet
3.0 spec)

@WebServlet("")
public class PlayerInfo extends HttpServlet{

}


But, it no longer works in Tomee 1.7.2


:-/

Thanks.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/WebServlet-match-on-root-tp4676099.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: WebServlet match on root

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Thu, Sep 3, 2015 at 12:08 PM, tonywestonuk <to...@totspics.com> wrote:

>
>   Its been a good day! :-D
>

Sounds like it's been a TomEE day!  :-D

Re: WebServlet match on root

Posted by tonywestonuk <to...@totspics.com>.
No I didn't!!!!


And, now I added it, it works!!!

Thanks again!!! :-DD

oh, that other issue in regards to the JAXB classes causing a memory leak I
mentioned in the other thread - thats also fixed.   Its been a good day! :-D


Cheers,
Tony.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/WebServlet-match-on-root-tp4676099p4676102.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: WebServlet match on root

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

do you deploy a JAXRS without @ApplicationPath("something not empty")?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-09-03 17:56 GMT+02:00 tonywestonuk <to...@totspics.com>:

> Ok,  Yes it does match..... something weird is happening
>
>
> Even though my servlet is redirecting to a JSP
>
>
> request.getRequestDispatcher("/profile.jsp").forward(request, response);
>
>
> I still get the error in the console
>
> WARNING: No root resource matching request path /Smashstock/ has been
> found,
> Relative Path: /. Please enable FINE/TRACE log level for more details.
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/WebServlet-match-on-root-tp4676099p4676100.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: WebServlet match on root

Posted by tonywestonuk <to...@totspics.com>.
Ok,  Yes it does match..... something weird is happening


Even though my servlet is redirecting to a JSP

		request.getRequestDispatcher("/profile.jsp").forward(request, response);


I still get the error in the console

WARNING: No root resource matching request path /Smashstock/ has been found,
Relative Path: /. Please enable FINE/TRACE log level for more details.





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/WebServlet-match-on-root-tp4676099p4676100.html
Sent from the TomEE Users mailing list archive at Nabble.com.