maven - Primefaces 3.3, POM, tomcat 7.0.39 and Jboss as EAP 5.1 -


i'm working primefaces 3.3 , jsf 2.0. , structure of pom below, when generate war, run (work) on tomcat 7.0.39. know need change pom war run in jboss eap 5.1.

error:19:19:53,125 severe [config] critical error during deployment: com.sun.faces.config.configurationexception: factory 'javax.faces.context.externalcontextfactory' not configured properly. @ com.sun.faces.config.processor.factoryconfigprocessor.verifyfactoriesexist(factoryconfigprocessor.java:305) at

  • o war generated below not work in jboss eap 5.1
<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> <groupid>com.mkyong.core</groupid> <artifactid>otimizacaoprocessointerno</artifactid> <packaging>war</packaging> <version>1.0-snapshot</version>  <name>otimizacaoprocessointerno</name> <url>http://maven.apache.org</url>  <dependencies>      <!-- primefaces -->     <dependency>         <groupid>org.primefaces</groupid>         <artifactid>primefaces</artifactid>         <version>3.3</version>     </dependency>      <!-- jsf -->     <dependency>         <groupid>com.sun.faces</groupid>         <artifactid>jsf-api</artifactid>         <version>2.1.11</version>     </dependency>     <dependency>         <groupid>com.sun.faces</groupid>         <artifactid>jsf-impl</artifactid>         <version>2.1.11</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>  </dependencies> <build>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-eclipse-plugin</artifactid>             <configuration>                <wtpversion>2.0</wtpversion>             </configuration>         </plugin>     </plugins> </build> 

you package maven module ear. change packaging to

<packaging>ear</packaging> 

if want customize ear file, can use maven-ear-plugin.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -