[URGENTE!] - JSF + EJB3 - EL Expression sem funcionar

0 respostas
J

Pessoal, estou com um projeto feito no JBoss Seam (Seam Web Project). Está dando o seguinte erro:

javax.el.ELException: /layout/template.xhtml: Property 'faviconContext' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_seam_2
at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

No entanto, no meu template.xhtml, está chamando o EJB, que está cadastrado como componente Seam, conforme segue:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:a="http://richfaces.org/a4j"
   xmlns:s="http://jboss.com/products/seam/taglib"
   contentType="text/html">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>carteiroveloz</title>
      <link rel="shortcut icon" href="#{Util.faviconContext}"/>
      <a:loadStyle src="resource:///stylesheet/theme.xcss"/>
      <a:loadStyle src="/stylesheet/theme.css"/>
      <ui:insert name="head"/>
   </head>
   <body>
      <ui:include src="menu.xhtml">
         <ui:param name="projectName" value="carteiroveloz"/>
      </ui:include>
      <div class="body">
         <h:messages id="messages" globalOnly="true" styleClass="message"
            errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
            rendered="#{showGlobalMessages != 'false'}"/>
         <ui:insert name="body"/>
      </div>
      <div class="footer">
         <p>Powered by <a href="http://seamframework.org">Seam</a> <h:outputText value="#{Util.faviconContext}" /> #{org.jboss.seam.version} and <a href="http://www.jboss.org/jbossrichfaces">RichFaces</a>. Generated by seam-gen.</p>
         <s:fragment rendered="#{init.debug}">
         <a:log hotkey="D"/>
         <p style="margin-top: -0.5em;">
            Conversation: id = #{conversation.id}, #{conversation.longRunning ? 'long running' : 'temporary'}#{conversation.nested ? ', nested, parent id = '.concat(conversation.parentId) : ''}
            #{' - '}
            Ajax4jsf Log (Ctrl+Shift+D)
            #{' - '}
            <s:link id="debugConsole" view="/debug.xhtml" value="Debug console" target="debugConsole"/>
            #{' - '}
            <s:link id="resetSession" view="/home.xhtml" action="#{org.jboss.seam.web.session.invalidate}" propagation="none" value="Terminate session"/>
         </p>
         </s:fragment>
      </div>
   </body>
</html>
</f:view>
package carteiroveloz.util;

import javax.ejb.Stateless;

import org.jboss.seam.annotations.Name;

/**
 * Session Bean implementation class Util
 */
@Stateless
@Name("Util")
public class Util implements UtilLocal {

    /**
     * Default constructor. 
     */
    public Util() {
        // TODO Auto-generated constructor stub
    }
    
    
    private String faviconContext = "/carteiroveloz/adm/ext/img/favicon.ico";

	public String getFaviconContext() {
		return faviconContext;
	}

	public void setFaviconContext(String faviconContext) {
		this.faviconContext = faviconContext;
	}
    
    
    

}

No entanto, ele não tá consegundo reconhecer o faviconContext e está dando esse erro! O que pode ser?

Criado 14 de novembro de 2009
Respostas 0
Participantes 1