The moose likes JSF and the fly likes Cannot run the simplest JSF app on JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Cannot run the simplest JSF app on JBoss" Watch "Cannot run the simplest JSF app on JBoss" New topic
Author

Cannot run the simplest JSF app on JBoss

Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Hi Guys,

I am trying to follow a beginner tutorial on JSF.
JSF KickStart: A Simple JavaServer Faces Application

A very basic, short application.

As usual, it doesn't work.

I am on jboss-4.0.5.GA

Should I copy & paste the code here? It's all in the link above.

I have searched the web (including this forum) high and low. But it still does not work.

Here is what I have found this far:

It looks like the tutorial above uses its own JSF implementation which is comprised of the jars in the jsfks\WebContent\WEB-INF\lib directory.

Also, JBoss comes with its own JSF implementation.

So if I follow the tutorial, these two implementations collide. It seems like this is the reason why when I would go to http://localhost:8080/qqq I got this error:



Ok. So many places on the web say that I should remove the jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs

So I did it (snd restarted JBoss)! Now, when I go to: http://localhost:8080/qqq I get this error:



Also, the server gives me warnings:



What do I do next? Any idea? I am pretty much stuck!

I appreciate your help.

----------------------------------------------

One more comment for those of you who read this thread. As I said, I tried to folllow threads on this forum that deal with the same issue. None of them seems to work for me.

Take a look at this thread:
http://www.coderanch.com/t/212906/JSF/java/no-faces-context

The only new thing that someone has suggested there, was to make sure that *.jsf pages are sent to the Faces Servlet. Well this is already the way it is. So what else could be wrong? This thread has ended without clear solution.
[ June 05, 2007: Message edited by: Joseph Sweet ]

We must know, we will know. -- David Hilbert
Josh Juneau
Ranch Hand

Joined: Jun 16, 2004
Posts: 86
Hey there...sorry you are having issues with JSF. Personally, I started coding JSF when it was in beta mode on the Sun Java Application Server...and it was great! I really have only used JBOSS a few times, and more recently I've begun investigating and reading up on the JBOSS Seam framework.

Enough said with my history...if you want to use JBOSS, I would recommend downloading the SEAM framework and giving it a try. There are some very simplistic examples, including a Hello World that you can try. As long as you follow the directions on building and deploying, they should work fine on your JBOSS server. They work fine for me.

I would also recommend checking out the Sun Java Application Server, or even Glassfish, to begin developing JSF apps. Most of the tutorials from Sun use this server, and it is really straight forward.

Don't give up on JSF...it is the most powerful Java web application framework from my perspective. There are plenty of good ones out there, but this one has it all. Even further, if you want to really exploit JSF then you should look at facelets and seam as well.

https://facelets.dev.java.net/

Hope this helps..


Database Administrator/Application Developer
 
 
subject: Cannot run the simplest JSF app on JBoss
 
Threads others viewed
Axis2 1,4 Exception in jboss 4.2.2
javax.ejb.CreateException
new to jndi name connecting to mysql
HTTP 404 error using JBoss
CorbaORB is not registered
MyEclipse, The Clear Choice