Re: Configuring embedded Tomcat with @WebServlet annotations

2019-03-09 Thread Mark Thomas
On 09/03/2019 20:00, Raffaele Sgarro wrote: > I apologize for the tone. > > Already tried various StandardJarScanner options, but the root problem is > that nothing works while developing because classes from source Java files > are not packaged at all and are simply put on the classpath by the

Re: Configuring embedded Tomcat with @WebServlet annotations

2019-03-09 Thread Raffaele Sgarro
I apologize for the tone. Already tried various StandardJarScanner options, but the root problem is that nothing works while developing because classes from source Java files are not packaged at all and are simply put on the classpath by the IDE (and I do not want to add the directory used by the

Re: Configuring embedded Tomcat with @WebServlet annotations

2019-03-09 Thread Mark Thomas
On 08/03/2019 17:47, Raffaele Sgarro wrote: > Hello all! How is one supposed to configure Tomcat (I'm on 9.x) to scan a > given package looking for @WebServlet servlets? > > I cannot find any API and relevant examples in the Tomcat source. > > More insight: my app is currently packaged as a WAR

Re: Configuring embedded Tomcat with @WebServlet annotations

2019-03-09 Thread Mark Thomas
On 09/03/2019 15:01, Raffaele Sgarro wrote: > I wonder why you think I didn't read the fucking manual before posting my > question here. While the reply to your question wasn't helpful, that does not justify the tone of your response. I'd like to remind everyone of the code of conduct:

Re: Configuring embedded Tomcat with @WebServlet annotations

2019-03-09 Thread Raffaele Sgarro
I wonder why you think I didn't read the fucking manual before posting my question here. You'd be surprised to know that I'm studying this thing since a couple of days and my conclusion is that it's something Tomcat can't do and I'll have to use something like Spring to achieve it. So no, it's

Re: Configuring embedded Tomcat with @WebServlet annotations

2019-03-09 Thread Phumelela Mdluli
Hey, Try reading this, I think you will be fine: http://tomcat.apache.org/tomcat-9.0-doc/index.html No one can do it for you. Regards, Phumelela On Fri, Mar 8, 2019 at 7:47 PM Raffaele Sgarro wrote: > > Hello all! How is one supposed to configure Tomcat (I'm on 9.x) to scan a > given