-
1. Re: Problems Deploying JSF in Jboss (It works fine with Tomc
peterj Aug 14, 2006 12:55 PM (in response to dwallin2)Could you be a little more specific about what you mean by "it does not work." Is it that when you deploy the application, you get errors? Or there are no errors, but when you attempt to acces a web page you get errors or a corrupt page? If you are getting errors, please post them.
Also, do you have the JSF jars in your war file. In JBoss 4.0.4 (you never mentioned which version of JBoss you are using), the MyFaces jars are already provided, so I don't think you need tthem in your war file. -
2. Re: Problems Deploying JSF in Jboss (It works fine with Tomc
dwallin2 Aug 14, 2006 1:24 PM (in response to dwallin2)Greetings Peter,
I am using Jboss 4.0.4, and I placed my .war file in server/default/deploy.
After reading your reply, I then went on to delete all of the jar files from my project lib. I started the JBoss server, and put in the address http://localhost:8080/Forms.war
Jboss is not able to see the project, I am getting the error...
description The requested resource (/Forms.war) is not available.
I am not sure if there is something more I need to add, or if I'm not starting JBoss correctly. Please get back to me
Thanks for the reply -
3. Re: Problems Deploying JSF in Jboss (It works fine with Tomc
peterj Aug 14, 2006 1:46 PM (in response to dwallin2)Assuming your war file is named Forms.war, the URL should be: http://localhost:8080/Forms
-
4. Re: Problems Deploying JSF in Jboss (It works fine with Tomc
dwallin2 Aug 14, 2006 1:49 PM (in response to dwallin2)Thank you Peter for your help, I was able to figure it out. The problem was that I had not updated the listener in my project web xml.
After changing it to
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
Everything Came out fine :)
So for anyone else who encounters the same problem in the future, be sure to delete the jar files from your project lib folder, since Jboss already provides them, and change your project web.xml listener to the one posted above.
Tip*