Topic
  • 1 reply
  • Latest Post - ‏2012-09-13T05:07:23Z by klaus11
klaus11
klaus11
3 Posts

Pinned topic websphere application server 8 tomahawk problem Unable to find resource

‏2012-09-11T12:19:35Z |
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 - where can I find it, which version is integrated?). 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.

Has anyone any ideas?
Thanks,
Klaus
Updated on 2012-09-13T05:07:23Z at 2012-09-13T05:07:23Z by klaus11
  • klaus11
    klaus11
    3 Posts

    Re: websphere application server 8 tomahawk problem Unable to find resource

    ‏2012-09-13T05:07:23Z  
    The output on the source code of the html site is the same as on my WAS6.1 infrastructure (JSF 1.2) with old Tomahawk 1.1.11:

    
    <script type=
    "text/javascript" src=
    "/app1/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/13474269/prototype.PrototypeResourceLoader/prototype.js"><!--   
    //--></script> <script type=
    "text/javascript" src=
    "/app1/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/13474269/calendar.HtmlCalendarRenderer/date.js"><!--   
    //--></script> <script type=
    "text/javascript" src=
    "/app1/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/13474269/calendar.HtmlCalendarRenderer/popcalendar.js"><!--   
    //--></script> <script type=
    "text/javascript" src=
    "/app1/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/13474269/inputTextHelp.HtmlTextHelpRenderer/inputTextHelp.js"><!--   
    //--></script>
    


    I think it must be spelled like:
    
    <link href=
    "/..../javax.faces.resource/theme.css.xhtml?ln=oam.custom.calendar.DB" rel=
    "stylesheet" type=
    "text/css">
    


    what exactly is the problem?
    Thanks,