J2EE Security - theme files not authorised

UI Components for JSF
Post Reply
chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

10 Nov 2011, 10:47

I when abling J2EE security non primefaces pages load but primefaces pages do not load as the theme packages /css files are not authorised.

I am using Glassfish v3.1

In the web.XML I secure the directory: /secure/*

Could you let me know if anyone has come across this issue?

Thank you.

Chris

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

10 Nov 2011, 12:17

I have the same problem with my login site. After success login, everything is fine. I use Spring Webflow and Spring Security
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

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

10 Nov 2011, 12:26

Enable access to /javax.faces.resource/

chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

11 Nov 2011, 00:34

Thank you so much for your speedy reply. This worked treat.

<security-constraint>
<web-resource-collection>
<web-resource-name>All Access</web-resource-name>
<url-pattern>/javax.faces.resource/*</url-pattern>
<http-method>DELETE</http-method>
<http-method>PUT</http-method>
<http-method>HEAD</http-method>
<http-method>OPTIONS</http-method>
<http-method>TRACE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>

Regards,

Chris :D
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

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

11 Nov 2011, 09:40

Glad it works!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests