Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

404 - Servlet FrontController is not available

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I have the same problem. Can anybody help please?
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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
  • 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!
 
Hot dog! An advertiser loves us THIS much:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic