uCosminexus Application Server, Messages

[Contents][Back][Next]

KDJE39331-W

The return type of a method annotated with aa....aa must be void. (J2EE application = bb....bb, context root = cc....cc, class = dd....dd, method = ee....ee)

aa....aa: "PostConstruct" or "PreDestroy"
bb....bb: J2EE application name
cc....cc: Context root name
dd....dd: Class name
ee....ee: Method name
Description
The return-value type of a method annotated with PostConstruct or PreDestroy must be void.
The method will operate, but will not conform to the Java EE specifications.
A method for which a warning is reported might be defined in web.xml. In such a case, the method is defined in the <post-construct> tag if aa....aa is PostConstruct, and in the <pre-destroy> tag if aa....aa is PreDestroy.
Action
Revise the J2EE application according to the Java EE specifications.