Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have started from scratch using instructions at <a href="http://docs.jboss.org/richfaces/latest_4_0_X/Developer_Guide/en-US/html_single/#sect-Developer_Guide-Getting_started_with_RichFaces-Creating_a_project_with_Maven" rel="nofollow">jboss.org</a></p> <ul> <li>I installed Maven 3.0.3</li> <li>I copied the supplied settings.xml to my .m2 directory and added the JBOSS section from <a href="http://docs.jboss.org/richfaces/latest_4_0_X/Developer_Guide/en-US/html_single/#sect-Developer_Guide-Getting_started_with_RichFaces-Creating_a_project_with_Maven" rel="nofollow">1</a> </li> <li><p>I used the command line to create the project:</p> <p>mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes \ -DarchetypeArtifactId=richfaces-archetype-simpleapp \ -DarchetypeVersion=4.0.0-SNAPSHOT \ -DgroupId=uk.m0rjc \ -DartifactId=jsfplay</p></li> <li><p>I then built the project. I had to remove the previously downloaded guava jars from my m2 repository because they were corrupt - perhaps my initial problem.</p> <p>mvn clean package</p></li> <li><p>I copied the WAR file it produced to Tomcat and navigated to the sample page at localhost:8080/jsfplay-1.0-SNAPSHOT/</p></li> </ul> <p>I had some issues making the project work in Eclipse. These may be due to my setup from previous experiments.</p> <ul> <li>I used the "Import -> Maven -> Existing Maven Project" to import it</li> <li>I had to switch the project to JDK 1.6 and 1.6 compatibility mode. </li> <li>I was unable to use the JavaServer Faces facet. This does not seem to matter.</li> <li>I had to set my Server Profile to use the right JDK</li> <li>I had to map *.xhtml to the Faces Servlet in web.xml. It may have been corrupted when I pressed a wrong button to accept a JSF addin.</li> </ul> <p>Then it worked!!</p> <p>Now to try porting my existing code to the new project.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload