tomcat - Which servlet-api jar should I use for my cometd filter -
i using cometd 3.0.1 , trying deploy in tomcat 7.0.50. have filter created, using jetty jar (9.2.2) compile these filter classes, after move jetty jar should include in class path.
i want jar don't need regenerate war every time move 1 container other.
can include servlet api jar directly jdk (i unable find jar in jdk). using java 8.
the documentation home page of tomcat 7 says:
apache tomcat version 7.0 implements servlet 3.0 , javaserver pages 2.2 specifications
so, need 3.0 version of servlet api.
the servlet api not part of java se. it's part of java ee. won't find in jdk. need jar compile code.
note whether use jetty or tomcat doesn't change anything: jar provided servlet container, must not inside war file. can find jar tomcat uses in lib
directory of tomcat.
Comments
Post a Comment