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.054

project 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.19

build 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:

error com.skeds.core.component.exceptions.skedscustomexceptionhandler function 'rich:element' not found javax.el.elexception: function 'rich:element' not found @ org.jboss.el.lang.expressionbuilder.visit(expressionbuilder.java:176) @ org.jboss.el.parser.simplenode.accept(simplenode.java:129) @ org.jboss.el.lang.expressionbuilder.prepare(expressionbuilder.java:138) @ org.jboss.el.lang.expressionbuilder.build(expressionbuilder.java:152) @ org.jboss.el.lang.expressionbuilder.createvalueexpression(expressionbuilder.java:195) @ org.jboss.el.expressionfactoryimpl.createvalueexpression(expressionfactoryimpl.java:68) @ com.sun.faces.facelets.el.eltext$eltextvariable.apply(eltext.java:203) @ com.sun.faces.facelets.el.eltext$eltextcomposite.apply(eltext.java:184) @ com.sun.faces.facelets.compiler.textinstruction.apply(textinstruction.java:96) @ com.sun.faces.facelets.compiler.uiinstructionhandler.apply(uiinstructionhandler.java:141) @ javax.faces.view.facelets.compositefacelethandler.apply(compositefacelethandler.java:95) @ javax.faces.view.facelets.delegatingmetataghandler.applynexthandler(delegatingmetataghandler.java:137)

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.

while googling possible solutions - saw issue 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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -