jsf - javax.el.ELException: Function "rich:element" not found -
jsf - javax.el.ELException: Function "rich:element" not found -
moved kubuntu os x (bought macbook). set environment build project next (downloaded official websites, not repositories):
java se (build 1.7.0_60-b19) apache maven 3.2.1 apache tomcat 7.054project technology stack:
spring framework 3.2.2.release hibernate 4.2.5.final java server faces 2.2.0 richfaces 4.3.1.final mysql 5.6.19build maven goes ok on windows 7, kubuntu 14.04 , mac os x mavericks 10.9.3. deployment onto apache tomcat 7 goes ok (no errors, warnings appear). 1 time project deployed, going login screen, loading main page, surfing through project views until invoices page, contain #{rich:element('some_id')}.some_action()
. rendering page falls error below:
i can go 1 of pages , can render invoices page without error, still clicking on page el gives same error.
what tried:
deployed on different tomcat versions (7.054, 7.050, 7.053). built different maven versions (3.2.1, 2.0.4). was using different java sdk versions (1.6, 1.7, 1.8).during code investigation found next dependency fail @ org.richfaces.function.richfunction
class:
import org.richfaces.cdk.annotations.function;
which reason of error. added next dependency pom.xml:
<dependency> <groupid>org.richfaces.cdk</groupid> <artifactid>annotations</artifactid> <version>4.3.1-snapshot</version> <scope>provided</scope> </dependency>
the ide precompiler shows dependency resolved. mvn clean install
, redeployment of project gives no results. same error appear.
el-api.jdk
within of bundle in project classpath. @ tomcat7 lib directory there 1 el-api.jdk
, @ pom.xml
there 3 exclusions on dependencies perchance can contain el-api.jdk
can conflict. @ target/web-inf/lib
directory there no el-api.jdk
files can conflict too. opened project in google chrome , os x safari - lastly 1 gives less errors, still present. cloned project git 3 times, did full-install instructions, built , ran both ide intellij thought 13 (latest update) , terminal - copied .war /webapps , ran catalina.sh
. tried mvn bundle -dskiptests jetty:run
- options give same result. edit: problem appeared on kubuntu 14.04 , ubuntu 12.10. tested on windows 7 - same issue. not os based error.
any suggestions much appreciated.
resolved. happened, cause of issue totally stupid. intellij thought has alternative auto-clean unused namespaces on jsf .xhtml views. invoices page contain include has #{rich:element('some_id')}
within, rich function not actual namespace usage, instance tagname <rich:calendar>
. why thought cleaned on 1 of project's rebuilds. namespace xmlns:rich="http://richfaces.org/rich"
defined in outer invoices.xhtml. , rendering inner include without declared namespace cause restoreview phase crash given error.
jsf richfaces el
Comments
Post a Comment