tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yevgen Krapiva <>
Subject How to disable JSR 250 annotations processor ?
Date Fri, 25 Feb 2011 21:03:50 GMT

I have a problem deploying Spring based application to Tomcat 6.0.26 /
Some of my beans have @PostConstruct annotated methods.

public void init() { ... }

The problem is that these methods called twice - first time by Tomcat
annotation processor,
second time - by Spring.
Is it possible to turn off this behavior in Tomcat as I do not really want
to rewrite the application
to use xml configuration metadata.

I've written in the topic - JSR 250, but to be honest, I didn't test it with
the other annotations from
that JSR.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message