java - Class 'org.springframework.web.jsf.el.SpringBeanFacesELResolver' is missing a runtime dependency -
this question has answer here:
i have web application until yesterday working fine. uses maven, spring, jsf, primefaces, eclipse (mars), tomcat 8 , jdk 8. here 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>plantplaces</groupid> <artifactid>plantplaces</artifactid> <version>0.0.1-snapshot</version> <packaging>war</packaging> <repositories> <repository> <id>prime-repo</id> <name>primefaces maven repository</name> <url>http://repository.primefaces.org</url> <layout>default</layout> </repository> <repository> <id>jboss repository</id> <url>http://repository.jboss.com/maven2/</url> </repository> </repositories> <build> <sourcedirectory>src</sourcedirectory> <plugins> <plugin> <artifactid>maven-war-plugin</artifactid> <version>2.6</version> <configuration> <warsourcedirectory>webcontent</warsourcedirectory> <failonmissingwebxml>false</failonmissingwebxml> </configuration> </plugin> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupid>org.primefaces</groupid> <artifactid>primefaces</artifactid> <version>4.0</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>4.2.0.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>3.0.4.release</version> </dependency> <dependency> <groupid>javax.inject</groupid> <artifactid>javax.inject</artifactid> <version>1</version> </dependency> <dependency> <groupid>org.primefaces.themes</groupid> <artifactid>all-themes</artifactid> <version>1.0.10</version> </dependency> <dependency> <groupid>org.mockito</groupid> <artifactid>mockito-all</artifactid> <version>1.9.5</version> </dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.10</version> <scope>test</scope> </dependency> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-api</artifactid> <version>2.2.7</version> </dependency> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-impl</artifactid> <version>2.2.7</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>javax.servlet-api</artifactid> <version>3.0.1</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.17</version> </dependency> <!-- mysql database driver --> <dependency> <groupid>mysql</groupid> <artifactid>mysql-connector-java</artifactid> <version>5.1.9</version> </dependency> <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core --> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>4.3.10.final</version> </dependency> <!-- el --> <dependency> <groupid>org.glassfish.web</groupid> <artifactid>el-impl</artifactid> <version>2.2</version> </dependency> </dependencies> </project>
i don't know why stopped working full error keep getting this:
cause: class 'org.springframework.web.jsf.el.springbeanfaceselresolver' missing runtime dependency: java.lang.noclassdeffounderror: javax/el/elresolver
i have tried many different pom configurations nothing eliminates error. kindly assist
i discovered issue tomcat 8 (v8.0.38). switched tomcat 7 , modified pom.xml. modified version of facelets version (from 2.2 2.1 in faces-config.xml) , deployment descriptor version 3.1 2.5. finally, changed java version 1.8 1.7 - though webapp compiled based on java 1.6. below sample of new pom.xml. may still have errors since have been trying out many suggestions found online works:
<dependencies> <!-- spring framework --> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-core</artifactid> <version>3.1.2.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>3.1.2.release</version> </dependency> <!-- jsr-330 --> <dependency> <groupid>javax.inject</groupid> <artifactid>javax.inject</artifactid> <version>1</version> </dependency> <!-- jsf --> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-api</artifactid> <version>2.1.13</version> </dependency> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-impl</artifactid> <version>2.1.13</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> </dependency> <dependency> <groupid>javax.servlet.jsp</groupid> <artifactid>jsp-api</artifactid> <version>2.1</version> </dependency> <!-- el --> <dependency> <groupid>org.glassfish.web</groupid> <artifactid>el-impl</artifactid> <version>2.2</version> </dependency> <!-- tomcat 6 need --> <dependency> <groupid>com.sun.el</groupid> <artifactid>el-ri</artifactid> <version>1.0</version> </dependency> <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.10</version> </dependency> <!-- mysql database driver --> <dependency> <groupid>mysql</groupid> <artifactid>mysql-connector-java</artifactid> <version>5.1.9</version> </dependency> <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core --> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>4.3.10.final</version> </dependency> <!-- logging --> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.17</version> </dependency> <!-- https://mvnrepository.com/artifact/com.rabbitmq/amqp-client --> <dependency> <groupid>com.rabbitmq</groupid> <artifactid>amqp-client</artifactid> <version>3.6.6</version> </dependency> <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> <dependency> <groupid>commons-io</groupid> <artifactid>commons-io</artifactid> <version>2.5</version> </dependency> <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli --> <dependency> <groupid>commons-cli</groupid> <artifactid>commons-cli</artifactid> <version>1.2</version> </dependency> <!-- https://mvnrepository.com/artifact/net.coobird/thumbnailator --> <dependency> <groupid>net.coobird</groupid> <artifactid>thumbnailator</artifactid> <version>0.4.8</version> </dependency> </dependencies> <build> <finalname>plantplaces</finalname> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>2.3.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build>
Comments
Post a Comment