1 Reply Latest reply on Sep 10, 2007 5:59 PM by Pete Muir

    The entity was referenced, but not declared.

    javier defe Newbie

      Hi Im new at seam and im migrating my site from simple jsp pages to a xhtml structure using facelets.
      My problem is that when jboss compiles my jsp pages an exception occurs. It seems the parser used by jboss doesnt recognize the entities I use (  á ñ etc...) I have no problems using &#x; but I don't want to do that.
      I've been searching all over the web and I didn't find a solution that worked for me.

      The exception:

      javax.servlet.ServletException: Error Parsing /paginas/publico/bienvenida.jsp: Error Traced[line: 9] The entity "nbsp" was referenced, but not declared.
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      com.sun.facelets.FaceletException: Error Parsing /paginas/publico/bienvenida.jsp: Error Traced[line: 9] The entity "nbsp" was referenced, but not declared.
      com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
      com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
      com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
      com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
      com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
      com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:496)
      com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
      org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
      org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)