no

Learn Jsf Jboss on Eclipse

It took me 2 hours to do this with 1 single mistake, so I'm writing what I did to make it run. Before the actual tutorial here are the e...

It took me 2 hours to do this with 1 single mistake, so I'm writing what I did to make it run. Before the actual tutorial here are the errors that we will try to resolve:

What I'm using:
1.) eclipse-jee-helios, with jboss tools installed
2.) jboss server 5.0.1 ga
3.) jdk 1.5

1.) 19:29:39,406 WARNING [config] JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
19:29:39,524 ERROR [[/ipielJSF]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

2.) Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory

3.) 20:56:57,612 ERROR [[/ipielJSF]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ELResolver used in the signature

And here are the steps:
1.) Click Window->Show View->Others (this is what I missed)
a.) In the filter, type web
b.) Under JBoss Tools Web select Web Projects (See attached)

2.) With the Web Projects tab selected, right click on the panel and select "Create New JSF Project"

3.) In the Project Name enter: ipielJSF
JSF Environment: JSF 1.2 with Facelets
Template: FaceletsKickStartWithRILibs
So our project is already runnable

4.) In the next screen select:
Servlet Version 2.5
Runtime: Create your new jre runtime
Click finish

5.) Your eclipse workspace should look like this:

6.) Add the project in the configured server, then click :

7.) Start the server

8.) Also you should configure jsf 1.2 to run on jdk 1.5

9.) What the page should look like:

Related

jsf 8492368725859771524

Post a Comment Default Comments

1 comment

Muhammad Azeem said...

This is a nice article..
Its very easy to understand ..
And this article is using to learn something about it..
c#, dot.net, php tutorial
Thanks a lot..!

item