Gael:
I want to thank you very much.  I was able to get the Duke's Bookstore (located in the 
Java Tutorial viewable at the Sun web site) running.  My problem seemed to stem from 
several areas.  One is that I had set the servlets.properites
in two areas under the examples directory and under the webpages directory with the 
same servlet information from Duke's Bookstore.  Since it was not working I thought 
having it in two places would increase my chances of getting it
to work since I did not know which servlets.properties the server was looking at.  
Instead what happened is the Server looked at combination of both and was getting 
confused.  So I cleared that up. Made a new directory called
mybkstore and place the WEB-INF and properties files in there as you suggested.  Added 
the Duke's Bookstore property codes into the servlets.properties file.  Compiled the 
files and started the web server.  It did work with some
hypertext failures which about half I cleared up by changing the reference in the 
.java files.

There is still allot of ambiguity on how the jswdk-1.0 server initializes files and 
sets paths.  I have not been able to find a good reference source for the jswdk-1.0.  
I am not sure it exist.

John

Gael Stevens wrote:

> Hi! I may have spoken too soon.  When I said that the samples were all running
> fine, I meant the ones that came with the jswdk-1.0 distribution I downloaded, but I 
>didn't see a Duke's Bookstore sample.  Is that one of the samples that came with
> the older Servlet 2.0 (?) examples from the the java? I know I've seen it some 
>place, but I never downloaded it, but if you will tell me where to down load it, I'll 
>give it a try tomorrow.  My webserver.xml looks like yours with
> the addition of:
>  <WebApplicaion id="myapp1" mapping="/myapp1" docBase="myapp1" />
> under the WebApplication definition for the examples app.  Then in myapp1/WEB-INF I 
>have mappings.properties, mime.properties and webapp.properies which are exactly the 
>same as the ones under examples.
>
> So far, all of the .html files I have used have been under my application's doc root,
> myapp1.
>
> John Considine wrote:
>
> >   ------------------------------------------------------------------------
> >
> > Subject: Mail System Error - Returned Mail
> > Date: Sun, 10 Oct 1999 20:42:04 +0000
> > From: Mail Administrator<[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> >
> > This Message was undeliverable due to the following reason:
> >
> > The following destination addresses were unknown (please check
> > the addresses and re-mail the message):
> >
> > SMTP <"\"\"gstevens\"@US.ORACLE>COM\"a Servlet API Technology. lockquote>">
> > SMTP <"">
> >
> > Please reply to [EMAIL PROTECTED]
> > if you feel this message to be in error.
> >
> >   ------------------------------------------------------------------------
> >
> > Reporting-MTA: dns; dfw-mmp2.email.verio.net
> > Received-From-MTA: dns; 198.172.161.190 [198.172.161.190]
> > Arrival-Date: Sun, 10 Oct 1999 20:42:02 +0000
> >
> >   ------------------------------------------------------------------------
> >
> > Subject: Re: Where to place Servlets in the JSWDK-1.0 server
> > Date: Sun, 10 Oct 1999 16:42:10 -0400
> > From: John Considine <[EMAIL PROTECTED]>
> > To: "A mailing list for discussion about Sun Microsystem's Java Servlet API
> >      Technology." <[EMAIL PROTECTED]>,
> >      ""gstevens\"@US.ORACLE>COM"a Servlet API Technology. lockquote>
> > References: <[EMAIL PROTECTED]>
> >      <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> >
> > 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