maven - java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory -
this question has answer here:
i want migrate jsf 2.1 2.2 can not run server (tomcat) couse of following error: (i'm yours inform used [hibernate + spring + jsf] in project maven)
`root webapplicationcontext: initialization started refreshing org.springframework.web.context.support.xmlwebapplicationcontext@37fc34bf: display name [root webapplicationcontext]; startup date [fri apr 25 19:38:18 west 2014]; root of context hierarchy loading xml bean definitions servletcontext resource [/web-inf/spring-beans.xml] bean factory application context [org.springframework.web.context.support.xmlwebapplicationcontext@37fc34bf]: org.springframework.beans.factory.support.defaultlistablebeanfactory@55251cfd pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@55251cfd: defining beans []; root of factory hierarchy root webapplicationcontext: initialization completed in 1837 ms avr. 25, 2014 7:38:19 pm javax.faces.factoryfinder$factorymanager copyinjectionproviderfromfacescontext grave: unable obtain injectionprovider init time facescontext. container implement mojarra injection spi? avr. 25, 2014 7:38:19 pm javax.faces.factoryfinder$factorymanager getfactory grave: l’application n’a pas été initialisée correctement au démarrage. impossible de localiser la fabrique : javax.faces.application.applicationfactory. attempting find backup. avr. 25, 2014 7:38:19 pm org.apache.catalina.core.standardcontext listenerstart grave: exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.apache.myfaces.webapp.startupservletcontextlistener java.lang.illegalstateexception: not find backup factory javax.faces.application.applicationfactory. @ javax.faces.factoryfinder$factorymanager.getfactory(factoryfinder.java:1135) @ javax.faces.factoryfinder.getfactory(factoryfinder.java:379) @ org.apache.myfaces.context.servlet.facescontextimplbase.getapplication(facescontextimplbase.java:169) @ org.apache.myfaces.context.servlet.facescontextimplbase.getelcontext(facescontextimplbase.java:220) @ javax.faces.component.uiviewroot.setlocale(uiviewroot.java:1488) @ org.apache.myfaces.webapp.abstractfacesinitializer._createfacescontext(abstractfacesinitializer.java:523) @ org.apache.myfaces.webapp.abstractfacesinitializer.initstartupfacescontext(abstractfacesinitializer.java:495) @ org.apache.myfaces.webapp.startupservletcontextlistener.contextinitialized(startupservletcontextlistener.java:113) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4973) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5467) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) avr. 25, 2014 7:38:19 pm javax.faces.factoryfinder$factorymanager getfactory grave: l’application n’a pas été initialisée correctement au démarrage. impossible de localiser la fabrique : javax.faces.application.applicationfactory. attempting find backup. avr. 25, 2014 7:38:19 pm org.apache.catalina.core.standardcontext listenerstart grave: exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.apache.myfaces.webapp.startupservletcontextlistener java.lang.illegalstateexception: not find backup factory javax.faces.application.applicationfactory. @ javax.faces.factoryfinder$factorymanager.getfactory(factoryfinder.java:1135) @ javax.faces.factoryfinder.getfactory(factoryfinder.java:379) @ org.apache.myfaces.context.servlet.facescontextimplbase.getapplication(facescontextimplbase.java:169) @ org.apache.myfaces.context.servlet.facescontextimplbase.getelcontext(facescontextimplbase.java:220) @ javax.faces.component.uiviewroot.setlocale(uiviewroot.java:1488) @ org.apache.myfaces.webapp.abstractfacesinitializer._createfacescontext(abstractfacesinitializer.java:523) @ org.apache.myfaces.webapp.abstractfacesinitializer.initstartupfacescontext(abstractfacesinitializer.java:495) @ org.apache.myfaces.webapp.startupservletcontextlistener.contextinitialized(startupservletcontextlistener.java:113) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4971) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5467) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) avr. 25, 2014 7:38:19 pm org.apache.catalina.core.standardcontext startinternal grave: error listenerstart avr. 25, 2014 7:38:19 pm org.apache.catalina.core.standardcontext startinternal grave: erreur de démarrage du contexte [/app] suite aux erreurs précédentes avr. 25, 2014 7:38:19 pm javax.faces.factoryfinder$factorymanager getfactory grave: l’application n’a pas été initialisée correctement au démarrage. impossible de localiser la fabrique : javax.faces.application.applicationfactory. attempting find backup. avr. 25, 2014 7:38:19 pm org.apache.catalina.core.standardcontext listenerstop grave: exception lors de l'envoi de l'évènement contexte détruit (context destroyed) à l'instance de classe d'écoute org.apache.myfaces.webapp.startupservletcontextlistener java.lang.illegalstateexception: not find backup factory javax.faces.application.applicationfactory. @ javax.faces.factoryfinder$factorymanager.getfactory(factoryfinder.java:1135) @ javax.faces.factoryfinder.getfactory(factoryfinder.java:379) @ org.apache.myfaces.context.servlet.facescontextimplbase.getapplication(facescontextimplbase.java:169) @ org.apache.myfaces.context.servlet.facescontextimplbase.getelcontext(facescontextimplbase.java:220) @ javax.faces.component.uiviewroot.setlocale(uiviewroot.java:1488) @ org.apache.myfaces.webapp.abstractfacesinitializer._createfacescontext(abstractfacesinitializer.java:523) @ org.apache.myfaces.webapp.abstractfacesinitializer.initshutdownfacescontext(abstractfacesinitializer.java:505) @ org.apache.myfaces.webapp.startupservletcontextlistener.contextdestroyed(startupservletcontextlistener.java:155) @ org.apache.catalina.core.standardcontext.listenerstop(standardcontext.java:5014) @ org.apache.catalina.core.standardcontext.stopinternal(standardcontext.java:5659) @ org.apache.catalina.util.lifecyclebase.stop(lifecyclebase.java:232) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:160) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) avr. 25, 2014 7:38:19 pm javax.faces.factoryfinder$factorymanager getfactory grave: l’application n’a pas été initialisée correctement au démarrage. impossible de localiser la fabrique : javax.faces.application.applicationfactory. attempting find backup. avr. 25, 2014 7:38:19 pm org.apache.catalina.core.standardcontext listenerstop grave: exception lors de l'envoi de l'évènement contexte détruit (context destroyed) à l'instance de classe d'écoute org.apache.myfaces.webapp.startupservletcontextlistener java.lang.illegalstateexception: not find backup factory javax.faces.application.applicationfactory. @ javax.faces.factoryfinder$factorymanager.getfactory(factoryfinder.java:1135) @ javax.faces.factoryfinder.getfactory(factoryfinder.java:379) @ org.apache.myfaces.context.servlet.facescontextimplbase.getapplication(facescontextimplbase.java:169) @ org.apache.myfaces.context.servlet.facescontextimplbase.getelcontext(facescontextimplbase.java:220) @ javax.faces.component.uiviewroot.setlocale(uiviewroot.java:1488) @ org.apache.myfaces.webapp.abstractfacesinitializer._createfacescontext(abstractfacesinitializer.java:523) @ org.apache.myfaces.webapp.abstractfacesinitializer.initshutdownfacescontext(abstractfacesinitializer.java:505) @ org.apache.myfaces.webapp.startupservletcontextlistener.contextdestroyed(startupservletcontextlistener.java:155) @ org.apache.catalina.core.standardcontext.listenerstop(standardcontext.java:5014) @ org.apache.catalina.core.standardcontext.stopinternal(standardcontext.java:5659) @ org.apache.catalina.util.lifecyclebase.stop(lifecyclebase.java:232) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:160) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) avr. 25, 2014 7:38:20 pm org.apache.catalina.core.applicationcontext log infos: closing spring root webapplicationcontext closing org.springframework.web.context.support.xmlwebapplicationcontext@37fc34bf: display name [root webapplicationcontext]; startup date [fri apr 25 19:38:18 west 2014]; root of context hierarchy destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@55251cfd: defining beans []; root of factory hierarchy avr. 25, 2014 7:38:20 pm org.apache.catalina.loader.webappclassloader checkthreadlocalmapforleaks grave: web application [/app] created threadlocal key of type [javax.faces.context.facescontext$1] (value [javax.faces.context.facescontext$1@a756d09]) , value of type [org.apache.myfaces.context.servlet.startupfacescontextimpl] (value [org.apache.myfaces.context.servlet.startupfacescontextimpl@23496f3c]) failed remove when web application stopped. threads going renewed on time try , avoid probable memory leak. avr. 25, 2014 7:38:20 pm org.apache.coyote.abstractprotocol start infos: starting protocolhandler ["http-bio-8182"] avr. 25, 2014 7:38:20 pm org.apache.coyote.abstractprotocol start infos: starting protocolhandler ["ajp-bio-8209"] avr. 25, 2014 7:38:20 pm org.apache.catalina.startup.catalina start infos: server startup in 12752 ms `
this web.xml:
<?xml version="1.0" encoding="utf-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name>app</display-name> <context-param> <param-name>javax.faces.config_files</param-name> <param-value>/faces-config.xml</param-value> </context-param> <welcome-file-list> <welcome-file>login.xhtml</welcome-file> </welcome-file-list> <listener> <listener-class> org.springframework.web.context.contextloaderlistener </listener-class> </listener> <context-param> <param-name>contextconfiglocation</param-name> <param-value>/web-inf/spring-beans.xml</param-value> </context-param> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class> <init-param> <param-name>contextconfiglocation</param-name> <param-value>/web-inf/application-servlet-config.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.aspx</url-pattern> </servlet-mapping> <context-param> <param-name>primefaces.theme</param-name> <param-value>excite-bike</param-value> </context-param> <context-param> <param-name>javax.faces.project_stage</param-name> <param-value>development</param-value> </context-param> <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>/faces/*</url-pattern> </servlet-mapping> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationcontext</param-name> <param-value>resources.application</param-value> </context-param> <context-param> <description>state saving method: 'client' or 'server' (=default). see jsf specification 2.5.2</description> <param-name>javax.faces.state_saving_method</param-name> <param-value>client</param-value> </context-param> <filter> <filter-name>primefaces fileupload filter</filter-name> <filter-class> org.primefaces.webapp.filter.fileuploadfilter </filter-class> <init-param> <param-name>thresholdsize</param-name> <param-value>1000000</param-value> </init-param> </filter> <filter-mapping> <filter-name>primefaces fileupload filter</filter-name> <servlet-name>action</servlet-name> </filter-mapping> <filter> <filter-name>extensions filter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.extensionsfilter</filter-class> </filter> <filter-mapping> <filter-name>extensions filter</filter-name> <servlet-name>faces servlet</servlet-name> </filter-mapping> <context-param> <description> parameter tells myfaces if javascript code should allowed in rendered html output. if javascript allowed, command_link anchors have javascript code submits corresponding form. if javascript not allowed, state saving info , nested parameters added url parameters. default 'true'</description> <param-name>org.apache.myfaces.allow_javascript</param-name> <param-value>true</param-value> </context-param> <context-param> <description> if true, rendered html code formatted, 'human-readable' i.e. additional line separators , whitespace written, not influence html code. default 'true'</description> <param-name>org.apache.myfaces.pretty_html</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.detect_javascript</param-name> <param-value>false</param-value> </context-param> <context-param> <description> if true, javascript function rendered able restore former vertical scroll on every request. convenient feature if have pages long lists , not want browser page jump top if trigger link or button action stays on same page. default 'false' </description> <param-name>org.apache.myfaces.auto_scroll</param-name> <param-value>true</param-value> </context-param> <listener> <listener-class>org.apache.myfaces.webapp.startupservletcontextlistener</listener-class> </listener> </web-app>
this :pom.xml
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>project-app</groupid> <artifactid>app</artifactid> <packaging>war</packaging> <name>app</name> <url>http://maven.apache.org</url> <!-- les proprietés 3.1.4 --> <properties> <logback.version>0.9.15</logback.version> <spring.version>2.5.6</spring.version> <struts2.version>2.2.1.1</struts2.version> <slf4j.version>1.7.7</slf4j.version> <env>local</env> </properties> <dependencies> <dependency> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>2.4</version> </dependency> <dependency> <groupid>commons-digester</groupid> <artifactid>commons-digester</artifactid> <version>2.1</version> </dependency> <dependency> <groupid>ch.qos.logback</groupid> <artifactid>logback-classic</artifactid> <version>${logback.version}</version> </dependency> <dependency> <groupid>commons-beanutils</groupid> <artifactid>commons-beanutils</artifactid> <version>1.8.3</version> </dependency> <dependency> <groupid>commons-beanutils</groupid> <artifactid>commons-beanutils-bean-collections</artifactid> <version>1.8.3</version> </dependency> <dependency> <groupid>commons-dbcp</groupid> <artifactid>commons-dbcp</artifactid> <version>1.2.2</version> </dependency> <!-- myfaces --> <dependency> <groupid>org.apache.myfaces.core</groupid> <artifactid>myfaces-api</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>org.apache.myfaces.core</groupid> <artifactid>myfaces-impl</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>org.apache.myfaces.core</groupid> <artifactid>myfaces-bundle</artifactid> <version>2.2.2</version> </dependency> <!-- primafaces --> <dependency> <groupid>org.primefaces</groupid> <artifactid>primefaces</artifactid> <version>4.0</version> </dependency> <dependency> <groupid>org.primefaces.themes</groupid> <artifactid>all-themes</artifactid> <version>1.0.9</version> </dependency> <dependency> <groupid>commons-fileupload</groupid> <artifactid>commons-fileupload</artifactid> <version>1.2.2</version> </dependency> <!-- junit 4 --> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.0</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>3.6.8.final</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>org.hibernate.common</groupid> <artifactid>hibernate-commons-annotations</artifactid> <version>4.0.1.final</version> <type>jar</type> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-validator</artifactid> <version>4.0.2.ga</version> </dependency> <!-- hibernate uses slf4j logging, our purposes here use simple backend --> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-jdk14</artifactid> <version>${slf4j.version}</version> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> <version>${slf4j.version}</version> </dependency> <!-- hibernate gives choice of bytecode providers between cglib , javassist --> <dependency> <groupid>javassist</groupid> <artifactid>javassist</artifactid> <version>3.12.1.ga</version> <!-- 3.4.ga --> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-c3p0</artifactid> <version>3.3.2.ga</version> </dependency> <!-- c3p0 dependency --> <dependency> <groupid>c3p0</groupid> <artifactid>c3p0</artifactid> <version>0.9.1.2</version> </dependency> <!-- spring --> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-beans</artifactid> <version>${spring.version}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>${spring.version}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-core</artifactid> <version>${spring.version}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>${spring.version}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-orm</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-aop</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-jdbc</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-webmvc</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-webmvc-portlet</artifactid> <version>${spring.version}</version> </dependency> <!-- mysql jdbc --> <dependency> <groupid>mysql</groupid> <artifactid>mysql-connector-java</artifactid> <version>5.1.9</version> </dependency> <!-- jstl --> <dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency> <!-- javax.servlet --> <dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>taglibs</groupid> <artifactid>standard</artifactid> <version>1.1.2</version> </dependency> <!-- javax.servlet --> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-api</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-impl</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>javax.servlet-api</artifactid> <version>3.0.1</version> </dependency> <dependency> <groupid>javax.servlet.jsp</groupid> <artifactid>jsp-api</artifactid> <version>2.1</version> <scope>provided</scope> </dependency> <!-- ajouter upload --> <dependency> <groupid>org.apache.myfaces.tomahawk</groupid> <artifactid>tomahawk</artifactid> <version>1.1.6</version> </dependency> <dependency> <groupid>commons-fileupload</groupid> <artifactid>commons-fileupload</artifactid> <version>1.3</version> </dependency> <dependency> <groupid>commons-io</groupid> <artifactid>commons-io</artifactid> <version>1.4</version> </dependency> <dependency> <groupid>commons-logging</groupid> <artifactid>commons-logging</artifactid> <version>1.1.1</version> </dependency> <dependency> <groupid>commons-el</groupid> <artifactid>commons-el</artifactid> <version>1.0</version> </dependency> <!-- ajouter upload --> <dependency> <groupid>javax</groupid> <artifactid>javaee-api</artifactid> <version>7.0</version> <scope>provided</scope> </dependency> <!-- <dependency> --> <!-- <groupid>javax.servlet</groupid> --> <!-- <artifactid>servlet-api</artifactid> --> <!-- <version>2.5</version> --> <!-- <scope>provided</scope> --> <!-- </dependency> --> <!-- <dependency> --> <!-- <groupid>javax.servlet.jsp</groupid> --> <!-- <artifactid>jsp-api</artifactid> --> <!-- <version>2.1</version> --> <!-- <scope>provided</scope> --> <!-- </dependency> --> </dependencies> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> <!-- filtrage des ressources --> <!-- <resources> --> <!-- <resource> --> <!-- <directory>src/main/resources</directory> --> <!-- <filtering>true</filtering> --> <!-- </resource> --> <!-- </resources> --> <!-- <filters> --> <!-- <filter>src/main/filters/${env}.properties</filter> --> <!-- </filters> --> <repositories> <repository> <id>jboss-repository</id> <name>jboss public maven repository</name> <url>https://repository.jboss.org/nexus/</url> </repository> <repository> <id>prime-repo</id> <name>primefaces maven repository</name> <url>http://repository.primefaces.org</url> <layout>default</layout> </repository> <repository> <id>jvnet-nexus-snapshots</id> <name>jvnet-nexus-snapshots</name> <url>https://maven.java.net/content/repositories/snapshots/</url> </repository> </repositories> </project>
this faces-config.xml
<?xml version="1.0" encoding="utf-8"?> <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd" version="2.2"> <application> <el-resolver>org.springframework.web.jsf.el.springbeanfaceselresolver</el-resolver> </application> </faces-config>
see @balusc answer here same problem. have 2 jsf implementations in pom.xml
: myfaces , mojarra. myfaces conflicting mojarra. remove 1 of them
<!-- myfaces --> <dependency> <groupid>org.apache.myfaces.core</groupid> <artifactid>myfaces-api</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>org.apache.myfaces.core</groupid> <artifactid>myfaces-impl</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>org.apache.myfaces.core</groupid> <artifactid>myfaces-bundle</artifactid> <version>2.2.2</version> </dependency>
or
<!-- mojarra --> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-api</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-impl</artifactid> <version>2.2.2</version> </dependency>
Comments
Post a Comment