Not sure about 1. It is a very lightly documented
subject. However, check the archives. Use the keyword
"webserver.xml". One of our more studious colleagues
has discovered some interesting facts regarding that
file.

As far as 2 goes, it's an easy one. You probably
requested HelloworldExample, but note the case error.
It needs to be HelloWorldExample. I think this error
may be exclusive to NT where the OS is case
insensitive, but Java is not.

//Nicholas

--- Eldho Thomas <[EMAIL PROTECTED]> 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
>


=====
"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