https://issues.apache.org/bugzilla/show_bug.cgi?id=53917

          Priority: P2
            Bug ID: 53917
          Assignee: dev@tomcat.apache.org
           Summary: @PostConstruct in base class never called - only works
                    if it's declared the derived web service class
                    (JAX-WS/Catalina)
          Severity: minor
    Classification: Unclassified
          Reporter: richard.che...@eu.sony.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: Catalina
           Product: Tomcat 6

Following example deployed as WAR under Catalina:

public abstract class BaseWebService {
    ...

    @PostConstruct
    public void init() {
        logger.info("init called");
    }
}

@WebService(...) 
public class MyWebService extends BaseWebService {
  ...
}

Upon deployment of MyWebService no "init called" ever appears in the logs.

It looks like a duplicate of 45285 but we've tested this on 6.0.18, 6.0.19,
6.0.20 and 6.0.35 and found it not to work.

Moving the init method into MyWebService is a workaround but results in a messy
codebase.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to