Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble deploying JSF On-Load component

Status
Not open for further replies.

raindogs

Programmer
Nov 23, 2005
27
US
'm really pulling my hair out over this one. All I want to do is implement the JSF On-Load component for one page, but the application build keeps failing after finding an error in my faces-config file. I'm following the instructions at but I'm getting this error every time I start the app:

Nov 22, 2006 3:59:23 PM com.sun.faces.config.rules.ComponentRule end
WARNING: [ComponentRule]{faces-config/component} Merge(javax.faces.ViewRoot)
Nov 22, 2006 3:59:23 PM com.sun.faces.config.rules.NavigationRuleRule end
WARNING: [NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
Nov 22, 2006 3:59:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart



Here are the applicable lines from faces-config:

<lifecycle>
<phase-listener>net.sf.jsfcomp.ext.onload.OnLoadPhaseListener</phase-listener>
</lifecycle>


I have this line in my web.xml file:

<context-param>
<param-name>onload-config</param-name>
<param-value>/WEB-INF/onload-config.xml</param-value>
</context-param>



I copied both the onload-config.xml and onload-config.xsd files into WEB-INF. Here's the onload-config.xml:

<?xml version="1.0" encoding="UTF-8"?>

<onload-config xmlns="urn:eek:nload-config"
xmlns:xsi=" xsi:schemaLocation="urn:eek:nload-config onload-config.xsd">

<navigation-rule>
<view-id>/login/logout.jsp</view-id>
<action>#{person.logout}</action>
</navigation-rule>
</onload-config>



And finally, here the list of the application's "lib" directory:

ajax4jsf.jar
chartcreator-1.2.0-RC1.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-lang.jar
commons-logging-1.1.jar
jcommon-1.0.5.jar
jfreechart-1.0.0-rc1.jar
jsf-api.jar
jsf-impl.jar
jsfExt.jar
jstl.jar
oscache-2.3.2.jar
standard.jar
struts-el.jar
struts.jar

Any help would be much appreciated.

Thanks,
Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top