Richfaces 4 fails to load resources
perfri Oct 26, 2012 9:24 AMI have updated an old JSF project to use JSF 2, Richfaces 4 and it is running in a Tomcat 7 environment.
I have managed to get almost everything running as expected but I have some errors that I can not figure out what could be the problem.
The hard thing is that I can also not predict when the erros will occur or where.
The symptoms I get is that sometimes images, flash files or javascripts wont get loaded. If I refresh the page it works. If I go to the same page some other time it works. But then maybe another image in another page wont get loaded. It is, as I see it, totally random.
Javascripts that belongs to Richfaces components may fail as well sometimes. The following is just examples how it may look in the console log. A refresh in the page will make it work though,
'richfaces.Event' is null or not an object tree.js.jsf?ln=org.richfaces, line 189 character 17
'richfaces.Event' is null or not an object tree.js.jsf?ln=org.richfaces, line 189 character 17
'richfaces.Event' is null or not an object tree.js.jsf?ln=org.richfaces, line 451 character 17
'RichFaces' is undefined richfaces-queue.js.jsf, line 5 character 1
Object doesn't support this property or method tree.js.jsf?ln=org.richfaces, line 324 character 17
Object doesn't support this property or method tree.js.jsf?ln=org.richfaces, line 324 character 17
Object doesn't support this property or method tree.js.jsf?ln=org.richfaces, line 324 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
Object doesn't support this property or method richfaces-base-component.js.jsf, line 229 character 17
'jQuery.url' is null or not an object archive.jsf, line 28 character 17
Object doesn't support this property or method archive.jsf, line 347 character 1
I have tried to use wireshark to see any errors but without luck.
I know it might be hard for you guys out there to give me a solution but if you just could hint me in what direction I should go i would appreciate it a lot.
If I can provide more information to you, just let me know.