It seems like your aren't using Facelets. Facelet files end in .xhtml. What URL are you using to access your page?
_Richard On Mon, Oct 5, 2009 at 3:17 AM, baeschtu baeschtu <[email protected]> wrote: > added an el-Messages file from > http://j4fry.blogspot.com/2009/01/fehlendes-bundle-comsunelmessages.html > And now I see the error message. > > SEVERE: Could not find saved view state for token 16smoayywa > ERROR _ErrorPageWriter - An exception occurred > javax.faces.application.ViewExpiredException: /index.jsfNo saved view state > could be found for the view identifier: /index.jsf > > > > > > 2009/10/5 baeschtu baeschtu <[email protected]> >> >> But when I try to fire an Action like this I still get an "Can't find >> bundle for base name com.sun.el.Messages, locale en_US" exception. >> >> <tr:commandNavigationItem >> text="Login" >> shortDesc="Login" >> actionListener="#{NaviAction.login}" >> partialSubmit="true" >> selected="true"> >> </tr:commandNavigationItem> >> >> ERROR _ErrorPageWriter - An exception occurred >> java.lang.ExceptionInInitializerError >> at com.sun.el.util.ReflectionUtil.getMethod(ReflectionUtil.java:143) >> at com.sun.el.parser.AstValue.invoke(AstValue.java:154) >> at >> com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) >> at >> com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) >> at >> javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:49) >> at javax.faces.event.ActionEvent.processListener(ActionEvent.java:51) >> at >> org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:671) >> at >> org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179) >> at >> org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:147) >> at >> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:366) >> at javax.faces.component.UIViewRoot.process(UIViewRoot.java:261) >> at >> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:151) >> at >> org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32) >> at >> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103) >> at >> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76) >> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151) >> at >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050) >> at >> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) >> at >> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) >> at >> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041) >> at >> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041) >> at cz.softeu.rewriter.RewriterFilter.doFilter(RewriterFilter.java:144) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354) >> at >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) >> at >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) >> at >> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) >> at >> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) >> at >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) >> at org.mortbay.jetty.Server.handle(Server.java:269) >> at >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) >> at >> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339) >> at >> org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270) >> at >> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) >> Caused by: java.util.MissingResourceException: Can't find bundle for base >> name com.sun.el.Messages, locale en_US >> at >> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) >> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) >> at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) >> at com.sun.el.util.MessageFactory.<clinit>(MessageFactory.java:36) >> ... 40 more >> Rewrite: /index.jsf >> >> >> >> 2009/10/5 baeschtu baeschtu <[email protected]> >>> >>> tnx, works now! :-) >>> >>> 2009/10/5 Richard Yee <[email protected]> >>>> >>>> Try getting a basic page with an tr:outputText tag working. >>>> R >>>> >>>> Sent from my iPhone >>>> On Oct 4, 2009, at 9:49 AM, baeschtu baeschtu <[email protected]> >>>> wrote: >>>> >>>> thanks, I applied this configs, now when I try to make a tabbed panel >>>> with the code I borrowed from trinidad-demo project, I got an >>>> "Can't find bundle for base name com.sun.el.Messages, locale en_US" >>>> >>>> >>>> >>>> >>>> >>>> >>>> 2009/10/4 Richard Yee <[email protected]> >>>>> >>>>> You need this context parameter in web.xml for facelets >>>>> <context-param> >>>>> >>>>> <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name> >>>>> <param-value>com.sun.facelets.FaceletViewHandler</param-value> >>>>> </context-param> >>>>> and these servlets and filters >>>>> <filter> >>>>> <filter-name>trinidad</filter-name> >>>>> >>>>> <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class> >>>>> </filter> >>>>> <filter-mapping> >>>>> <filter-name>trinidad</filter-name> >>>>> <servlet-name>faces</servlet-name> >>>>> </filter-mapping> >>>>> <servlet> >>>>> <servlet-name>faces</servlet-name> >>>>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >>>>> <load-on-startup>1</load-on-startup> >>>>> </servlet> >>>>> <servlet> >>>>> <servlet-name>resources</servlet-name> >>>>> >>>>> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class> >>>>> </servlet> >>>>> <servlet-mapping> >>>>> <servlet-name>faces</servlet-name> >>>>> <url-pattern>/faces/*</url-pattern> >>>>> </servlet-mapping> >>>>> <servlet-mapping> >>>>> <servlet-name>resources</servlet-name> >>>>> <url-pattern>/adf/*</url-pattern> >>>>> </servlet-mapping> >>>>> >>>>> -Richard >>>>> >>>>> On Sat, Oct 3, 2009 at 4:21 PM, baeschtu baeschtu <[email protected]> >>>>> wrote: >>>>> > Thanks! removing faceletviewhandler and upgrading trinidad-api/-impl >>>>> > to >>>>> > 1.2.12 worked so far. >>>>> > >>>>> > >>>>> > >>>>> > ClassNotFoundException: >>>>> > >>>>> > org.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler >>>>> > >>>>> > >>>>> > 2009/10/3 Richard Yee <[email protected]> >>>>> >> >>>>> >> Remove faceletviewhandler from faces-config.XML >>>>> >> Read through the Trinidad Wiki on the myfaces site about facelet >>>>> >> config w/ >>>>> >> Trinidad >>>>> >> >>>>> >> Sent from my iPhone >>>>> >> On Oct 3, 2009, at 4:44 AM, baeschtu baeschtu <[email protected]> >>>>> >> wrote: >>>>> >> >>>>> >> After I found some tutorials and updated my config I'm still stuck >>>>> >> with >>>>> >> the following Exception when I access the website. >>>>> >> >>>>> >> Exception while calling encodeBegin on component : {Component-Path : >>>>> >> [Class: javax.faces.component.UIViewRoot,ViewId: >>>>> >> /index.xhtml][Class: >>>>> >> javax.faces.component.html.HtmlForm,Id: j_id4]} >>>>> >> >>>>> >> web.xml and faces-config.xml are attached. >>>>> >> >>>>> >> my versions: >>>>> >> tomahawk 1.1.3 >>>>> >> jsf-facelets 1.1.14 >>>>> >> softeu-rewriter 11 >>>>> >> myfaces-api 1.2.4 >>>>> >> myfaces-impl 1.2.4 >>>>> >> jstl 1.1.2 >>>>> >> trinidad-api 1.2.10 >>>>> >> trinidad-impl 1.2.10 >>>>> >> >>>>> >> Any help would be appreciated >>>>> >> Bast >>>>> >> >>>>> >> >>>>> >> >>>>> >> 2009/10/2 baeschtu baeschtu <[email protected]> >>>>> >>> >>>>> >>> Right, I did not following the installation instructions :-) Thanks >>>>> >>> for >>>>> >>> the help! >>>>> >>> >>>>> >>> >>>>> >>> 2009/10/2 Richard Yee <[email protected]> >>>>> >>>> >>>>> >>>> You should be using facelets 1.1.14 instead of 1.1.11 >>>>> >>>> >>>>> >>>> Sent from my iPhone >>>>> >>>> >>>>> >>>> On Oct 2, 2009, at 8:07 AM, baeschtu baeschtu <[email protected]> >>>>> >>>> wrote: >>>>> >>>> >>>>> >>>>> Hello, I'm pretty new to jsf and would like to make a small >>>>> >>>>> website. I >>>>> >>>>> try to make a tabbed menu with tr:navigationPane but I'm stuck >>>>> >>>>> with the >>>>> >>>>> following error: >>>>> >>>>> >>>>> >>>>> WARNING: Could not find renderer for >>>>> >>>>> CoreNavigationPane[UIXFacesBeanImpl, id=j_id8] rendererType = >>>>> >>>>> org.apache.myfaces.trinidad.Pane >>>>> >>>>> >>>>> >>>>> my versions: >>>>> >>>>> tomahawk 1.1.3 >>>>> >>>>> jsf-facelets 1.1.11 >>>>> >>>>> softeu-rewriter 11 >>>>> >>>>> myfaces-api 1.2.4 >>>>> >>>>> myfaces-impl 1.2.4 >>>>> >>>>> jstl 1.1.2 >>>>> >>>>> trinidad-api 1.2.10 >>>>> >>>>> trinidad-impl 1.2.10 >>>>> >>>>> >>>>> >>>>> What I'm doing wrong? >>>>> >>>>> >>>>> >>>>> tnx >>>>> >>>>> Bast >>>>> >>> >>>>> >> >>>>> >> <web.xml> >>>>> >> >>>>> >> <faces-config.xml> >>>>> > >>>> >>> >> > >

