FrontController Apache / Tomcat
I'm trying to implement the FrontController design pattern from Sun. But we keep on running into problems when we port the application to apache/Tomcat structure. It works fine in a tomcat stand alone. De context is initialised and the servlet is found using the url pattern, however when we call this application from Apache the servlets aren't found. I think it has something to do with the server.xml file. Both are running on the same machine
Any suggestions please?
apache error log
[Sat Aug 04 22:17:29 2001] [error] [client 127.0.0.1] File does not exist: e:/apache/tomcat/webapps/frontcontroller/control/login
jasper.log
2001-08-04 22:17:10 - Scratch dir for the JSP engine is: E:\apache\tomcat\work\localhost_8080%2Fexamples
2001-08-04 22:17:10 - IMPORTANT: Do not modify the generated servlets
2001-08-04 22:17:20 - JspEngine --> /main.jsp
2001-08-04 22:17:20 -ServletPath: /main.jsp
2001-08-04 22:17:20 - PathInfo: null
2001-08-04 22:17:20 - RealPath: E:\apache\tomcat\webapps\frontcontroller\main.jsp
2001-08-04 22:17:20 -RequestURI: /frontcontroller/main.jsp
2001-08-04 22:17:20 -QueryString: null
2001-08-04 22:17:20 -Request Params:
2001-08-04 22:17:20 - Classpath according to the Servlet Engine is: E:\apache\tomcat\webapps\frontcontroller\WEB-INF\classes
servlet.log
2001-08-04 22:17:10 - path="/examples" :jsp: init
2001-08-04 22:17:10 - path="/frontcontroller" :jsp: init
2001-08-04 22:17:10 - path="/admin" :jsp: init
2001-08-04 22:17:10 - path="/test" :jsp: init
2001-08-04 22:17:11 - path="" :jsp: init
2001-08-04 22:17:20 - path="/frontcontroller" :jsp: init
Because he can't find the servlet there no other log files
server.xml
<Context path="/frontcontroller"
docBase="E:/apache/tomcat/webapps/frontcontroller"
debug="0"
reloadable="true"/>
Web.xml
<web-app>
<display-name>FrontController</display-name>
<servlet>
<servlet-name>MainServlet</servlet-name>
<display-name>FrontController</display-name>
<servlet-class>be.vlaanderen.sbs.frontcontroller.MainServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MainServlet</servlet-name>
<url-pattern>/control/*</url-pattern>
</servlet-mapping>
</web-app>

