• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resource not available

 
Muhammad Qureshi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Gr8 Ranchers,
I am having problem in setting my project in tomcat, my directory structure is like this:
<jakarta-tomcat-4.0.4>
| <webapps>
| <ribsproj>
| <WEB-INF>
| <classes>
|<HelloWorldExample.class>
| <ribs>
| <engine>
| <LoginEngine.class>
I added following lines in server.xml file:
<Context path="/ribsproj" docBase="ribsproj" debug="0" privileged="true"/>
My web.xml :
<web-app>
<display-name>Hello, World Application
</display-name>
<description>abc</description>
<servlet>
<servlet-name>HelloWorldExample</servlet-name>
<description>abc</description>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>/go</url-pattern>
</servlet-mapping>
</web-app>
the URL: http://mqs:8080/ribsproj/go works and my HelloWorldExample invokes successfully.
But the URL http://mqs:8080/ribsproj/ribs/engine/LoginEngine shows error:
The requested resource (/ribs/engine/LoginEngine) is not available, remember my LoginEngine class is in ribs.engineproject i.e (ribs.engine.LoginEngine).
Thanks in advance.
Muhammad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic