Hello guys,
I've to ask your help with a problem I can't solve.
I'm tring to use Myfaces-Tomahawk Cookmenu. To do it I followed this
tutorial

http://www.roseindia.net/jsf/apache-myfaces-tomahawk/tomahawk_jscookMenu_tag.shtml

I'm not able to understand where I fail, but when I run application it gives
me 

exception 

javax.servlet.ServletException: Filter execution threw an exception

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)


root cause 

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:282)

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)


What I did is:
1) I created a jsf application in Netbeans (for JSF 1.2)
2) I downloaded jar "tomahawk12-1.1.8" for JSF 1.2
3) I create an example project
4) I put in the index page

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<html>
<head>
<title>t:jscookMenu example</title>
</head>
<body>
<f:view>
        <h:form>
          <t:jscookMenu layout="hbr" theme="ThemeIE" >
        <t:navigationMenuItem id="nmi1"
                        itemLabel="Menu1">
                        <t:navigationMenuItem id="nmi1_1"
                                itemLabel="Menu11" action="welcome" />
                        <t:navigationMenuItem id="nmi1_2"
                                itemLabel="menu12" action="welcome" />
                        <t:navigationMenuItem id="nmi1_3"
                                itemLabel="menu13" action="welcome" />
                        <t:navigationMenuItem id="nmi1_4"
                                itemLabel="menu14" split="true">
                                <t:navigationMenuItem id="nmi14_1"
                                        itemLabel="menu141"     
action="welcome" />
                                <t:navigationMenuItem id="nmi14_2"
                                        itemLabel="menu142" action="welcome"/>
                                <t:navigationMenuItem id="nmi14_3"
                                        itemLabel="menu143" action="welcome" />
                                <t:navigationMenuItem id="nmi14_4"
                                        itemLabel="menu144"     
action="welcome"/>

                        </t:navigationMenuItem>
        </t:navigationMenuItem>
        </t:jscookMenu>
</h:form>
</f:view>
</body>
</html>

and I declared filter in the web.xml as

 <!--  ExtensionsFilter,utilizzato da Myfaces -->
 <filter>
  <filter-name>ExtensionsFilter</filter-name>
 
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
  <init-param>
   <param-name>uploadMaxFileSize</param-name>
   <param-value>20000m</param-value>
  </init-param>
  <init-param>
   <param-name>uploadThresholdSize</param-name>
   <param-value>10000k</param-value>
  </init-param>
 </filter>
 <!--  Mapping per ExtensionsFilter-->
 <filter-mapping>
  <filter-name>ExtensionsFilter</filter-name>
  <servlet-name>Faces Servlet</servlet-name>
 </filter-mapping>
 <filter-mapping>
  <filter-name>ExtensionsFilter</filter-name>
  <url-pattern>*.jsf</url-pattern>
 </filter-mapping>
 <filter-mapping>
  <filter-name>ExtensionsFilter</filter-name>
  <url-pattern>/faces/*</url-pattern>
 </filter-mapping>

These are steps I followed.
What I'm missing?

Thanks in advance..
-- 
View this message in context: 
http://www.nabble.com/cookmenu-strange-problem-tp22965493p22965493.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to