you have three impls

jsf-ibm.jar
jsf-impl.jar
myfaces-impl

and two APIs

jsf-api.jar
myfaces-api

remove :
jsf-api.jar
jsf-ibm.jar
jsf-impl.jar



On 6/9/06, Gopalakrishnan, Jaya <[EMAIL PROTECTED]> wrote:
I have the following jar files in my web-inf/lib folder:

commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
jstl-1.1.0.jar
myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.2.jar
jsf-api.jar
jsf-ibm.jar
jsf-impl.jar
odc-jsf.jar
standard.jar

Is there any problem?

Regards,
Jayashree.

-----Original Message-----
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 4:48 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes


Jaya: Do you have a mixture of JSF RI?

Example, you have the MyFaces *AND* SUN JSF jars in your web-inf/lib
folder?

This killed about an hour of my time once.

--Todd

-----Original Message-----
From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 4:45 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes

Thanks Todd...

However, the moment, I put myfaces-api-1.1.3.jar, myfaces-impl-1.1.3.jar
in the web-inf/lib folder, my web appln simply fails to load...

If I remove the two jar files, the web application loads, however I get
the following error:

E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is
unavailable.]: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUpload
        at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:114)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
anceWrapper.java:132)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
ain.java:71)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:974)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
        at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
        at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
        at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
        at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
        at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

Thanks,
Jayashree.

-----Original Message-----
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 3:55 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes


Jaya: I faced the same issue in the past, here is my web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee
<http://java.sun.com/xml/ns/j2ee> "
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance> "
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
<http://java.sun.com/xml/ns/j2ee>
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
<http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd> ">
    <description>Transaction</description>
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>
    <context-param>
        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>

<param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>

<param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</
param-value>
    </context-param>

    <filter>
        <filter-name>extensionsFilter</filter-name>

<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-
class>
        <init-param>
            <description>Set the size limit for uploaded files.
            Format: 10 - 10 bytes
            10k - 10 KB
            10m - 10 MB
            1g - 1 GB</description>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
        </init-param>
    </filter>
    <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>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
</web-app>


The jars that I have are:

commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
jstl-1.1.0.jar
myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.2.jar


Thanks,

--Todd


________________________________

From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 3:50 PM
To: users@myfaces.apache.org
Subject: FW: Trying to work with Tomahawk Tabbed Panes
Importance: High



-----Original Message-----
From: Gopalakrishnan, Jaya
Sent: Friday, June 09, 2006 3:24 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Trying to work with Tomahawk Tabbed Panes
Importance: High


I am trying to work with Tomahawk tabbed panes. Here is something that I
have done:

The code for the tabbed panes in the jsp is:
------------------------------------------------------------------------
--------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<[EMAIL PROTECTED] uri="http://www.ibm.com/jsf/BrowserFramework"; prefix="odc"%>

<[EMAIL PROTECTED] uri="http://www.ibm.com/jsf/html_extended"; prefix="hx"%>

<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>

<HTML>

<HEAD>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" %>

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<META name="GENERATOR" content="IBM WebSphere Studio">

<META http-equiv="Content-Style-Type" content="text/css">

<LINK href="theme/Master.css" rel="stylesheet"

type="text/css">

<TITLE>TabbedPanesJSP.jsp</TITLE>

<LINK rel="stylesheet" type="text/css" href="theme/tabpanel.css"

title="Style">

</HEAD>

<BODY><body>

<f:view>

<t:panelTabbedPane bgcolor="#FF0000">

<t:panelTab id="tab01" label="Tab No.1">

<t:outputText value="something"></t:outputText>

</t:panelTab>

<t:panelTab id="tab02" label="Tab No.2">

<t:outputText value="something else"></t:outputText>

</t:panelTab>

</t:panelTabbedPane>

</f:view>

</BODY>

</HTML>

------------------------------------------------------------------------
---------------------------------------------------

I have put tomahawk1.1.2. jar in the web-inf/lib folder, along with
jsf-api.jar, jsf-impl.jar, jstl.jar.

In the web.xml i have put the following entry:

------------------------------------------------------------------------
----------------------------------------------------

<filter>

<filter-name>extensionsFilter</filter-name>

<filter-class>

org.apache.myfaces.component.html.util.ExtensionsFilter

</filter-class>

</filter>

<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>

<filter-mapping>

<filter-name>extensionsFilter</filter-name>

<url-pattern>/faces/*</url-pattern>

</filter-mapping>

------------------------------------------------------------------------
--------------------------------------------------------

However, when I run the application, I get the following exception:

E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is
unavailable.]: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUploadat
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:114)

at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
anceWrapper.java:132)

at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
ain.java:71)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:974)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)

at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)

at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)

at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)

at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invo
ke(CacheableInvocationContext.java:116)

at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:186)

at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)

at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)

at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)

at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

------------------------------------------------------------------------
------------------------------------------------------------------------
---------

Wht is it that is wrong? Can anybody please suggest?




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to