aspose file tools*
The moose likes JSF and the fly likes Getting JSF 2.0 to work with JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Getting JSF 2.0 to work with JBoss" Watch "Getting JSF 2.0 to work with JBoss" New topic
Author

Getting JSF 2.0 to work with JBoss

Christopher Sharp
Ranch Hand

Joined: Dec 12, 2007
Posts: 155
I would be very grateful for some help, as I'm having trouble getting JSF 2.0 working with JBoss 6.0.0.Final and Eclipse Indigo. I installed the latter two recently and got them to work, as well as installing the tools necessary for JSF 2.0.

I followed the tutorial at:
http://download.oracle.com/docs/cd/E15315_07/help/org.eclipse.jst.jsf.doc.user/html/gettingstarted/tutorial/JSFTools_tutorial_JSF20.html
pretty well exactly, except for a few changes as follows:

1) Eclipse Indigo was used (version 3.7), but the screen displays in the tutorial are in some cases different, so presume an earlier version of Eclipse was used. This is not surprising as Indigo has just come out, and presumably is not an issue.

2) In the Dynamic Web Project I selected the JBoss server, which I believe includes Apache Tomcat, whereas in the tutorial Apache Tomcat v6.0 is selected.

3) In the Project Facets I selected a later version (I think 3.0) for Dynamic Web Module, whereas in the tutorial 2.5 is selected. The other selections were the same in particular JavaServer Faces 2.0.

The rest of the tutorial I followed as closely as possible, although the display for setting up the navigation rule was different, probably because of the different versions of Eclipse.

On starting up the server I get the correct JBoss screen at http://localhost:8080/, but on going to http://localhost:8080/JSFFaceletsTutorial/faces/login.xhtml, the server tells me that the resource is not available. For whatever reasons the tutorial uses port 8081, but I don't think that is important, as my browser can't find a connection at http://localhost:8081/.

On looking at the console display I get the following message:

DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JMSConnectionFactoryManageMO" is missing the following dependencies:
Dependency "<UNKNOWN JMSConnectionFactoryManageMO>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **")
........

followed by a list of similar messages, then I get the following errors:

DEPLOYMENTS IN ERROR:
Deployment "JMSServerManager" is in error due to the following reason(s): java.nio.BufferUnderflowException, **ERROR**
Deployment "<UNKNOWN JMSServerMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **
Deployment "<UNKNOWN JMSConnectionFactoryManageMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **
Deployment "<UNKNOWN JMSTopicManageMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **
Deployment "<UNKNOWN JMSQueueManageMO>" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' **

before the server starts. I've never seen these errors before, and it looks as if something has gone wrong when I was setting things up. I've checked that I have all the right files in the correct folders, and would be most grateful for advice on getting this resolved, and if there are other tutorials on setting up JSF 2.0 with JBoss 6 and Eclipse Indigo.

Many thanks,

Christopher Sharp
Christopher Sharp
Ranch Hand

Joined: Dec 12, 2007
Posts: 155
I would be most grateful for some help with this. It looks as if some configuration is set up incorrectly.

Previously I had written from scratch an application using JSF 1.2, which is online at http://phoenix.ens-lyon.fr/simulator/, and wrote the code by hand without using any IDE such as Eclipse, and used a Glassfish server. What I really need to do is to get JSF 2.0 working properly with Eclipse Indigo and JBoss 6.0.0.

Many thanks,

csharp
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting JSF 2.0 to work with JBoss