Gail:

I am with you on the necessity to have the WEB-INF/servlets directory for each new 
directory one creates that will run servlets.  Since I sent that email, I have come to 
that conclusion through trail and error.

I have had success with the BookStoreServlet being "dispatched" (per the shell script 
feedback).  but it can not find the bookstore.html   I have moved this file to every 
possible location without any success of it finding it.
What is your webserver.xml file have set for the Webserver info, please see mine below.
WebServer id="webServer">
    <Service id="service0">
        <WebApplication id="examples" mapping="/examples" docBase="examples"/>
           </Service>
</WebServer>

I have also tried the following:
WebServer id="webServer">
    <Service id="service0">
        <WebApplication id="webpages" mapping="/webpages" docBase="webpages"/>
           </Service>
</WebServer>

Could you do me a favor, and let me know exactly what directories you placed the 
Duke's Bookstore files in (including the cart and database).  And also show me your 
webserver.xml file.  I believe my problem lies in the settings
in the webserver.xml file or in placement of the bookstore files.

For example: I placed them in g:\jswdk-1.0\examples\web-inf\servlets\All dukefiles

Thanks

John


Gael Stevens wrote:

> For what it's worth, I'm on unix using jswdk-1.0 and all the examples run fine.
> I also have been able to create my own application directory (myapp1) and
> can serve up servlets from that.  I put the same structure as under the examples
> directory under my myapp1 dir and compiled the sevlets into the 
>myapp1/WEB-INF/servlets directory.  I have also added a line (like the example
> one) in webserver.xml and copied the properties files from examples into the
> corresponding myapp1 dirs. I have also gotten a very basic applet to work
> under myapp1, but it's having some problems accessing all the classes.  No
> doubt, that's my error which I hope to find soon.
>
> That's as far as I've gotten though.  But if you find additional documentation on
> jswdk-1.0, I'd love to know about it.
>
> John Considine wrote:
>
> > Thanks for your reply.  I have been using JSWDK1.0 which  is a server provided by 
>Sun Microsystems that allow you to run both JSP and Servlets (and any other server 
>implementable process).  It works great for me on the
> > samples they include with the setup (includes both JSP and Servlets) but when I 
>create my own servlets or use the tutorial servlets it does not work.  I place the 
>following code in the servlets.properties file which in the
> > JSWDK1.0 case is located in two locations 
>G:\jswdk-1.0\examples\WEB-INF\servlets.properties and also at 
>G:\jswdk-1.0\webpages\Web-inf\servlets.properties
> > I do not know which one it references when it starts up a servlet (or the server)
> > There is also a webserver.xml file which has setup information on that the server 
>uses when starting. I don't know if I need to add information there, and if so what 
>information.
> >
> > I tried putting my created servlets in the same directory of the ones that 
>jswdk-1.0 provided but the servlet will still not run.  I spent two days this week 
>trying to get it running without success.
> >
> > Do you know of anyplace the has good information on setting parameters for the 
>jswdk-1.0.  I looked through the Java Developer Connection with little success.
> >
> > Thanks
> >
> > John
> > venkata p suresh wrote:
> >
> > > Dear John,
> > > When u say jswdk1.0,i understand it as jdk1.0
> > > I don't think that u can execute servlets in jdk1.0
> > > What u do is:
> > > 1.Download jdk1.1 or jdk1.2 from http://java.sun.com
> > > 2.Download jsdk2.0  from http://java.sun.com
> > > 3.You should have a server like WIN NT with IIS
> > > 4. (1) and (2) should be downloaded to a machine with (3) or download to any 
>machine,then copy the setup file to (3) and then set it up.Downloading of jsdk2.0 is 
>very easy and doesn't consume much time as well as memory
> > > 5.After copying the setup files to (3),install jdk1.1 or 1.2 on (3).Go through 
>the readme.txt before installing.
> > > 6.Then,install jsdk2.0 on (3).Go through readme.txt before installing.
> > > 7.You will find a directory named 'examples' in jsdk2.0'.This is very 
>important.In that , you will find a file called servlet.properties as well as some 
>.java and .class files
> > > 8.go to DOS prompt of your machine.Then type the command 'servletrunner' and 
>press on enter.Then,it will display a list containing connections,etc.
> > > 9.Minimize the DOS window.Because,servletrunner should be on when you are 
>working with servlets
> > > 10.Open the browser and enter
> > >    http://localhost:8080/servlet/SimpleServlet
> > >    and press enter
> > > 11.Now that servlet will be executed.This servlet 'SimpleServlet' is present in 
>examples directory  as SimpleServlet.class
> > > 12.It will work!
> > >
> > > P.V.SURESH
> > > Software Engineer
> > > IGNOU
> > > NEW DELHI
> > > INDIA
> > > [EMAIL PROTECTED]
> > >
> > > --
> > >
> > > On Fri, 6 Oct 2000 14:42:13    J wrote:
> > > >If you have any insight on what directory under jswdk-1.0  to place
> > > >servlets
> > > >> so they will run properly, let me know.  I took the Duke's Bookstore
> > > >examples
> > > >> and placed them in jswdk-1.0\examples\WEB-INF\servlets  but I can not
> > > >call it
> > > >> from the browser using
> > > >http:\\localhost:8080\examples\servlet\bookstore.
> > > >> Also, I am not sure what to put in the servlets.properties file.
> > > >
> > > >Thanks
> > > >
> > > >John
> > > >
> > > >___________________________________________________________________________
> > > >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
> > > >
> > >
> > > What are you N2?  Choose from 150 free e-mail addresses.
> > > http://www.n2mail.com
> > >
> > > ___________________________________________________________________________
> > > 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
> >
> > ___________________________________________________________________________
> > 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

___________________________________________________________________________
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

Reply via email to