You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Manoj Kithany <ma...@hotmail.com> on 2002/09/18 22:46:49 UTC
RE: Apache+Tomcat Error (No Context configured)
Hi Experts,
With reference to John's last email, I created the CONTEXT in SERVER.XML
file and added a following CONTEXT:
<Context path="/kithany" docBase="kithany" debug="0" />
Also, my Directory structure is as follows:
/kithany
/kithany/META-INF/application.xml
/kithany/WEB-INF/web.xml
/kithany/foo.jsp
/kithany/index.html
/kithany/kithany.war
I have my APPLICATION.XML file as follows:
-------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<application>
<display-name>KITHANY</display-name>
<module>
<web>
<web-uri>kithany.war</web-uri>
<context-root>/kithany</context-root>
</web>
</module>
</application>
-------------------------------------------------------------------------
And, my WEB.XML file is as:
-------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>
</web-app>
-------------------------------------------------------------------------
I then creat WAR file as follows:
-------------------------------------------------------------------------
#pwd
#/kithany
#jar -cvfM kithany.war .
-------------------------------------------------------------------------
Which I then, put it into /jboss/server/default/deploy and then start my
JBOSS(Tomcat/Catalina) Server and then on browser, I type following:
http://MY_IP_ADDR_ESS:8080/kithany
http://MY_IP_ADDR_ESS:8080/kithany/index.html
but it gives still gives following message.
Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process
this request
Experts, could you please guide me on to this.
THANKS to you and to John.
Manoj G. Kithany
>From: "Turner, John" <JT...@AAS.com>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: 'Tomcat Users List' <to...@jakarta.apache.org>
>Subject: RE: Apache+Tomcat+JBoss Error (No Context configured)
>Date: Tue, 17 Sep 2002 08:15:38 -0400
>
>
>There are plenty of servlet and JSP examples, with source, in the examples
>directory of Tomcat, including a HelloWorld servlet.
>
>Your error message seems self-explanatory to me. With all due respect, I
>must suggest to you again (as others have) that you READ the documentation
>available before posting questions to the list. You cannot just create a
>directory and drop a WAR file in it and expect Tomcat to work. As your
>error message says, you need a Context element in server.xml for that file.
>Please consult the documentation and server.xml itself for help on how to
>setup a Context element (hint: do the same thing as done for the /examples
>Context). Setting up a Context is basic issue #1 in Tomcat configuration,
>it's worth learning. If you configure your Context, and still cannot
>access
>your application, then post back to the list with the error messages you
>get.
>
>John
>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>