Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-06 Thread Cherio
Mark, I understand that no matter what the point of view is, there are requirements as to what an application can package in order to correctly run within Tomcat. I appreciate the details and thank you for elaborating on it. On Wed, Apr 6, 2022 at 2:35 AM Mark Thomas wrote: > Your

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-06 Thread Mark Thomas
Your application must not package any of the specification API jars provided by Tomcat. That includes annotation-api.jar Tomcat implements the specific version of the API defined by those jars. You can't drop in a different API version and expect Tomcat to magically implement that new version

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Cherio
This makes no sense. The application and the container need to be able to maintain an independent life cycle of the libraries. I may want to update Tomcat and not be concerned that it breaks my application because I may not even have means to adapt the application to the updated tomcat library

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Mark Thomas
5 Apr 2022 20:58:26 Cherio : I found what the issue is. This has to do with the sequence of loading of libraries/jars AND project supplied "annotation-api.jar" which declares PostConstruct annotation. The same set of annotations are also being supplied by Tomcat in an identically named JAR.

AW: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Thomas Hoffmann (Speed4Trade GmbH)
> -Ursprüngliche Nachricht- > Von: Cherio > Gesendet: Dienstag, 5. April 2022 17:17 > An: Tomcat Users List > Betreff: Re: PostConstruct annotation in a filter since version 9.0.60 > > I did ran the diffs between versions. With my naked eye I didn't spot > any

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Cherio
> > at >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native >> > Method) >> > at >> > >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) >> > at >> > >> java.base/jdk.

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Cherio
hod.invoke(Method.java:568) > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476) > > > > > > On Sun, Apr 3, 2022 at 9:54 AM Peter Rader wrote: > > > > > Pos

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Rémy Maucherat
gt; > > > Kind regards > > > > Peter Rader > > -- > > Fachinformatiker AE / IT Software Developer > > Peter Rader > > Wilsnacker Strasse 17 > > 10559 Berlin - GERMANY > > Tel: 0049 (0)30 / 6 29 33 29 6 > > Fax: 0049 (0)30 / 6 29 33 29 6

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Cherio
A vanilla tomcat does no >> dependency injection. Can you confirm you have a vanilla tomcat? >> >> Kind regards >> >> Peter Rader >> -- >> Fachinformatiker AE / IT Software Developer >> Peter Rader >> Wilsnacker Strasse 17 >> 10559 Berlin - G

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-05 Thread Cherio
Handy: 0049 (0)176 / 87 521 576 > Handy: 0049 (0)176 / 47 876 303 > > > > Gesendet: Freitag, 01. April 2022 um 23:02 Uhr > Von: "Cherio" > An: users@tomcat.apache.org > Betreff: PostConstruct annotation in a filter since version 9.0.60 > I observed an announce

Re: PostConstruct annotation in a filter since version 9.0.60

2022-04-03 Thread Konstantin Kolinko
сб, 2 апр. 2022 г. в 00:02, Cherio : > > I observed an announced change in behavior in version 9.0.60 (and later). > > My application has a Spring class loaded as a javax.servlet.Filter. It has > a method annotated with a PostConstruct annotation. Up until Tomcat 9.0.59 > the annotation was

Aw: PostConstruct annotation in a filter since version 9.0.60

2022-04-03 Thread Peter Rader
Fax: 0049 (0)30 / 6 29 33 29 6 Handy: 0049 (0)176 / 87 521 576 Handy: 0049 (0)176 / 47 876 303     Gesendet: Freitag, 01. April 2022 um 23:02 Uhr Von: "Cherio" An: users@tomcat.apache.org Betreff: PostConstruct annotation in a filter since version 9.0.60 I observed an announced change i

PostConstruct annotation in a filter since version 9.0.60

2022-04-01 Thread Cherio
I observed an announced change in behavior in version 9.0.60 (and later). My application has a Spring class loaded as a javax.servlet.Filter. It has a method annotated with a PostConstruct annotation. Up until Tomcat 9.0.59 the annotation was handled by Spring. Starting with Tomcat 9.0.60