Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-22 Thread aghart...@gmail.com
Hi Mark, Ok, all clear, thanks. Since the servlet is used by several projects, I force it to be loaded via web.xml Thanks again, Agharta Il 22/02/21 12:02, Mark Thomas ha scritto: On 19/02/2021 09:45, aghart...@gmail.com wrote: Hi Mark, I'm sorry to bother you, do you need more

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-22 Thread Mark Thomas
On 19/02/2021 09:45, aghart...@gmail.com wrote: > Hi Mark, > > I'm sorry to bother you, do you need more information about that? (see > email below, my mistake about reply recipient) Please see section 8.1 of the Servlet specification. In a web application, classes using annotations will have

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-19 Thread aghart...@gmail.com
Hi Mark, I'm sorry to bother you, do you need more information about that? (see email below, my mistake about reply recipient) Many Thanks, Agharta Il 18/02/21 13:09, aghart...@gmail.com ha scritto: Hi, FYI, tomcat 9.0.43 have this problem too. Best Regards, Agharta Il 18/02/21

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread aghart...@gmail.com
Hi, FYI, tomcat 9.0.43 have this problem too. Best Regards, Agharta Il 18/02/21 12:51, aghart...@gmail.com ha scritto: Hi Mark, Good questions, my mistake, sorry. So: jar file name is testannotation.jar package is "aaa." (very simple) Standard vanilla tomcat (.zip) downloaded from ASF

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread aghart...@gmail.com
Hi Mark, Good questions, my mistake, sorry. So: jar file name is testannotation.jar package is "aaa." (very simple) Standard vanilla tomcat (.zip) downloaded from ASF site, no package manager. Unzipped to my home directory. org.apache.tomcat.util.scan.StandardJarScanner.level = FINE

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread Mark Thomas
On 18/02/2021 10:46, aghart...@gmail.com wrote: > Hi all, > > A question, I can't solve that > > Tested with Tomcat 9.0.41, java 8 x64, linux (Fedora 32). > > > I have a standard tomcat web.xml (3.0 or 3.1, no matter). > > I have created an external simple servlet with @WebServlet

Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread aghart...@gmail.com
Hi all, A question, I can't solve that Tested with Tomcat 9.0.41, java 8 x64, linux (Fedora 32). I have a standard tomcat web.xml (3.0 or 3.1, no matter). I have created an external simple servlet with @WebServlet annotation, and packaged it to a jar file: @WebServlet(name =