myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TOMAHAWK-1636) MyFacesResourceLoader - Unable to find resource
Date Sun, 07 Oct 2012 04:47:03 GMT

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471138#comment-13471138
] 

Leonardo Uribe commented on TOMAHAWK-1636:
------------------------------------------

It seem some classpath issue, because in JSF 2.0 version, AddResource API was deprecated and
JSF 2.0 ResourceHandler API was adopted, so files like popcalendar.js and others are now under
/META-INF/resources folder inside the jar.

It doesn't sound like a bug or something wrong in tomahawk. Note the suggested path to upgrade
from JSF 1.2 to 2.0 is migrate the views from jsp to facelets (to use JSF 2.0 ResourceHandler
API, ajax and other cool features like Partial State Saving). 
                
> MyFacesResourceLoader - Unable to find resource
> -----------------------------------------------
>
>                 Key: TOMAHAWK-1636
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1636
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: ExtensionsFilter
>    Affects Versions: 1.1.13
>         Environment: websphere application server 8.0.0.4
>            Reporter: Klaus Schuster
>
> Hi!
> I am using websphere application server 8.0.0.4 together with the myfaces implementation
of websphere 8 (i think this is version 2.0.2). We added richfaces 4.2.2 Final and tomahawk20-1.1.13.jar
to the classpath under webcontent/web-inf/lib.
> I have the following configuration in my web.xml for using tomahawk <t:inputCalendar>:
> <filter>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
>         <init-param>
>             <description>Set the size limit for uploaded files.</description>
>             <param-name>uploadMaxFileSize</param-name>
>             <param-value>20m</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>
> 		<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
> 	</filter-mapping>
> 	<filter-mapping>
> 		<filter-name>MyFacesExtensionsFilter</filter-name>
> 		<url-pattern>*.xhtml</url-pattern>
>         </filter-mapping>
> I am using PARENT_FIRST at my classloader hierarchy for using the integrated myfaces
version of the WAS.
> I also defined the following property:
> com.ibm.ws.webcontainer.invokefilterscompatibility = true under webcontainer/user defined
settings. (I prefered to use this setting on was 6.1 too).
> When I start up my application, enter the first page with the t:inputCalender, the log
shows the following error messages:
> [11.09.12 14:02:39:652 CEST] 0000002a SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource WH/theme.css for component calendar.HtmlCalendarRenderer. Check
that this file is available in the classpath in sub-directory /resource of the package-directory.
> [11.09.12 14:02:39:653 CEST] 0000002a SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource prototype.js for component prototype.PrototypeResourceLoader. Check
that this file is available in the classpath in sub-directory /resource of the package-directory.
> [11.09.12 14:02:39:654 CEST] 00000028 SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource date.js for component calendar.HtmlCalendarRenderer. Check that
this file is available in the classpath in sub-directory /resource of the package-directory.
> [11.09.12 14:02:39:654 CEST] 00000029 SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource popcalendar.js for component calendar.HtmlCalendarRenderer. Check
that this file is available in the classpath in sub-directory /resource of the package-directory.
> [11.09.12 14:02:39:655 CEST] 0000002d SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource DB/theme.css for component calendar.HtmlCalendarRenderer. Check
that this file is available in the classpath in sub-directory /resource of the package-directory.
> [11.09.12 14:02:39:678 CEST] 0000002d SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource date.js for component calendar.HtmlCalendarRenderer. Check that
this file is available in the classpath in sub-directory /resource of the package-directory.
> [11.09.12 14:02:39:683 CEST] 0000002d SystemOut     O ERROR 2012-09-11 14:02:39 org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader
- Unable to find resource popcalendar.js for component calendar.HtmlCalendarRenderer. Check
that this file is available in the classpath in sub-directory /resource of the package-directory.
> I opened the tomahwak20-1.1.13.jar file and found the missing files under \META-INF\resources
under the specific package names.
> Thanks,
> Klaus

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message