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 application
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
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 ver
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. S
> -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
>
catalina.startup.Catalina.start(Catalina.java:772)
>> > at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > Method)
>> > at
>> >
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
a:43)
> > at java.base/java.lang.reflect.Method.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 P
onfirm you have a vanilla tomcat?
> >
> > 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
>
ion. 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 Berli
> 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 ann
сб, 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 handled
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
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 behavior
13 matches
Mail list logo