My Own JSF Application

The application was launched with the following command line:

	http://localhost:8084/myapp/

...and the result appeared at:

	http://localhost:8084/myapp/login.faces
Web Pages/start.jsp
Web Pages/login.jsp
Web Pages/welcome.jsp
 
Source Packages/com.aintnoclouds/userbean.java
 
Web Pages/WEB-INF/faces-config.xml
Web Pages/WEB-INF/web.xml
 
build results for comparison

What didn't work?

When I ran this in NetBeans, it worked ultimately once I rid my code of all the bugs. However, deploying by hand to my Tomcat server and Apache running on my production server (OpenSuSE 10.2), the welcome.jsp page lost the the style sheet (anc.css) and the background (anc-1000.jpg). This is because in that environment the expected path to the JSP/JSF and to the other resources proved to be:

	http://www.aintnoclouds.com/aintnoclouds/login.faces
	http://www.aintnoclouds.com/aintnoclouds/anc.css
	http://www.aintnoclouds.com/aintnoclouds/anc-1000.jpg

with the additional indirection of a second aintnoclouds/. At the moment, I still do now know the cause of this, however one solution offered by a friend was to add the following lines to my /etc/apache2/vhosts.d/aintnoclouds.conf file:

	ProxyPass        /aintnoclouds/ http://localhost:8080/aintnoclouds/
	ProxyPassReverse /aintnoclouds/ http://localhost:8080/aintnoclouds/

previous to the proxy statements mapping root (/ which was done in order to get domain.com/ to load as www.domain.com/ on the server).