JBoss Community

Re: @PostConstruct not inoked in ear packaging

created by Tomas Bartalos in EJB3 - View the full discussion

So finally I've found the solution. The problem was in included library jsr250-api-1.0.jar.

I used maven for building and this library was transitive dependency of resteasy-jaxrs lib.

I marked this lib as provided and now the @PostConstruct works.

But anyway its a strange behavior from jboss side, because there was no error message in logs, only the postcontruct simply stopped working.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community