RE: Apache+Tomcat Error (No Context configured)

2002-09-19 Thread Turner, John


OK, this is the last time I am going to reply.  

First, let me respectfully suggest (again) that you read the documentation
available.

Second, do you have an appBase parameter in your Host element?  You cannot
use a docBase of kithany, which is a relative path, without a
corresponding appBase parameter in your Host element.  This is CLEARLY
stated in the Tomcat 4.0.x documentation.

John

 -Original Message-
 From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 4:47 PM
 To: [EMAIL PROTECTED]
 Subject: 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-nameKITHANY/display-name
 module
 web
 web-urikithany.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 [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 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:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Apache+Tomcat Error (No Context configured)

2002-09-18 Thread Manoj Kithany

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-nameKITHANY/display-name
module
web
web-urikithany.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 [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]