Hi,
I an trying to set up a simple
JSF application in
jboss. The following are the contents of my faces-config.xml and the web.xml.
faces-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<application>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>fr</supported-locale>
</locale-config>
<resource-bundle>
<base-name>Messages</base-name>
<var>message</var>
</resource-bundle>
</application>
<managed-bean>
<managed-bean-name>
loginManager</managed-bean-name>
<managed-bean-class>
LoginManager</managed-bean-class>
<managed-bean-scope>
session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<display-name>
login</display-name>
<from-view-id>
/login.jsp</from-view-id>
<navigation-case>
<from-outcome>loginPass</from-outcome>
<to-view-id>
/success.jsp</to-view-id>
<redirect />
</navigation-case>
<navigation-case>
<from-outcome>loginFail</from-outcome>
<to-view-id>
/error.jsp</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
</faces-config>
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>jsfPrototype</display-name>
<context-param>
<param-name> org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL </param-name>
<param-value>true</param-value>
</context-param>
<
servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
</web-app>
The jars in libare:
jsf-api.jar
jsf-impl.jar
jstl.jar
myfaces-api-1.1.5.jar
myfaces-impl-1.1.5.jar
richfaces-api-3.2.1.GA.jar
richfaces-impl-3.2.1.GA.jar
richfaces-ui-3.2.1.GA.jar
tomahawk.jar
I am getting the following error while running the server(jboss 4.0.55) and the applciation doesnt get deployed.
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for context 'jsfPrototype'
15:22:00,131 ERROR [STDERR] Jul 16, 2009 3:22:00 PM com.sun.faces.spi.InjectionProviderFactory getProviderFromEntry
SEVERE: JSF1037: The specified SerializationProvider implementation 'com.sun.faces.vendor.GlassFishInjectionProvider' cannot be loaded.
15:22:00,147 ERROR [STDERR] Jul 16, 2009 3:22:00 PM com.sun.faces.spi.InjectionProviderFactory getProviderFromEntry
SEVERE: JSF1037: The specified SerializationProvider implementation 'com.sun.faces.vendor.Jetty6InjectionProvider' cannot be loaded.
15:22:00,147 ERROR [STDERR] Jul 16, 2009 3:22:00 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
15:22:00,647 ERROR [STDERR] Jul 16, 2009 3:22:00 PM com.sun.faces.config.ConfigureListener configure
SEVERE: Cant instantiate class: family=facelets,rendererType=com.sun.facelets.component.RepeatRenderer,rendererClass={3}.
15:22:00,647 ERROR [STDERR] java.lang.ClassCastException: com.sun.facelets.component.RepeatRenderer
15:22:00,647 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1001)
15:22:00,647 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1073)
15:22:00,647 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:493)
15:22:00,647 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
15:22:00,647 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
15:22:00,647 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
15:22:00,647 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
15:22:00,647 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
15:22:00,647 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
15:22:00,647 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
15:22:00,647 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:22:00,647 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:22:00,647 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
15:22:00,647 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
15:22:00,647 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
15:22:00,647 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
15:22:00,647 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
15:22:00,647 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:22:00,647 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:22:00,647 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
15:22:00,647 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
15:22:00,647 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
15:22:00,647 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
15:22:00,647 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
15:22:00,647 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
15:22:00,647 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
15:22:00,647 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
15:22:00,647 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
15:22:00,647 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
I would appreciate if someone can help me resolve this error.
Thanks in Advance,
Nids