You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Hui Ye <hy...@intranetsolutions.com> on 2001/03/30 23:19:08 UTC

Catalina Compiling error. class/method name mismatch between catalina classes reference calls and javax.servlet classes

Hi, all,

I downloaded latest catalina code off cvs and jakarta-servletapi-4.0-b1,
along with other required stuff, and tried to compile and build it.
However, there are class name and method mismatches between the two to
prevent compiling going through. Example: 

org.apache.catalina.session.StandardSession and
org.apache.catalina.core.ApplicationContext make reference to 
javax.servlet.http.HttpSessionAttributeListener. The class name within
servletapi is 
javax.servlet.http.HttpSessionAttributesListener.


org.apache.catalina.core.ApplicationFilterConfig make calls to
javax.servlet.filter.init(FilterConfig) and Filter.destroy() method.
However, the methods aren't in javax.servlet.Filter interface


I am wandering which version of servlet api will match current catalina
code? Any leads are appreciated.

Thanks in advance.

Hui

Re: Catalina Compiling error. class/method name mismatch between catalina classes reference calls and javax.servlet classes

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Fri, 30 Mar 2001, Hui Ye wrote:

> 
> Hi, all,
> 
> I downloaded latest catalina code off cvs and jakarta-servletapi-4.0-b1,
> along with other required stuff, and tried to compile and build it.
> However, there are class name and method mismatches between the two to
> prevent compiling going through. Example: 
> 

The combination you are trying will not work, because there have been API
changes since Tomcat 4.0 beta 1.  If you want to use current
"jakarta-tomcat-4.0" code, you will also need the current
"jakarta-servletapi-4" code as well.

Craig