java - Richfaces in netbeans with maven -


i trying implement richfaces javax.faces-war-archetype version 2.2 in netbeans 8.0.1 , glassfish 4.1.

i have existing project richfaces implemented, if build works fine.

however when create new project (the exact same type , version) gives following error:

type exception report messageinternal server error descriptionthe server encountered internal error prevented fulfilling request. exception java.lang.illegalstateexception 

even when literally copy pom.xml , web.xml working project new project still gives error.

the 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>test</display-name>  <context-param>     <description>         tell runtime in project development         lifecycle.  valid values are:          development, unittest, systemtest, or production.         runtime display helpful hints correct common mistakes         when value development.     </description>     <param-name>javax.faces.project_stage</param-name>     <param-value>development</param-value> </context-param> 

the pom.xml:

<?xml version="1.0" encoding="utf-8"?> <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>nl.test</groupid> <artifactid>test</artifactid> <version>1.0-snapshot</version> <packaging>war</packaging> <name>${project.artifactid}</name> <description>a simple project war packaging depends on jsf 2.2 ,      javaee 6, in order.</description> <url>http://jsf-spec.java.net/</url> <build>     <finalname>${project.artifactid}</finalname>     <plugins>         <plugin>             <artifactid>maven-compiler-plugin</artifactid>             <configuration>                 <source>1.8</source>                 <target>1.8</target>                 <encoding>${project.build.sourceencoding}</encoding>             </configuration>             <version>3.1</version>         </plugin>         <plugin>             <artifactid>maven-war-plugin</artifactid>             <configuration>               <failonmissingwebxml>false</failonmissingwebxml>             </configuration>             <version>2.4</version>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-resources-plugin</artifactid>             <version>2.4.3</version>             <configuration>                 <encoding>${project.build.sourceencoding}</encoding>             </configuration>         </plugin>     </plugins> </build> <properties>   <spec.snapshot.version>2.2</spec.snapshot.version>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <org.richfaces.bom.version>4.3.1.final</org.richfaces.bom.version> </properties> <dependencies>     <dependency>         <groupid>javax.faces</groupid>         <artifactid>javax.faces-api</artifactid>         <version>${spec.snapshot.version}</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>javax</groupid>         <artifactid>javaee-api</artifactid>         <version>6.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.richfaces</groupid>         <artifactid>richfaces-bom</artifactid>         <version>${org.richfaces.bom.version}</version>          <type>pom</type>     </dependency>         <dependency>         <groupid>org.richfaces.ui</groupid>         <artifactid>richfaces-components-ui</artifactid>         <version>4.3.1.final</version>     </dependency>     <dependency>         <groupid>org.richfaces.core</groupid>         <artifactid>richfaces-core-impl</artifactid>         <version>4.3.1.final</version>     </dependency> </dependencies>  <repositories>     <repository>         <id>java.net-maven2-snapshot-repository</id>         <name>java.net snapshot-repository maven</name>         <url>https://maven.java.net/content/repositories/snapshots/</url>         <layout>default</layout>     </repository>     <repository>         <id>java.net-maven2-repository</id>         <name>java.net repository maven</name>         <url>https://maven.java.net/content/repositories/releases/</url>         <layout>default</layout>     </repository> </repositories> </project> 

does know doing wrong? (or how should set in new project works?)

richfaces tutorials , answers similar stackoverflow questions not resolving problem. have searched following topics of stackoverflow:

how add richfaces maven project

java.lang.illegalstateexception: illegal attempt set viewhandler after response has been rendered

java.lang.illegalstateexception: illegal attempt set viewhandler after response has been rendered - jsf1.2 in weblogic 12c


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -