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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -