maven - What might be causing these errors about JavaServer Faces and JAX-RS? -


i have following errors(in problem's view) want fix,

  1. javaserver faces 2.2 can not installed : 1 or more constraints have not been satisfied.
  2. javaserver faces 2.2 requires dynamic web module 2.5 or newer.
  3. jax-rs (rest web services) 2.0 can not installed : 1 or more constraints have not been satisfied.
  4. jax-rs (rest web services) 2.0 requires dynamic web module 3.1 or newer.
  5. jax-rs (rest web services) 2.0 requires java 1.7 or newer.

how fix this.here web.xml , pom.xml files.

web.xml

<!doctype web-app public  "-//sun microsystems, inc.//dtd web application 2.3//en"  "http://java.sun.com/dtd/web-app_2_3.dtd" >  <web-app>  <display-name>web application</display-name>    <filter> <filter-name>struts2</filter-name> <filter-class>   org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter </filter-class>  </filter>   <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern>  </filter-mapping>   <context-param> <param-name>contextconfiglocation</param-name> <param-value>/web-inf/classes/springbeans.xml</param-value>  </context-param>   <listener> <listener-class>   org.springframework.web.context.contextloaderlistener </listener-class> </listener> </web-app> 


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/maven- v4_0_0.xsd">  <modelversion>4.0.0</modelversion>  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/mavenv4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>prep.mucyo.com</groupid> <artifactid>subscription</artifactid> <packaging>war</packaging> <version>0.0.1-snapshot</version>   <name>subscription maven webapp</name> <url>http://maven.apache.org</url>  <dependencies> <dependency>   <groupid>junit</groupid>   <artifactid>junit</artifactid>   <version>4.10</version> </dependency> <dependency>     <groupid>org.apache.struts</groupid>     <artifactid>struts2-spring-plugin</artifactid>     <version>2.3.15.1</version> </dependency>  <dependency>     <groupid>org.apache.struts</groupid>     <artifactid>struts2-core</artifactid>     <version>2.3.15.1</version> </dependency> <dependency>     <groupid>org.springframework</groupid>     <artifactid>spring</artifactid>     <version>2.5.6.sec03</version> </dependency> <dependency>     <groupid>org.springframework</groupid>     <artifactid>spring-web</artifactid>     <version>3.2.4.release</version> </dependency> <dependency>     <groupid>org.hibernate</groupid>     <artifactid>hibernate</artifactid>     <version>3.2.7.ga</version>     <type>pom</type> </dependency> <dependency>     <groupid>dom4j</groupid>     <artifactid>dom4j</artifactid>     <version>1.6.1</version> </dependency> <dependency>     <groupid>commons-logging</groupid>     <artifactid>commons-logging</artifactid>     <version>1.1.3</version> </dependency> <dependency>     <groupid>commons-collections</groupid>     <artifactid>commons-collections</artifactid>     <version>20040616</version> </dependency> <dependency>     <groupid>cglib</groupid>     <artifactid>cglib</artifactid>     <version>3.0</version> </dependency> <dependency>     <groupid>antlr</groupid>     <artifactid>antlr</artifactid>     <version>20030911</version> </dependency>  <dependency>     <groupid>javax</groupid>     <artifactid>javaee-api</artifactid>     <version>7.0</version> </dependency> <dependency>     <groupid>javax.transaction</groupid>     <artifactid>jta</artifactid>     <version>1.1</version> </dependency> <dependency>     <groupid>com.oracle</groupid>     <artifactid>ojdbc14</artifactid>     <version>14</version> <scope>system</scope> <systempath>c:/eclipse_juno/workspace/subscription/lib/ojdbc14.jar</systempath> </dependency>  </dependencies> <build>   <finalname>subscription</finalname> </build> </project> 

i have checked project's properties , in project facets neither jsf nor jax-rs checked.

any , explanation highly appreciated.

the errors fixed uninstalling jboss,since didn't need it(i'm using tomcat). somehow inspecting project , cause these compatibility issues.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -