[jboss-user] [JBoss Seam] - Help me to install Tomahawk with Facelets!

sherkan777 do-not-reply at jboss.com
Mon Oct 23 03:09:23 EDT 2006


Hi ALL,
I have problem to install tomahawk with facelets...

I have added tomahawk library to my projekt(also tomahawk.jar is in war file in WEB-INF\lib.

My web.xml:
anonymous wrote : 
  | <?xml version="1.0" ?>
  | <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  |          version="2.4">
  | 
  |     
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     
  |     
  |     
  |         <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     
  |     
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>
  |     </context-param>
  |     
  |     <context-param>
  |         <param-name>facelets.DEVELOPMENT</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  |     
  |     <context-param>
  |         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  |         <param-value>.xhtml</param-value>
  |     </context-param>
  | 
  | 	<!-- Tomahawk -->
  | 	
  | 		<filter-name>MyFacesExtensionsFilter</filter-name>
  | 		<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
  | 	    <init-param>
  | 	        <param-name>maxFileSize</param-name>
  | 	        <param-value>20m</param-value>
  | 	    </init-param>
  | 	
  | 	
  | 	<filter-mapping>
  | 	    <filter-name>MyFacesExtensionsFilter</filter-name>
  | 	    <servlet-name>Faces Servlet</servlet-name>
  | 	</filter-mapping>
  | 	
  | 	<filter-mapping>
  | 	    <filter-name>MyFacesExtensionsFilter</filter-name>
  | 	    <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
  | 	</filter-mapping>
  |     <!-- /Tomahawk -->
  | 
  | 
  |     
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  |     
  | 
  |     
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
  |     
  | 
  |     <filter-mapping>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <url-pattern>/*</url-pattern>
  |     </filter-mapping>
  |     
  |     <filter-mapping>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  | 
  | 
  |     
  |     
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |         <load-on-startup>1</load-on-startup>
  |     
  |     
  |     <servlet-mapping>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping>  
  |     
  |     <context-param>
  |         <param-name>facelets.LIBRARIES</param-name>
  |         <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
  | 	</context-param>               
  | </web-app>

I have nothing added to my jsp page, but when I start application, serwer throw me an exception:

anonymous wrote : javax.servlet.ServletException: Filter execution threw an exception

and console:
anonymous wrote : 08:59:54,937 ERROR [[default]] Servlet.service() for servlet default threw exception
  | java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload

In my war file folder lib I have also:
el-api.jar
el-ri.jar
jboss-seam-debug.jar
jboss-seam-ui.jar
jsf-facelets.jar
and tomahawk-1.3.1.jar

What library I need to add to my project or what I should do to start succesfull application ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979941#3979941

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979941



More information about the jboss-user mailing list