This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot run the simplest JSF app on JBoss  RSS feed

Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

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 ]
Josh Juneau
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 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.

Hope this helps..
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!