• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Cannot run the simplest JSF app on JBoss

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
https://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 ]
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 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..
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic