core.js missing resource

UI Components for JSF
Post Reply
david158
Posts: 6
Joined: 17 Oct 2018, 14:58

17 Oct 2018, 15:07

Hi
I am new to this work so any help would be appreciated:

I am using Primefaces 6.0, JSF 2.2.9 running in Tomcat 7.0.91.
When I start Tomcat I get an error:
WARNING: JSF1064: Unable to find or serve resource, core.js, from library, primefaces.

In each xhtml file the header is:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:u="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core" 
      xmlns:p="http://primefaces.org/ui">

david158
Posts: 6
Joined: 17 Oct 2018, 14:58

19 Oct 2018, 11:26

Quick update, I upgraded to Primefaces 6.2 and Tomcat 8.0.53, even purchased a Poseidon theme from PrimeStore but still get missing resource error, core.js seems ok now but get other random ones like can't firnd theme.css, jquery etc

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Oct 2018, 16:12

Are you by accident (or choice) running an applicationserver with HTTP/2 enabled?

david158
Posts: 6
Joined: 17 Oct 2018, 14:58

21 Oct 2018, 13:06

Hi
Thanks, I will take a look

david158
Posts: 6
Joined: 17 Oct 2018, 14:58

22 Oct 2018, 09:46

Hi
I have definitely not enabled HTTP/2 at all.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

22 Oct 2018, 10:27

Is the error just random?
There are some posts here that it's caused by a FF feature, to try if loading the resource from http is faster, as loading from the cache. If the http request is canceled, the JSF impls logs this error.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

david158
Posts: 6
Joined: 17 Oct 2018, 14:58

26 Oct 2018, 10:27

Hi, the problem appears to be quite random in which resource can not be found, I am not sure what you refer to as an FF Feature.
It is strange in that the application appears to work ok, it is just the number of errors being logged
Last edited by david158 on 26 Oct 2018, 10:42, edited 1 time in total.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

26 Oct 2018, 10:32

Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

david158
Posts: 6
Joined: 17 Oct 2018, 14:58

05 Nov 2018, 15:11

Thanks, looks good to me :D

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

15 Nov 2018, 12:51

JFYI:
we removed the logging of stacktrace in case of a ClientAbort in MyFaces: https://issues.apache.org/jira/browse/MYFACES-3736
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests