javasf@googlegroups.com
[Top] [All Lists]

[javasf] JSF 2 + Richfaces 3.3.3 - no tag was defined for name: metadata

Subject: [javasf] JSF 2 + Richfaces 3.3.3 - no tag was defined for name: metadata <f:metadata>
From: Ivan
Date: Tue, 5 Apr 2011 21:23:18 -0700 PDT
Hi, I'm getting an error when rendering this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
        xmlns="http://www.w3.org/1999/xhtml";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:ui="http://java.sun.com/jsf/facelets";
        xmlns:a4j="http://richfaces.org/a4j";
        xmlns:rich="http://richfaces.org/rich";

        >
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />

<link rel="stylesheet" href="../css/style.css" type="text/css"></link>

<script type="text/javascript" language="javascript" src="../
javascript/funcoes.js" />

<title>
        Titulo
</title>
</head>
<body>
<f:view>

        <f:metadata>
                <f:viewParam name="idPropriedadeSelecionada" />
        </f:metadata>

....

An Error Occurred:
/cadastroPropriedadeRural.xhtml @25,14 <f:metadata> Tag Library
supports namespace: http://java.sun.com/jsf/core, but no tag was
defined for name: metadata

Stack Trace:

com.sun.facelets.tag.TagException: /cadastroPropriedadeRural.xhtml
@25,14 <f:metadata> Tag Library supports namespace: 
http://java.sun.com/jsf/core,
but no tag was defined for name: metadata
        at
com.sun.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:
193)
        at com.sun.facelets.compiler.SAXCompiler
$CompilationHandler.startElement(SAXCompiler.java:194)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
501)
        at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:
767)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:
400)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:
648)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:
140)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
511)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
808)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
119)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
        at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:
232)
        at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
        at
com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:
218)
        at
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:
149)
        at
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:
100)
        at
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:
519)
        at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:
569)
        at
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:
100)
        at
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:
176)
        at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:
121)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
139)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
        at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:
1534)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
343)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
215)
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
206)
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
        at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:
388)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
256)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
215)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
279)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:
655)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
595)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
        at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:
91)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
162)
        at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:
326)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
227)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:
170)
        at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:
822)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:
719)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:
1013)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:
225)
        at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:
137)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
104)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
90)
        at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:
79)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:
54)
        at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:
59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool
$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool
$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)



Also, I cannot use <h:link>, I've got the same error.... no tag was
defined for name: link

I was using Tomcat 7.0.8 + Mojarra 2.0.4 when I get stuck by this
error, and then I switched to Glassfish 3.1.

Now I'm using:
Richfaces 3.3.3
Facelets 1.1.15
Mojarra 2.1.0
GlassFish 3.1
Eclipse Helios
JDK 1.6.0_22

Someone could help me?


-- 
Você recebeu esta mensagem por que é membro do  Javasf
http://groups.google.com/group/javasf

Conheça também o Java Brazil: http://groups.google.com/group/thejavabrazil

<Prev in Thread] Current Thread [Next in Thread>
  • [javasf] JSF 2 + Richfaces 3.3.3 - no tag was defined for name: metadata <f:metadata>, Ivan <=