You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Adib Saikali <as...@intelligenceaids.com> on 2004/12/24 11:54:09 UTC

Running My Faces

Hi,

I have been trying to get My Faces to run for several hours with no
luck. I am running my faces with tomcat 5.0.19 from inside Eclipse 3.0
using the tomcat launcher plugin. Has anyone encountered any problems
with running my faces from inside a elcipse?

Here is what I have done.

1. Downloaded the my faces 1.0.7 release 
2. copied the contents of my-faces lib to my web app's lib directory 
3. copied the conf/web.xml to as my starting web.xml 
4. copied the examples-config.xml and created an empty faces-config
files 


I have gone through and stripped the jsp down to just the bare
essentials, deleted the work directory to make sure that nothing was
cashed ... Etc. Any ideas on what I could try to make it work?

Thanks
Adib 

Here is the JSP 

<HTML>
    <HEAD> <title>Hello</title> </HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <body bgcolor="white">
		<h2>Hi. My name is Duke.  I'm thinking of a number
from</h2>
    </body>
</HTML>  

Here is the exception 
javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjav
a/lang/String;ZZ)V
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


root cause 

java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjav
a/lang/String;ZZ)V
	
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibrary
InfoImpl.java:588)
	
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryIn
foImpl.java:435)
	
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp
l.java:291)
	
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.
java:222)
	
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
	
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
	
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
	org.apache.jasper.compiler.Parser.parse(Parser.java:171)
	
org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
a:258)
	
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
139)
	
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:553)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:853)