aspose file tools
The moose likes JBoss and the fly likes upgrading JBOSS 5 CR1 with JSF 2.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "upgrading JBOSS 5 CR1 with JSF 2.0.1" Watch "upgrading JBOSS 5 CR1 with JSF 2.0.1" New topic
Author

upgrading JBOSS 5 CR1 with JSF 2.0.1

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 546

Hi,
I am trying to upgrade my JBoss 5.0 RC1 with the latest version of JSF, that is JSF 2.0.1 (mojarra-2.0.1-FCS-binary.zip)

I followed the instructions here :
http://www.jboss.org/community/wiki/UpgradeJBossAStoJSF2

If you are running JBoss AS 5.0 or greater, copy the jars to <JBOSS_HOME>/server/default/deploy/jbossweb.sar/jsf-libs.

I did that. But then i am facing an error due to a web.xml file missing from a project. (i have several projects in my enterprise application). That project is not a web app and does not need a web.xml file.

Here is the error I get :


How can i fix this ? Apparently it's a known issue. Thanks for helping.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 546

Even if the project is not a webapp, I did try to add a WEB-INF/web.xml and it is still not working (i get another type of errors, this project being an EJB project).

So this work around is not working either.

Any suggestion ? Thanks.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8142
    
  52

Post the contents of your application.xml and also the output of:



[My Blog] [JavaRanch Journal]
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 546

Jaikiran Pai, thanks for helping.

I also posted that question here : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264136#4264136

you might want to check it.
Replacing the file jboss-faces.jar gives me errors unfortunately.

Any idea ?
thanks
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 546

Also,
to answer your question :
content of application.xml is :



jar -tf VenteEnLigneEJB.jar :




Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5533

Am I misreading this:
JBoss 5.0 RC1

Is this really jboss-5.0.0.CR1? If so, this is a very ancient version of Jboss AS and there were significant changes between CR1 and GA. The statement that JSF 2.0.1 can be applied to JBoss AS 5.0 probably does not apply to CR1! You will need at least 5.0.0.GA.


JBoss In Action
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8142
    
  52

Ah yes, i mention of CR1 did not catch my eye I was thinking that this post was about the latest stable release.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: upgrading JBOSS 5 CR1 with JSF 2.0.1
 
Similar Threads
Importing WAR file of eclipse project to jboss developer studio
JBoss 5.0.1 + Spring 2.5.6 + JSF 1.2
problems on getting access to an java bean class from a servlet
error due to the following reason(s): Web mapping already exists
Exception sending context initialized event to listener instance of class org.primefaces.optimus.lis