This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes No Context configured to process error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "No Context configured to process error" Watch "No Context configured to process error" New topic
Author

No Context configured to process error

anand gun
Greenhorn

Joined: Oct 10, 2006
Posts: 8
Hi

I am using Tomcat 4.1.
I created a folder SCWCD folder under the location "C:\Tomcat 4.1\webapps" and placed login.html file. Now created web.xml file under folder SCWCD.
Following is the entry of the web.xml under SCWCD folder...

<?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 id="WebApp_1">
<display-name>SCWCD</display-name>
<context-param id="ContextParam_1">
<param-name>SCWCD.server.host</param-name>
<param-value />
</context-param>
<context-param id="ContextParam_2">
<param-name>SCWCD.login.page</param-name>
<param-value>/login.html</param-value>
</context-param>
<context-param id="ContextParam_3">
<param-name>SCWCD.login.failure.page</param-name>
<param-value>/login.html</param-value>
</context-param>
</web-app>

but when I am trying to access login.html file from browser with address "http://localhost:9080/SCWCD/login.html"..

it is giving following error:-
HTTP Status 500 - No Context configured to process this request

--------------------------------------------------------------------------------

type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.

What Context I have to configure?
Can anyone please guide me what steps exactly I have to follow to access login.html file from browser..?

Thanks,
-Anand
Kishore Balla
Ranch Hand

Joined: Jun 08, 2005
Posts: 165
web.xml file should be under <context-root>/WEB-INF directory

in your case C:\Tomcat 4.1\webapps\SCWCD\WEB-INF\web.xml


SCJP 5.0 : 88% My Story, SCWCD 1.4 : 94% My Story
kishoreballa.com
anand gun
Greenhorn

Joined: Oct 10, 2006
Posts: 8
Thanks for the inputs...

I copied web.xml to correct location. it Worked fine.

- Anand
SCJP1.4 (89%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No Context configured to process error
 
Similar Threads
Problem with FORM authentication method
cleared SCWCD with 81%
Can't start a simple application
Sample web.xml.. may be useful for SCWCD Ranchers
No Context configured to process Error