hi sampat,
web.xml and server.xml files r not supposed to be
viewed in a browser.They r configuration files used by
tomcat to generate tomcat-apache.conf file.
To run ur own servlets u need to create a context in
the server.xml.There r already 2 o3 3 contexts created
by default for ur examples.u can create urs by using
those as an example.I also posted tomcat-howto on
linux yesterday to the list.Hope u check ur mails
properly.
Anyway try this steps :
(i) cd into JAKARTA_HOME/build/tomcat/webapps/
(ii) create any directory.
(for ex) mkdir myProject.
(ii) cd into JAKARTA_HOME/build/tomcat/conf/
(iv) edit server.xml and add this 2 lines near
the already existing context tags
<Context path="/myProject" docBase="webapps/myProject"
debug="0" reloadable="true" >
</Context>
(v) add ur servlets or jsp files to this
directory
(vi) set the classpath to where your compiled
classes are.
(vii) shutdown apache.
(viii) restart tomcat
(ix) start apache
bye and good luck
dushyanth
--- Sampat Palani <[EMAIL PROTECTED]> wrote: > hi
> i stilll cant run servlets on tomcat
> i tried the doc but could noyt how i can register
> them
> the files web.xml dosent open up in my browser
> i get the following error message
> Cannot view XML input using XSL style sheet. Please
> correct the error and
> then click the Refresh button, or try again later.
> pls help
> thanx
> regards
> Sam
>
>
>
>
>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> Sampat Palani
> USIT New Delhi India
> [EMAIL PROTECTED]
> "" ""
> ----Ooo * | * ooO-----
> --
> "Knowledge is the antidote to fear" -Ralph Waldo
> Emerson
>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
>
___________________________________________________________________________
> 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
=====
H.Dushyanth
Web Programmer
Archean Infotech Limited
http://www.archeanit.com
Where Technology Meets Business
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.in address at http://mail.yahoo.co.in
___________________________________________________________________________
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