[cross posting to interest lists in case others have run
into the same issue]
ahhh ... interesting. it looks like there might be a problem
with specifying absolute docBase parameters on jdk 1.1.x/win
which appears to be resolved by running on jdk 1.3.x and most
likely on 1.2.x.
file based urls on jdk1.1.x/win has been a vexing problem.
looks like we may need to look at applying some of the patch
logic to the docBase parameter as well.
hope this helps,
- james
Larry Isaacs wrote:
>
> I'm not using jdk1.2.x at the moment, but I do have jdk1.3. The problem does not
>occur with jdk1.3. Numberguess executes successfully using both the fully qualified
>name and not-fully qualified name I tried originally.
>
> Thanks.
>
> Larry
>
> -----Original Message-----
> From: James Todd [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 21, 1999 2:14 PM
> To: Larry Isaacs
> Subject: Re: JSWDK 1.0 Feedback:
>
> hmmmm ... i'll see what i can check into.
>
> can you consider running on jdk1.2.x as there was some
> other file path issues on nt that have caused problems
> in the past. that said, i'd be surprised if that helps
> with the docbase stuff.
>
> - james
>
> Larry Isaacs wrote:
> >
> > Hi James,
> >
> > Thanks for the quick response. Unfortunately, the fully qualified name you
>suggest also doesn't work. I still get:
> >
> > java.lang.NullPointerException
> > at com.sun.jsp.compiler.Main.getClassFileData(Main.java:242)
> > at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:128)
> > at
>com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:77)
> > at
>com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:87)
> > at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
> > at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> > at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
> > at com.sun.web.core.Context.handleRequest(Context.java:414)
> > at com.sun.web.server.ConnectionHandler.run(Compiled Code)
> >
> > Changing the "examples" line to:
> >
> > <WebApplication id="examples" mapping="/examples"
>docBase="file:/C:/jswdk-1.0.1/examples"/>
> >
> > will break "examples" as well.
> >
> > This is being run using JDK1.1.8 if it matters.
> >
> > Larry
> >
> > -----Original Message-----
> > From: James Todd [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 21, 1999 1:23 PM
> > To: Larry Isaacs
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: JSWDK 1.0 Feedback:
> >
> > hi larry -
> >
> > can you try fully qualifying the docbase, eg:
> >
> > docBase="file:/C:/MyWork/examples"
> >
> > to be honest, there are a variety of valid file
> > url formats and i know that some of them work
> > and there are possibly bugs with others.
> >
> > i'll see if i can free up some time to give this
> > a go on my nt but at the moment i'm in pretty
> > deep with some other issues.
> >
> > hope this helps,
> >
> > - james
> >
> > Larry Isaacs wrote:
> > >
> > > I have a question concerning the JSWDK 1.0.1. Here is my test case.
> > >
> > > 1. Install the JSWDK 1.0.1 in c:\jswdk-1.0.1.
> > >
> > > 2. Create a directory called c:\MyWork and copy the examples directory under
>c:\jswdk-1.0.1 to c:\MyWork.
> > >
> > > 3. Add c:\MyWork\examples\Web-inf\jsp\beans to the CLASSPATH environment
>variable.
> > >
> > > 3. Add the following line to the webserver.xml file in c:\jswdk-1.0.1:
> > >
> > > <WebApplication id="myexamples" mapping="/myexamples"
>docBase="/MyWork/examples"/>
> > >
> > > 4. Start the server and in a browser navigate to
>http://localhost:8080/examples/jsp and execute the Numberguess example. This works
>successfully for me.
> > >
> > > 5. Navigate to http://localhost:8080/myexamples/jsp and execute the Numberguess
>example here. This does not work.
> > >
> > > Should the line added in step 3 be successful allowing myexamples to execute JSP?
> > >
> > > After much experimentation, I found that I can get both examples and myexamples
>to work by doing the following:
> > >
> > > 1. Place the webserver.xml file in the root directory of C and modify the
>WebApplication lines to be:
> > >
> > > <Service id="service0" docBase="./jswdk-1.0.1/webpages"
>workDir="c:/jswdk-1.0.1/work">
> > > <WebApplication id="examples" mapping="/examples"
>docBase="./jswdk-1.0.1/examples"/>
> > > <WebApplication id="myexamples" mapping="/myexamples"
>docBase="./MyWork/examples"/>
> > > </Service>
> > >
> > > 2. Modify startserver.bat and stopserver.bat to use the webserver.xml in the
>root directory.
> > >
> > > It seems that the JSP feature wants docBase to be relative to the location of
>the webserver.xml file and underneath its location. Is this correct, or what was
>intended?
> > >
> > > Please let be know if there is a better way to accomplish this. Thanks.
> > >
> > > Larry
> > >
> > > __________
> > > Larry Isaacs
> > > [EMAIL PROTECTED]
> > > SAS Institute Inc.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html