• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

404 - Servlet FrontController is not available

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

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)
result.jsp
test.model.BeerExpert.class
test.web.BeerSelectAction.class
test.web.BeerSelectForm.class

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:
commons-beanutils.jar
commons-digester.jar
struts.jar

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

web.xml


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.
 
Ranch Hand
Posts: 128
MS IE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the same problem. Can anybody help please?
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Allen,

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:
commons-beanutils.jar
commons-digester.jar
struts.jar


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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic