java - Spring, Prime Faces application not showing CSS when deploying to Heroku -


i working spring 3.1.3, prime faces 3.4.2, hibernate 3.6.8 , pretty faces 2.0.4.

the css showing when deploy app in local server (apache tomcat 7), when deploy same project heroku css not showing.

this how input css in main.xhtml template file:

<h:outputstylesheet library="css" name="bootstrap.css" /> <h:outputstylesheet library="css" name="custom.css" /> 

this result in html source (local server):

<link type="text/css" rel="stylesheet" href="/evaluation-cloud/javax.faces.resource/theme.css.jsf?ln=primefaces-cupertino" /> <link rel="stylesheet" media="screen" type="text/css" href="/evaluation-cloud/javax.faces.resource/bootstrap.css.jsf?ln=css" /> <link rel="stylesheet" media="screen" type="text/css" href="/evaluation-cloud/javax.faces.resource/custom.css.jsf?ln=css" /> <link rel="stylesheet" media="screen" type="text/css" href="/evaluation-cloud/javax.faces.resource/primefaces.css.jsf?ln=primefaces" /> 

this result in html source when deployed heroku

<link type="text/css" rel="stylesheet" href="//javax.faces.resource/theme.css.jsf?ln=primefaces-cupertino" /> <link rel="stylesheet" media="screen" type="text/css" href="//javax.faces.resource/bootstrap.css.jsf?ln=css" /> <link rel="stylesheet" media="screen" type="text/css" href="//javax.faces.resource/custom.css.jsf?ln=css" /> <link rel="stylesheet" media="screen" type="text/css" href="//javax.faces.resource/primefaces.css.jsf?ln=primefaces" /> 

notice '//' in href

i don't know why happening. if have experienced same issue please me.

thank you.

i changed configuration use jetty runner , solved problem.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -