java2wsdl

How to use `java2wsdl` on a class that `implements`?

泪湿孤枕 提交于 2020-01-06 07:52:07
问题 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:

Which jar for interface HttpSessionListener?

孤街浪徒 提交于 2020-01-06 07:17:09
问题 I wanted to use javax.servlet.http.HttpSessionListener interface in my project. The project can't find a proper jar. Which jar do I need to include in the project? Which package? Edit Seems like a different problem, new question here. 回答1: I think servlet-api.jar will do it. and if project still can't find a proper jar, then you must try to add it again [as you have said that you are using eclispe so you can add it using properties-> build path -> configure build path -> add external jars ].