How to use `java2wsdl` on a class that `implements`?
问题 I am generating wsdl using java2wsd . My class is public class REWS {...} . I just added implements HttpSessionListener like so: public class REWS implements HttpSessionListener {...} and I started getting the NoClassDefFoundError error for HttpSessionListener . I can build the REWS class, but once I want to generate stub with java2wsdl I get NoClassDefFoundError . How to I tell java2wsdl to take HttpSessionListener from /Tomcat/lib/servlet-api.jar ? How do I include servlet-api.jar ? 回答1: