wood burning stoves 2.0*
The moose likes JSF and the fly likes UnsupportedOperationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "UnsupportedOperationException" Watch "UnsupportedOperationException" New topic
Author

UnsupportedOperationException

Anthony D'Souz
Ranch Hand

Joined: Oct 13, 2011
Posts: 63
Hi,

After creating a demo dynamic web project in jsf, when i tried to run the project i am getting this exception. I am not able to understand its root cause. Please help me out of it.

4 Nov, 2011 7:20:15 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.UnsupportedOperationException
at javax.faces.application.Application.getResourceHandler(Application.java:286)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:307)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
4 Nov, 2011 7:21:01 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.UnsupportedOperationException
at javax.faces.application.Application.getResourceHandler(Application.java:286)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:307)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

Thanks,
Bunta
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

means the operation is not supported by *that *object ;)
http://download.oracle.com/javase/7/docs/api/java/lang/UnsupportedOperationException.html
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

and Welcome to JavaRanch
Anthony D'Souz
Ranch Hand

Joined: Oct 13, 2011
Posts: 63
Hi,

But its a blank page. I just created a new dynamic web page and tried to run that page, hence i dont think there is some object which is throwing this exception. There might be some jars missing or something related to apache but i am not able to figure it out

For setting up the workspace i followed this link:

http://www.vogella.de/articles/JavaServerFaces/article.html

After clicking finish, when the project is created i run my blank web page and got this exception.

Please help

Thanks,
Butna
Ted Smyth
Ranch Hand

Joined: May 28, 2008
Posts: 73
bunta bunty wrote:Hi,

But its a blank page. I just created a new dynamic web page and tried to run that page, hence i dont think there is some object which is throwing this exception. There might be some jars missing or something related to apache but i am not able to figure it out

For setting up the workspace i followed this link:

http://www.vogella.de/articles/JavaServerFaces/article.html

After clicking finish, when the project is created i run my blank web page and got this exception.

Please help

Thanks,
Butna


I ran into a similar issue, albeit with Glassfish and JSF 2. What version of tomcat are you running? There may be some incompatibilities between your JSF version and tomcat...


Edward Smith
 
Don't get me started about those stupid light bulbs.
 
subject: UnsupportedOperationException
 
Similar Threads
Exception in PhaseListener RESTORE_VIEW 1 afterPhase
NullPointerException at SeamViewHandler.calculateLocale
java.lang.UnsupportedOperationException
doubt
logic:iterate problem