I have made a little progress installing JSP with JWS, which is pretty amazing given 
the sparcity of installation instruction.

First of all, JWS (Sun's JavaWebServer) doesn't use the servlet runner.  It has it's 
own set of classes in jws.jar.  Fortunately, you can still use the CLASSPATH to 
pre-empt the default classes at startup.  In accordance with the 'instructions' 
(Readme.jsp -- which is poorly named in my opinion...it looks like a .jsp file!)  I 
added the samples directory and the jsdk.jar and jsp.jar files to the CLASSPATH.  
Since JWS does not use a jsdk directory, I created <JWSRoot>/jsp and put these files 
there and added them to the classpath.

According to the instructions:  Test JSP:  http://localhost:8080
Translate: invoke your web server on the default port.
Result: Forbidden (403)

Continuing to snoop around, I see that there is a JspServlet.class in the jsp.jar 
file.  Gee, why don't I set this up as a servlet!  Maybe that will help.  Of course, 
that doesn't change the Forbidden error.  So maybe I'll try to invoke a .jsp file just 
for fun.  That date.jsp looks interesting:

    java.io.FileNotFoundException: File /u07/qaweb/date.jsp not found

Well, this is a little better.  It's obviously not looking where I have the files.  
I'll just move a few files around and try invoking it with the full path:  
http://asc-sun1/samples/calendar/date.jsp.  Result:

    jsp.PageCompileException: Error writting out java file:  
./servlets/jsp/_samples_calendar_date.java

Making progress, I obviously have a missing directory.  Create directory servlets/jsp. 
 Now I get:

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

Well, this one has me stumped.  There is certainly a class ServletContext in the 
CLASSPATH.  In fact, I have it twice:  once in the jsdk.jar file and once in 
servlet.jar.  Of course, nothing is mentioned in the 'instructions' about servlet.jar. 
 Well, I'll add it to the CLASSPATH anyway.  No change.  OK, I'll be bold and put it 
at the front of the CLASSPATH.  No change.

So where do I find this missing method:

getResourceDispatcher(Ljava/lang/String;)Ljavax/servlet/ResourceDispatcher

cc



begin:vcard
n:Cobb;Christopher
tel;cell:703-909-7550
tel;fax:703-648-7475
tel;work:703-648-6725
x-mozilla-html:TRUE
org:Powerhouse Technologies, Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:SW Architect
fn:Christopher Cobb
end:vcard

Reply via email to