8 Replies Latest reply on Jul 31, 2007 8:01 PM by Kim Lord

    convertEntity - someone must know

    Kim Lord Newbie

      I have asked this before but no one has ever answered. I am trying to use s:convertEntity with a selectOneMenu but get an error that the convertEntity tag is not defined. I am using seam 1.2.1. I upgraded from seam 1.1.6. The project was created using seam generate-entities. I have spent much time trying to configure this to work.

      Can someone please tell me how to set up seam to be able to use the convertEntity tag. Also, although I followed directions on the jboss site I am not sure that I upgraded Seam properly.

      Any help would be greatly appreciated.

        • 1. Re: convertEntity - someone must know
          Thomas Gerhards Newbie

          Do you use Facelets? I believe that it just works with Facelets. With JSP you need to define it in your tag library I guess.

          • 2. Re: convertEntity - someone must know
            Pete Muir Master

            Yes, I forgot the JSP tag stuff in 1.2.1.GA, this is fixed in Seam2 onwards

            • 3. Re: convertEntity - someone must know
              Kim Lord Newbie

              Yes, I am using facelets, but am getting the error I mentioned. Do I have something set up incorrectly? I thought I followed the directions on the jboss site. I think I just typed ant from the 1.2.1 GA directory and it said that it was successful. I don't know what else I was supposed to do. I used the generate - entities from the 1.2.1 seam version. I have spent so much time trying to figure this out. Maybe I am not using the seam version 1.2.1

              Thanks for any help.
              Kim

              • 4. Re: convertEntity - someone must know
                Pete Muir Master

                So, post the whole error. Btw, you won't get very far asking for help being that vague.

                • 5. Re: convertEntity - someone must know
                  Kim Lord Newbie

                  This is the error:

                  An Error Occurred:
                  /ClassificationsEdit.xhtml @47,56 <s:convertEntity> Tag Library supports namespace: http://jboss.com/products/seam/taglib, but no tag was defined for name: convertEntity
                  +- Stack Trace

                  com.sun.facelets.tag.TagException: /ClassificationsEdit.xhtml @47,56 <s:convertEntity> Tag Library supports namespace: http://jboss.com/products/seam/taglib, but no tag was defined for name: convertEntity
                  at com.sun.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:193)
                  at com.sun.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:194)
                  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
                  at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
                  at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
                  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
                  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
                  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
                  at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                  at javax.xml.parsers.SAXParser.parse(Unknown Source)
                  at javax.xml.parsers.SAXParser.parse(Unknown Source)
                  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:197)
                  at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
                  at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
                  at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:496)
                  at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
                  at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
                  at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
                  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                  at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                  at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                  at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                  at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                  at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
                  at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                  at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
                  at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                  at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                  at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                  at java.lang.Thread.run(Thread.java:595)

                  • 6. Re: convertEntity - someone must know
                    Pete Muir Master

                    So thats not Seam 1.2.1.GA but some older version.

                    • 7. Re: convertEntity - someone must know
                      Kim Lord Newbie

                      How do I upgrade my Seam version? I tried to follow the few directions that were on the site. Could you tell me what to do or point me in the direction of some detailed directions?

                      I really appreciate your help.

                      • 8. Re: convertEntity - someone must know
                        Kim Lord Newbie

                        I took the seam jars from version 1.2.1 and put them in the lib directory of my project and built the project but I still get the same error. What am I doing wrong?