maven - java.lang.IllegalStateException after adding rich faces libraries to pom.xml -
i trying run first jsf application using richfaces. unfortunately error below being thrown. there no bean added project.
also, there's no tags added yet. trying run simple empty xhtml file. problem?
i'm using eclipse luna 4.4.2, glassfish 4, , osx.
2016-02-03t00:34:59.661+0200|warning: standardwrappervalve[faces servlet]: servlet.service() servlet faces servlet threw exception java.lang.illegalstateexception @ com.sun.faces.context.facescontextimpl.assertnotreleased(facescontextimpl.java:712) @ com.sun.faces.context.facescontextimpl.getattributes(facescontextimpl.java:239) @ org.richfaces.context.extendedpartialviewcontext.setinstance(extendedpartialviewcontext.java:55) @ org.richfaces.context.extendedpartialviewcontext.release(extendedpartialviewcontext.java:64) @ org.richfaces.context.extendedpartialviewcontextimpl.release(extendedpartialviewcontextimpl.java:424) @ com.sun.faces.context.facescontextimpl.release(facescontextimpl.java:598) @ javax.faces.webapp.facesservlet.service(facesservlet.java:677) @ org.apache.catalina.core.standardwrapper.service(standardwrapper.java:1682) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:318) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:160) @ org.apache.catalina.core.standardpipeline.doinvoke(standardpipeline.java:734) @ org.apache.catalina.core.standardpipeline.invoke(standardpipeline.java:673) @ com.sun.enterprise.web.webpipeline.invoke(webpipeline.java:99) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:174) @ org.apache.catalina.connector.coyoteadapter.doservice(coyoteadapter.java:416) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:283) @ com.sun.enterprise.v3.services.impl.containermapper$httphandlercallable.call(containermapper.java:459) @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:167) @ org.glassfish.grizzly.http.server.httphandler.runservice(httphandler.java:206) @ org.glassfish.grizzly.http.server.httphandler.dohandle(httphandler.java:180) @ org.glassfish.grizzly.http.server.httpserverfilter.handleread(httpserverfilter.java:235) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:283) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:200) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:132) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:111) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.nio.transport.tcpniotransport.fireioevent(tcpniotransport.java:536) @ org.glassfish.grizzly.strategies.abstractiostrategy.fireioevent(abstractiostrategy.java:112) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.run0(workerthreadiostrategy.java:117) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.access$100(workerthreadiostrategy.java:56) @ org.glassfish.grizzly.strategies.workerthreadiostrategy$workerthreadrunnable.run(workerthreadiostrategy.java:137) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.dowork(abstractthreadpool.java:591) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.run(abstractthreadpool.java:571) @ java.lang.thread.run(thread.java:745)
my pom.xml:
<dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>javax.servlet-api</artifactid> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupid>org.richfaces.ui</groupid> <artifactid>richfaces-components-ui</artifactid> <version>4.3.7.final</version> </dependency> <dependency> <groupid>org.richfaces.core</groupid> <artifactid>richfaces-core-impl</artifactid> <version>4.3.7.final</version> </dependency>
also web.xml:
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"> <display-name>archetype created web application</display-name> <context-param> <param-name>javax.faces.default_suffix</param-name> <param-value>.xhtml</param-value> </context-param> <servlet> <servlet-name>faces servlet</servlet-name> <servlet-class>javax.faces.webapp.facesservlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>faces servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> </web-app>
according this jsf 2.2.7 culprit. can either downgrade jsf 2.2.6 or update richfaces 4.5.
Comments
Post a Comment