This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Problem with simple filter and JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with simple filter and JSF" Watch "Problem with simple filter and JSF" New topic

Problem with simple filter and JSF

Fabio Cunha

Joined: Mar 25, 2011
Posts: 12
Hi guys, I'm trying to make a login system for users using a filter, my application is done with JSF and Hibernate, but every time I boot up it, I get an error

But the program still works, but I wonder what the cause of this error? someone would have any idea?
I appreciate any help, thanks


login.xhtml of it)

Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

This should probably be in the JSF forum instead of JSP. Why do you have an EL expression in your web.xml? I was under the impression that you can only have fully qualified, explicit values inside it.

Fabio Cunha

Joined: Mar 25, 2011
Posts: 12
I have EL expression my web.xml to manipulate skins for Richfaces, i sure that is not the problem because i already use that for a long time, but I'll try to post this message in the JSF forum.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038

Coding suggestion: Always use braces on conditionals. I can't count the number of times I've cause myself grief because I changed something like:


IllegalStateException means that you're trying to do something at the wrong time. Most typically it happens because you attempt to do something like set a header after you've begun sending content.

An IDE is no substitute for an Intelligent Developer.
Fabio Cunha

Joined: Mar 25, 2011
Posts: 12
My friend help, the problem is that I don't close the state,

before correction

after correction

thanks for everyone that try to help
I agree. Here's the link:
subject: Problem with simple filter and JSF
It's not a secret anymore!