File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes problem in struts example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "problem in struts example" Watch "problem in struts example" New topic

problem in struts example

Hemant Gupta

Joined: Dec 07, 2006
Posts: 6
I am getting follwing error when i try to launch the example.

type Status report

message Servlet FrontController is not available

description The requested resource (Servlet FrontController is not available) is not available.

I am using tomcat 5.5.20 and struts version 1.1 and done all the steps written in HFSJ book.

struts-config.xml is here

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"


<form-bean name="selectBeerForm"
type="com.example.web.BeerSelectForm" />

<action path="/SelectBeer"
name="selectBeerForm" scope="request"
validate="true" input="/select/form.jsp">
<forward name="show_results"
path="/result.jsp" />

<message-resources parameter="ApplicationResources" null="false" />


web.xml is here

<web-app xmlns=""

<!-- Define the controller servlet -->
<!-- Name the struts configuration file -->

<!-- Guarantee that this servlet is loaded on startup. -->
<!-- END: Define the null servlet -->

<!-- The Struts controller mapping -->
<!-- END: The Struts controller mapping -->


help me.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

done all the steps written in HFSJ book

HFSJ uses Struts ??

Anyway, did you put the necessary libraries in your WEB-INF/lib directory ?

[My Blog]
All roads lead to JavaRanch
Hemant Gupta

Joined: Dec 07, 2006
Posts: 6
i have put following three jars in WEB-INF/lib


Anything else needed ?
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Check your server console during its startup and you will likely see a more helpful error message.

A good workman is known by his tools.
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
Try adding struts.jar to your classpath...

SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
I agree. Here's the link:
subject: problem in struts example
It's not a secret anymore!