[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

RequestDispatcher Not Found ????


Hi,

I have GNUJSP1.0 configured to run with RedHat Linux 6.1, Apache 1.3.9, 
JDK1.2.2, JSDK2.0 & JServ 1.1.  I have followed the install.apache procedure 
except I did not create an alph zone.  Instead, I added the necessary 
parameters to the existing servlet zone.  The Hello.jsp execute perfectly, 
however when I tried to test the jsp that I created, I got the following 
error :

java.lang.NoSuchMethodError: javax.servlet.ServletContext: method 
getRequestDispatcher(Ljava/lang/String;)Ljavax/servlet/RequestDispatcher; 
not found

at org.apache.jserv.JServConnection.processRequest(JServConnection.java, 
Compiled Code)
	at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled 
Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)

The following is the portion of the code that errors out:

		    String url="/jdbcout.jsp";
		    ServletContext sc=getServletContext();
		    RequestDispatcher rd=sc.getRequestDispatcher(url);
		    rd.forward(req,res);

I have the servlet-2.0-plus.jar included in the classpath of the 
jserv.properties and before the jsdk20.jar.  The last thing I tried is 
implementing gnujsp10cvs, but no luck also.  The same file seems to compile 
ok with JSDK2.1 but JSDK2.1 gives me an AbstractMethod Error even with 
Hello.jsp.  I have been struggling with this problem for at least 2 weeks 
and it is driving me up the wall.  Did I miss something ? any suggestions ?

Best Regards,

Henry

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com