Same way as any other webapp. Build a WAR and deploy it.
The biggest difference is that as of Tomcat 6, you don't have JEE compliance, only J2EE. So you have to explicitly include a jsf-impl library in the WAR along with the jsf-api library. A JEE-compliant server would only require the jsf-api library, since the jsf-impl is part of the server itself.
Customer surveys are for companies who didn't pay proper attention to begin with.
sonia pandit
Ranch Hand
Joined: Apr 19, 2008
Posts: 137
posted
0
I took this code out of O'Reilly's book posted online at:
Oct 1, 2009 12:53:09 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: Could not initialize class org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
Thanks,
Sonia
Smitha H Rao
Ranch Hand
Joined: Oct 20, 2007
Posts: 50
posted
0
It looks like you are not having tomahawk.jar in your WebApp/WEB-INF/lib directory.
Looking at your code which you had sent me.. I found that the major mistake in your project is the web.xml file.
The step you should follow is when following skill-guru tutorial for fileupload are:
1. First deply the sample jsf application from the jsf beginner's tutorial
http://www.skill-guru.com/blog/2009/08/10/319/
But even though Tomcat has been added as a server to eclipse,
when I right click on the project it does not give me the option
to run on Tomcat. How can I fix that?