Appfuse JSF war didn’t work. It drove me crazy !!
I wanted the working versions of http://demo.appfuse.org/ . But i couldn’t get through.
Then I found http://code.google.com/p/appfuse-demos/ . I downloaded the ‘appfuse-demos-2.0.2.tar.gz’ . I was working on windows XP. I extracted the files through WinRAR and found different demo apps as shown in the live demo are organized in different folders. They are…
I chose ‘tutorial-jsf’. It is combined with JSF-Spring-Hibernate-ACEGI. All the things, that I was looking for.
I extracted the ‘tutorial-jsf’ folder from ‘appfuse-demos-2.0.2.tar.gz’ and got into that folder through command prompt.
It is not a eclipse project. So, I had make it in such a way that I can Import it in my eclipse workspace and develop it further.
I ran the command ‘ mvn eclipse:eclipse ‘ .
Maven downloaded hell a lot of dependencies and took pretty much time. After a while it was ready to Import in eclipse.
I launched Eclipse and went to File > Import > Existing Projects into Workspace (under the General category). Selected the ‘tutorial-jsf’ directory and Clicked Finish to complete the process.
Now, tutorial-jsf is finally is in my workspace.
Now all I need is to run it. I had tomcat 6 in my eclipse. But it was unable to run it. So i looked into the above mentioned tutorial and found that it will run in Jetty WebServer.
I ran the command ‘mvn jetty:run-war‘, in the ‘tutorial-jsf’ directory from the Command Prompt.
It took a while for running for the first time and finally it was running.
I loved to see its running in my machine.
Now, I need to find a way to run it in tomcat and make some changes.