Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

http://java.sun.com/jstl/fmt can not be resolved

843842Jan 15 2004 — edited Jan 17 2004
Hi,
Just started evaluating JSF for our portal needs. I have this problem when I try to reach the jsp (UserSearch.jsp: provides a form to search for users.) that used JSF tags:
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/fmt) cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)

If i take off faces-config.xml from the war, then I am getting to the jsp page i.e. search page, but when I hit the submit button, as understood, its not able to find the action associated with action-ref attribute (UserBean.searchAction) (as there is no faces-config.xml). If I include faces-config.xml in web-inf library when building war, then the form itself is giving me the above error.

here I am giving my faces-config.xml

<?xml version="1.0"?>
<!--
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-tree-id>/user_search.jsp</from-tree-id>
<navigation-case>
<from-action-ref>UserBean.searchAction</from-action-ref>
<from-outcome>success</from-outcome>
<to-tree-id>/user_search.jsp</to-tree-id>
</navigation-case>
<navigation-case>
<from-action-ref>UserBean.searchAction</from-action-ref>
<from-outcome>failed</from-outcome>
<to-tree-id>/user_search.jsp</to-tree-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>UserBean</managed-bean-name>
<managed-bean-class>com.jsftest.portal.bean.UserSearchForm</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2004
Added on Jan 15 2004
4 comments
608 views