The moose likes Struts and the fly likes 404 - Servlet FrontController is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "404 - Servlet FrontController is not available" Watch "404 - Servlet FrontController is not available" New topic

404 - Servlet FrontController is not available

Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179

I'm very new to struts and just trying my first struts program. It is the famous HFSJ beerapp example.
So I have:
form.jsp (directs to SelectBeer.do)

Problem is when I submit the form I get to http://localhost/~juhan/SelectBeer.do and I see error 404 - Servlet FrontController is not available

I have copied to my WEB-INF/lib/ files:

I belive the problem may be in my web.xml file or maybe struts-config.xml file that are in my WEB-INF/ directory.


And here is struts-config.xml

What does it really mean FrontController is not available? Do I have to deploy it in some special way. I simply restarted the tomcat.
Allen Bandela
Ranch Hand

Joined: Feb 16, 2006
Posts: 128

I have the same problem. Can anybody help please?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

I'm not sure what the problem with your application is, since you didn't provide us with any details, but here's what I think is the problem with the original post:
I have copied to my WEB-INF/lib/ files:

These jar files are not enough. All the jar files in the /lib directory of the unzipped download file must be copied to your WEB-INF/lib directory.

This error is an indication that the Struts ActionServlet did not initialize properly. The real error is logged to the tomcat log files when the application starts up. You can find these log files in the <tomcat root>/logs directory. Look for the ones with the most recent dates.

Consultant, Sima Solutions
Conor Williams

Joined: Oct 31, 2012
Posts: 4
i'm probably a bit late to help here, but I modified catalina.bat and added the jars in the CLASSPATH there.

set CLASSPATH=c:\struts1CON\struts-core-1.3.10.jar;c:\struts1CON\commons-beanutils-1.8.0.jar;c:\struts1CON\commons-chain-1.2.jar;c:\struts1CON\commons-digester-1.8.jar;c:\struts1CON\struts-taglib-1.3.10.jar;c:\apache-tomcat-7.0.19-windows-x86\apache-tomcat-7.0.19\lib\servlet-api.jar;c:\apache-tomcat-7.0.19-windows-x86\apache-tomcat-7.0.19\webapps\conor1\WEB-INF\classes;c:\struts1CON\commons-logging-1.0.4.jar

struts v1.3.10

worked a peach - happy halloween!
I agree. Here's the link: http://aspose.com/file-tools
subject: 404 - Servlet FrontController is not available
Similar Threads
HFSJ struts Example pgm
first struts application error
Getting error while running BeerStruts example
Trouble with Struts
problem in struts example