aspose file tools*
The moose likes JSF and the fly likes getting MyFaces Tomahawk up and running in Eclipse Indigo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "getting MyFaces Tomahawk up and running in Eclipse Indigo" Watch "getting MyFaces Tomahawk up and running in Eclipse Indigo" New topic
Author

getting MyFaces Tomahawk up and running in Eclipse Indigo

Scott Stephens
Greenhorn

Joined: Jun 25, 2011
Posts: 23

at http://myfaces.apache.org/tomahawk/index.html supposedly one can put the two myfaces-api.jar and myfaces-impl.jar together with the tomahawk.jar, set the extensions filter in the web.xml and with the taglibs defined in the jsp-Files, it's an ease. --- Theoretically.

I created a new dynamic-web project and did exactly these steps and it won't run. Always the Tomcat shows a 404 Error.

The console has absolutely no output other than the tomcat is started properly.
Here is my web.xml :
++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>tommy</display-name>

<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>1m</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>

<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Virtual Path Mapping -->
<!--
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
-->
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>


<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
++++++++++++++++++++++++++++++++++++++++

what am I doing wrong?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting MyFaces Tomahawk up and running in Eclipse Indigo