There is no mention made of the web.xml file, this
should be in the WEB-INF directory with the correct
servlet mappings.
--- "Kotturi, Rajendra" <[EMAIL PROTECTED]>
wrote:
> Hi ,
> I have Tomcat installed along with the apache
> server on an Solaris
> Machine. We already have an application (JSP based)
> running on this apche -
> tomcat config.
> Now I want to execute some servlets on it. I already
> have the <context >
> defined for this application in the server.xml in
> the tomcat/conf directory.
>
> I have created a sub dir called "classes" in the
> WEB-INF directory of my
> application (called "spa"). And I have copied the
> .class servlet files into
> these directories.
> Here is the hierarchy stucture of my application :
> my application path = "/devel/webdata/sites/spa"
> and my classes directory is
> "/devel/webdata/sites/spa/WEB-INF/classes"
>
> Now my problem is that I am not able to execute the
> servlets from the
> browser. I have tried it using
> http://domainname/aliasname/servlet/filename
> <http://domainname/aliasname/servlet/filename>
> However I am able to execute the servlets in
> tomcat/webapps/example/WEB-INF/classes and also any
> servlet, is located in
> the tomcat/webapps/.../WEB-INF/classes
> Now how can I make these servlets run from the
> directory where my app is
> located. Should my app. located in the Tomcat
> directory only in order to
> execute the servlets.
> or should I do any config in the apache for this.
> I would be really greatful if any body could help me
> solve this problem
> thanks
>
> Rajendra
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/