cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Footer throws javax.faces.FacesException

sanco
Champ in-the-making
Champ in-the-making
Hi All,

I tried to modify the footer by making changes in the PageTag class.
But when i start the server with the modified war file i get
javax.faces.FacesException error
javax.faces.FacesException: org/alfresco/web/ui/repo/tag/PageTag (wrong name: web-client-src/java/org/alfresco/web/ui/repo/tag/PageTag)
   org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
   org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
   org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
   org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:94)

Can anyone please give me idea that where i have made the mistake or why this exception is thrown?

The code i changed is as follows from PageTag.java :
private String getAlfrescoButton()
   {
      if (alfresco == null)
      {
         String reqPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
/* i removed some items here */
        alfresco = "<center><table><tr><td>" +
                    "<a href='" + ALF_URL + "'>" +
                    "<img border=0 alt='' title='" + ALF_TEXT + "' align=absmiddle src='" + ALF_LOGO + "'>" +
                    "</a></td>" +
                    "</tr></table></center>"

      }
     
      return alfresco;
   }

Please assist me in this regard..
thanks in advance,
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Looks like the file was compiled into the wrong package - the 'web-client-src/java' bit shouldn't be on the package path.

Thanks,

Kevin