Shash;

You appear to have a command of the syntax to this
file. Do you have any idea how to configure the file
so that the server runner automatically inits a
servlet on startup ?

//Nicholas

--- "Sasvata (Shash) Chatterjee"
<[EMAIL PROTECTED]> wrote:
>
> Eldo,
>
> Here's an answer for 1.:
>
> Your webserver.xml should look something like:
>
> <WebServer id="webserver">
>         <Service id="service0"
> docBase="/path/to/documentroot">
>                 <WebApplication id=... mapping=...
> docBase=... />
>                 <WebApplication id=... mapping=...
> docBase=... />
>         </Service>
> </WebServer>
>
> When you specify http://localhost:8080, the
> index.html file comes from
> the path specified in the "docBase" property for the
> "Service" and not
> the "WebApplication". The actual location will be
> "<docBase>/webpages/index.html".  Also, in
> "<docBase>/webpages/WEB-INF/webapp.properties there
> is a line like:
> "welcomefiles=index.jsp,index.html,index.htm".  Add
> "default.htm" at the
> end if that is what you want to call your file (but
> it still goes in the
> same webpages directory).
>
> Hope this helps.
>
> Shash
>
> Eldho Thomas wrote:
> >
> > I have installed SUN's JSWDK 1.0.1. Can someone
> help me these questions -
> >
> > 1.
> >
> > I have this line in my webserver.xml
> >
> > <WebApplication id="xxxx" mapping="/yyyy/xxxx"
> docBase="yyyy/xxxx"
> > maxInactiveInterval="30" />
> >
> > From which directory is index.html is loaded when
> I open
> > "http://localhost:8080" in my browser.  Is there a
> way to change the name of
> > the file that is loaded...like..to default.htm ?
> >
> > 2. I have created a new application "xxxx". I
> copied a servlet from another
> > application to this application. When I try to
> load this servlet, I get this
> > error. What does this error mean ?
> >
> > Error: 500
> > Internal Servlet Error:
> >
> > java.lang.NoClassDefFoundError: HelloworldExample
> (wrong name:
> > HelloWorldExample)
> > at java.lang.ClassLoader.defineClass0(Native
> Method)
> > at
> java.lang.ClassLoader.defineClass(ClassLoader.java,
> Compiled Code)
> > at
>
java.lang.ClassLoader.defineClass(ClassLoader.java:392)
> > at
>
com.sun.web.core.ServletLoader.loadClass(ServletLoader.java:117)
> > at
>
com.sun.web.core.ServletLoader.loadServlet(ServletLoader.java:31)
> > at
>
com.sun.web.core.ServletWrapper.loadServlet(ServletWrapper.java:91)
> > at
>
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:119)
> > at
>
com.sun.web.core.InvokerServlet.service(InvokerServlet.java:168)
> > 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(ConnectionHandler.java:139)
> >
> > Thank you.
> > Eldho Thomas.
> >
> > ______________________________________________
> > FREE Personalized Email at Mail.com
> > Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001
> >
> >
>
___________________________________________________________________________
> > 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>
begin:vcard
> n:Chatterjee;Sasvata
> tel;fax:(972) 996-7119
> tel;work:(972) 996-6466
> x-mozilla-html:TRUE
> url:http://www.ans.alcatel.com
> org:Alcatel USA;Optical Networks R&D
> version:2.1
> email;internet:[EMAIL PROTECTED]
> title:Optical Transport Platforms
> adr;quoted-printable:;;1225 N. Alma Rd.=0D=0AMS
> 406-170;Richardson;Texas;75081-2206;USA
> x-mozilla-cpt:;18240
> fn:Sasvata (Shash) Chatterjee
> end:vcard
>


=====
"And what causes me to run?
'Cause you're a...
Big Black Furry Creature From Mars"


--
Nicholas Whitehead
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.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

Reply via email to