myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christopher.alexan...@novartis.com
Subject Unable to find or serve resource, inputFileUpload.xhtml, from library org.apache.myfaces.custom
Date Thu, 03 Mar 2011 18:27:12 GMT
Hi All,

I keep getting the following server log when initially launching my app:

WARNING: JSF1064: Unable to find or serve resource, inputFileUpload.xhtml, 
from library, org.apache.myfaces.custom. 

I am unable to see tag lib for <t:inputFileUpload /> when using 
intellisense in my page view and the compiler says this is invalid:

<t:inputFileUpload required="true" requiredMessage="A MS Word document is 
required." storage="default" value="#{template_New.originalDtsDoc}" />

My Application and tools stack is:

Glassfish 3.0.1
JSF 2 (Myfaces + Primefaces)
Netbeans 6.9.1

Leveraged libraries include:

tomahawk20-1.1.10.jar 
commons-collections-3.2.1.
jar commons-io-1.4.jar 
commons-fileupload-1.2.1.jar 
commons-logging-1.1.1.jar 

My web.xml file is:

<!-- For Apache TomaHawk MyFaces -->
<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.RESOURCE_VIRTUAL_PATH</param-name>
    <param-value>/faces/myFacesExtensionResource</param-value>
</context-param>

<!-- Filters -->
<filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
        <param-name>uploadMaxFileSize</param-name>
        <param-value>5m</param-value>
    </init-param>
    <init-param>
        <param-name>uploadThresholdSize</param-name>
        <param-value>100k</param-value>
    </init-param>
</filter>
<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>
<!--
<filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>*.xhtml</url-pattern>
</filter-mapping>
-->

<!-- Servlets -->
<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>/faces/*</url-pattern>
</servlet-mapping>
<servlet>
    <servlet-name>Resource Servlet</servlet-name>
    <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>Resource Servlet</servlet-name>
    <url-pattern>/primefaces_resource/*</url-pattern>
</servlet-mapping>

Your help would be appreciated.

Thanks,

Chris
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message