I have a project in netbeans that works perfectly. But, I load .war in my glassfish standalone 4.1 (This version is the same as netbeans version)
I make the default .war from netbeans (clean and build)
In the project deployed in GFish StandAlone it does not show neither photos nor the elements inside the main components. Also, the primefaces theme doesn't load the CSS
Sample of the use of images and css in the .xhtml
<h:head>
<h:outputStylesheet library="resources" name="css/login.css"/>
<style type="text/css">
body{
background-image: url("resources/images/fondoBlanco.jpg");
background-size: cover;
background-repeat: no-repeat;
background-attachment:fixed;
}
</style>
</h:head>
Sample button images
<p:commandLink action="#{loginBean.sessGmail()}" ajax="true" type="submit" >
<h:graphicImage library="resources" name="images/iconGmailBlack.png" style="width: 150px; height: 150px; "/>
<f:param name="idParamtro" value="#{loginBean.userLog}" />
</p:commandLink>
All help is appreciated