URGENT Theme.css cannot be found - Primefaces 2.2.1

UI Components for JSF
Post Reply
crodger1
Posts: 1
Joined: 01 May 2011, 12:36

01 May 2011, 12:51

Hi Team,

I'm having an issue loading the astro theme in primefaces 2.2.1 on weblogic 10.3.4 from netbeans 7.0. The weblogic log reports the following:-

WARNING: JSF1064: Unable to find or serve resource, theme.css, from library, primefaces-aristo.
01-May-2011 11:43:14 com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/index.xhtml]
javax.faces.FacesException: Error loading theme, cannot find "theme.css" resource of "primefaces-aristo" library
at org.primefaces.renderkit.HeadRenderer.encodeTheme(HeadRenderer.java:114)
at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:71)

I have placed the following in the web.xml:-

<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>aristo</param-value>
</context-param>

and the placed the aristo-1.0.1.zip in the class path, as a library.

I would be most grateful if you could assist

Many thanks

Callum

bolsover
Posts: 7
Joined: 06 Apr 2009, 10:21

03 May 2011, 10:45

I had same problem..
Clearly a classpath issue; I solved by extracting the aristo-1.0.1.zip and referencing the resultant aristo-1.0.1 directory in my project. I'm not clear why this should be necessary - but it works for me.
db

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 May 2011, 10:52

Weird, it works fine for me on jetty/tomcat.

@bolsover, do you use weblogic as well?

bolsover
Posts: 7
Joined: 06 Apr 2009, 10:21

03 May 2011, 11:07

No - I'm using Glassfish 3.1.
The odd thing for me is that it was working OK until I deleted the original Netbeans supplied primefaces library and installed a newly downloaded version with all the sourcecode and a couple of theme libraries. It could be some anomaly with the way Netbeans evaluates the classpath.

rose
Posts: 2
Joined: 12 May 2011, 12:12

18 May 2011, 17:08

it works fine in Glassfish3.1 - netbeans6.9.1 after adding aristio-1.0.1.jar as library
i've use primefaces.skin instead of primfaces.THEME als param-name
<context-param>
<param-name>primefaces.skin</param-name>
<param-value>aristo</param-value>
</context-param>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests