6 Replies Latest reply on Oct 9, 2007 12:57 PM by Tom Soucy

    getting seam wiki ex error SevltEx: Function 'wiki:renderURL

    Tom Soucy Newbie

      Using a clean build windows XP and suggested JBoss configuration I'm getting this error. Has anyone been able to build and deploy and then use the example wiki as described in the readme?

      Thx

      t.

      here's the details:
      javax.servlet.ServletException: Function 'wiki:renderURL' not found
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
      org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:395)
      org.jboss.seam.wiki.core.ui.WikiUrlRewriteFilter.doFilter(WikiUrlRewriteFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      javax.el.ELException: Function 'wiki:renderURL' not found
      org.jboss.el.lang.ExpressionBuilder.visit(ExpressionBuilder.java:176)
      org.jboss.el.parser.SimpleNode.accept(SimpleNode.java:129)
      org.jboss.el.lang.ExpressionBuilder.prepare(ExpressionBuilder.java:138)
      org.jboss.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:152)
      org.jboss.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:195)
      org.jboss.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
      org.jboss.seam.el.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:98)
      com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
      com.sun.facelets.tag.jsf.ValueHolderRule$DynamicValueExpressionMetadata.applyMetadata(ValueHolderRule.java:101)
      com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
      com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
      com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:144)
      com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
      com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
      com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
      com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
      com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
      com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
      com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
      com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
      com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
      com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
      com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
      com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
      com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
      com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
      com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
      com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
      com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
      com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
      com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
      com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
      com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
      com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
      com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
      com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:509)
      com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:552)
      org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      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.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:395)
      org.jboss.seam.wiki.core.ui.WikiUrlRewriteFilter.doFilter(WikiUrlRewriteFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.


        • 1. Re: getting seam wiki ex error SevltEx: Function 'wiki:rende
          Christian Bauer Master

          Are you deploying with the 'dev' or the 'prod' profile?

          • 2. Re: getting seam wiki ex error SevltEx: Function 'wiki:rende
            Tom Soucy Newbie

            The error occurred using the development profile.

            The ant task: Run the standalone HSQL DB server with 'ant startdb'
            started OK.

            • 3. Re: getting seam wiki ex error SevltEx: Function 'wiki:rende
              Christian Bauer Master

              You need to describe step by step what you are doing.

              • 4. Re: getting seam wiki ex error SevltEx: Function 'wiki:rende
                Tom Soucy Newbie

                here's the steps:

                - Install JBoss Application Server 4.2.1 GA
                I installed JBoss on windows XP directory: C:\Program Files\jboss-4.2.1.GA

                - Edit build.properties
                build.properties under the wiki directory became:
                jboss.home C:\\Program Files\\jboss-4.2.1.GA
                # That stuff doesn't really work for me, PAGE scoped components can't be hot-deployed (CNFE on deserialization of component state)
                #hotdeploy.classes = **/wiki/core/action/** **/wiki/core/dao/** **/wiki/core/links/** **/wiki/plugin/lastmodified/** **/wiki/plugin/blogdirectory/BlogDirectory*
                javac.debug true
                javac.deprecation false
                javac.nowarn on
                testng.jvmargs
                #testng.jvmargs = -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

                - Run the standalone HSQL DB server with 'ant startdb'
                jboss-seam-2.0.0.CR1\jboss-seam-2.0.0.CR1\examples\wiki>ant startdb
                Buildfile: build.xml

                startdb:
                [java] [Server@1a758cb]: [Thread[main,5,main]]: checkRunning(false) entered

                [java] [Server@1a758cb]: [Thread[main,5,main]]: checkRunning(false) exited
                [java] [Server@1a758cb]: Startup sequence initiated from main() method
                [java] [Server@1a758cb]: Loaded properties from [C:\tjs\research\seam\seamV
                2\jboss-seam-2.0.0.CR1\jboss-seam-2.0.0.CR1\examples\wiki\server.properties]
                [java] [Server@1a758cb]: Initiating startup sequence...
                [java] [Server@1a758cb]: Server socket opened successfully in 16 ms.
                [java] [Server@1a758cb]: Database [index=0, id=0, db=file:database/db, alia
                s=] opened sucessfully in 250 ms.
                [java] [Server@1a758cb]: Startup sequence completed in 281 ms.
                [java] [Server@1a758cb]: 2007-10-08 07:34:20.781 HSQLDB server 1.8.0 is onl
                ine
                [java] [Server@1a758cb]: To close normally, connect and execute SHUTDOWN SQ
                L
                [java] [Server@1a758cb]: From command line, use [Ctrl]+[C] to abort abruptl
                y

                - Call 'ant deploy'
                jboss-seam-2.0.0.CR1\examples\wiki>ant deploy
                Buildfile: build.xml

                init:

                compileclasses:
                [instrument] starting instrumentation
                [instrument] processing class [org.jboss.seam.wiki.core.model.package-info]; fil
                e = file:/C:/tjs/research/seam/seamV2/jboss-seam-2.0.0.CR1/jboss-seam-2.0.0.CR1/
                examples/wiki/build/classes/org/jboss/seam/wiki/core/model/package-info.class

                explodehotdeploy:
                [copy] Copying 1 file to C:\tjs\research\seam\seamV2\jboss-seam-2.0.0.CR1\j
                boss-seam-2.0.0.CR1\examples\wiki\build\exploded\wiki.war\WEB-INF\classes

                exploderesources:
                [copy] Copying 1 file to C:\tjs\research\seam\seamV2\jboss-seam-2.0.0.CR1\j
                boss-seam-2.0.0.CR1\examples\wiki\build\exploded\wiki.war\WEB-INF
                [copy] Copying 1 file to C:\tjs\research\seam\seamV2\jboss-seam-2.0.0.CR1\j
                boss-seam-2.0.0.CR1\examples\wiki\build\exploded\wiki.war\WEB-INF\classes
                [copy] Copying 1 file to C:\tjs\research\seam\seamV2\jboss-seam-2.0.0.CR1\j
                boss-seam-2.0.0.CR1\examples\wiki\build\exploded\wiki.war\WEB-INF\classes\META-I
                NF

                explodewar:

                deploy:
                [copy] Copying 1 file to C:\Program Files\jboss-4.2.1.GA\server\default\dep
                loy
                [copy] Copying 325 files to C:\Program Files\jboss-4.2.1.GA\server\default\
                deploy\wiki.war
                [copy] Copied 55 empty directories to 1 empty directory under C:\Program Fi
                les\jboss-4.2.1.GA\server\default\deploy\wiki.war

                BUILD SUCCESSFUL
                Total time: 12 seconds

                - Start (if you haven't done so already) JBoss AS and access http://localhost:8080/wiki/
                (note since a server occupies port 8080 I had changed JBoss to use 8088)
                (note2 I was able to bring up JBoss and deploy a different war file and test it)
                When I tried http://localhost:8088/wiki/ I receive the error stated earlier.

                • 5. Re: getting seam wiki ex error SevltEx: Function 'wiki:rende
                  Christian Bauer Master

                  Use CR2 and build Seam before so that all JARs are downloaded with the Maven stuff. There is an updated wiki/README.txt in there.

                  • 6. Re: getting seam wiki ex error SevltEx: Function 'wiki:rende
                    Tom Soucy Newbie

                    Using the new readme instructions I was able to bring up the initial wiki page. Although I haven't ventured too far into the application yet, a heads up on some problems:

                    After following the instructions I did receive (from JBoss) a message that the wiki.war had NOT been successfully deployed.

                    I noticed that the CR1 attempt's wiki-dev-ds.xml file had an older date as well
                    as a laceWikiIndex folder in JBoss bin. I tossed them, I undeployed any non-JBoss webapps and redeployed. Then things worked.