--

Michael Starr wrote:

> --
>
> >--
> >
> >>I am running JServ 1.0, Apache 1.3.6 using the JSDK 2.1 (and thus enabling
> >JSP)
> >
> >Wanna bet?
>
> Actually, no.  I would like to find out why it *appears* to be working here.
> Again, here is my classpath in the jserv.properties file:
>
> wrapper.classpath=/<path to jswdk>/lib/jspengine.jar
> wrapper.classpath=/<path to jswdk>/lib/jsp.jar
> wrapper.classpath=/<path to jsdk2.1>/servlet.jar
>
> I am sure this is JSDK 2.1.
> I am sure Im using Jserv 1.0 .
> I am sure it is working (at least what I have tried so far)
>
> But, I am not in total control of this environment and i know that someone
> recompiled Apache.  I do not think they did anything special, but is it
> possible that they hacked it so that it would work?
>
> >
> >Changes in the 2.1 servlet api will/should prevent jserv from
> >compiling/working.
>
> What changes?
>

Jason Hunter wrote a very complete article in JavaWorld
(http://www.javaworld.com)  a few months ago that documented the changes
between 2.0 and 2.1.  See that article for an in-depth explanation.  The
remainder of this message is the short answer to what you should expect with
Apache JServ 1.0 and the servlet API 2.1 classes:

Recompiling Apache won't have any effect, because it contains no Java code.

Trying to recompile Apache JServ with the 2.1 servlet classes will definitely
fail, because many new methods were added that are not implemented in the
current code -- for example, HttpServletRequest.getSession() with no arguments,
and ServletContext.getRequestDispatcher().

Trying to compile a servlet or JSP page against the 2.1 classes will succeed if
the syntax is OK.

Trying to execute that compiled-against-2.1 servlet or JSP page will work in
Apache JServ as long as you don't depend on any of the new 2.1 features, or the
old 2.0 logic that was deprecated (like ServletContext.getServlet()).  If you
use any of the new features, you will likely get "method not found" type
exceptions at runtime.

Bottom line -- it may kinda sorta work, but don't expect any support when it
breaks.  The Apache JServ documentation is VERY clear -- JSDK 2.0 only is
supported.

Craig McClanahan




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to