On 9/14/07, Scott Ferguson <[EMAIL PROTECTED]> wrote: > > On Sep 14, 2007, at 9:00 AM, Matt Raible wrote: > > > I tried the nightly snapshot and received the following error: > > > > 2007-09-14 10:57:05.290796500 [10:57:05.247] > > javax.servlet.ServletException: com.caucho.xml.XmlParseException: > > /META-INF/faces-config.xml:4: <faces-config > > xmlns="http://java.sun.com/JSF/Configuration"> is an unexpected > > top-level tag. > > > > I found <faces-config xmlns="http://java.sun.com/JSF/Configuration"> > > in quite a few JSF libraries (Ajax4JSF 1.0.6, Tomahawk 1.1.6, etc). Is > > this a valid issue or is Resin being too strict? This application > > works fine on Jetty 6.1.5 and Tomcat 6.0.14. > > I've filed it as http://bugs.caucho.com/view.php?id=2010. > > Hmm. That namespace isn't correct according to the JSF 1.2 spec. > The older specs are supposed to be DTD-based, which normally means > they don't have a namespace at all.
Yeah, the faces-config.xml files I found had both a DTD and the xmlns. I don't know if it's in the spec, but the other containers seem to ignore this. > > BTW, this issue is Resin-JSF vs Myspaces/JSF-RI, not Resin vs Tomcat/ > Jetty. If you delete the jsf-12.jar, you'll bypass Resin-JSF's > parsing of the faces-config files. Right, but there's still an error that appears with Facelets. [18:48:36.974] Error Rendering View[/users.xhtml] [18:48:36.974] java.lang.NullPointerException [18:48:36.974] at com.sun.facelets.el.CompositeFunctionMapper.resolveFunction(CompositeFunctionMapper.java:48) [18:48:36.974] at com.caucho.el.ELParser.getStaticMethod(ELParser.java:680) [18:48:36.974] at com.caucho.el.ELParser.parseSimpleTerm(ELParser.java:642) [18:48:36.974] at com.caucho.el.ELParser.parseTerm(ELParser.java:427) [18:48:36.974] at com.caucho.el.ELParser.parseExpr(ELParser.java:211) [18:48:36.974] at com.caucho.el.ELParser.parseInterpolate(ELParser.java:174) [18:48:36.974] at com.caucho.el.ELParser.parse(ELParser.java:105) [18:48:36.974] at com.caucho.jsp.el.JspExpressionFactoryImpl.createValueExpression(JspExpressionFactoryImpl.java:120) [18:48:36.974] at com.sun.facelets.el.ELText$ELTextVariable.apply(ELText.java:161) [18:48:36.974] at com.sun.facelets.compiler.TextInstruction.apply(TextInstruction.java:56) [18:48:36.974] at com.sun.facelets.compiler.UIInstructionHandler.apply(UIInstructionHandler.java:85) [18:48:36.974] at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) [18:48:36.974] at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109) [18:48:36.974] at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) [18:48:36.974] at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) [18:48:36.974] at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) [18:48:36.974] at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) [18:48:36.974] at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:509) [18:48:36.974] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:552) [18:48:36.974] at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) [18:48:36.974] at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221) [18:48:36.974] at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) [18:48:36.974] at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132) [18:48:36.974] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) This also happens on Resin 3.1.2, which has no jsf-12.jar in its lib directory. Matt > > -- Scott > > > > > Thanks, > > > > Matt > > > > > > On 9/14/07, Scott Ferguson <[EMAIL PROTECTED]> wrote: > >> > >> On Sep 13, 2007, at 4:33 PM, Matt Raible wrote: > >> > >>> I'm trying to use MyFaces 1.2.0 and Facelets 1.1.13 on Resin 3.1.2. > >>> Everything starts OK, but it seems there's an issue with > >>> Facelets. Any > >>> ideas? > >> > >> Can you check with the current snapshot? (Or actually wait until > >> tomorrow's snapshot since there's a bug in the sample resin.conf) > >> > >> There are a number of important fixes to the EL handling because of > >> JSF issues. > >> > >> The snapshot does include Resin's new JSF implementation (so it might > >> be necessary to remove the resin/lib/jsf-12.jar if that introduces > >> any problems.) > >> > >> -- Scott > >> > >>> > >>> [01:29:15.913] Error Rendering View[/users.xhtml] > >>> [01:29:15.913] java.lang.NullPointerException > >>> [01:29:15.913] at > >>> com.sun.facelets.el.CompositeFunctionMapper.resolveFunction > >>> (CompositeFunctionMapper.java:48) > >>> [01:29:15.913] at com.caucho.el.ELParser.getStaticMethod > >>> (ELParser.java:680) > >>> [01:29:15.913] at com.caucho.el.ELParser.parseSimpleTerm > >>> (ELParser.java:642) > >>> [01:29:15.913] at com.caucho.el.ELParser.parseTerm(ELParser.java: > >>> 427) > >>> [01:29:15.913] at com.caucho.el.ELParser.parseExpr(ELParser.java: > >>> 211) > >>> [01:29:15.913] at com.caucho.el.ELParser.parseInterpolate > >>> (ELParser.java:174) > >>> [01:29:15.913] at com.caucho.el.ELParser.parse(ELParser.java:105) > >>> [01:29:15.913] at > >>> com.caucho.jsp.el.JspExpressionFactoryImpl.createValueExpression > >>> (JspExpressionFactoryImpl.java:120) > >>> [01:29:15.913] at > >>> com.sun.facelets.el.ELText$ELTextVariable.apply(ELText.java:161) > >>> [01:29:15.913] at > >>> com.sun.facelets.compiler.TextInstruction.apply > >>> (TextInstruction.java:56) > >>> [01:29:15.913] at > >>> com.sun.facelets.compiler.UIInstructionHandler.apply > >>> (UIInstructionHandler.java:85) > >>> [01:29:15.913] at > >>> com.sun.facelets.tag.CompositeFaceletHandler.apply > >>> (CompositeFaceletHandler.java:47) > >>> [01:29:15.913] at > >>> com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java: > >>> 109) > >>> [01:29:15.913] at > >>> com.sun.facelets.tag.CompositeFaceletHandler.apply > >>> (CompositeFaceletHandler.java:47) > >>> [01:29:15.913] at > >>> com.sun.facelets.compiler.NamespaceHandler.apply > >>> (NamespaceHandler.java:49) > >>> [01:29:15.913] at > >>> com.sun.facelets.compiler.EncodingHandler.apply > >>> (EncodingHandler.java:25) > >>> [01:29:15.913] at > >>> com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) > >>> [01:29:15.913] at > >>> com.sun.facelets.FaceletViewHandler.buildView > >>> (FaceletViewHandler.java:509) > >>> [01:29:15.913] at > >>> com.sun.facelets.FaceletViewHandler.renderView > >>> (FaceletViewHandler.java:552) > >>> [01:29:15.913] at > >>> org.ajax4jsf.framework.ViewHandlerWrapper.renderView > >>> (ViewHandlerWrapper.java:101) > >>> [01:29:15.913] at > >>> org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView > >>> (AjaxViewHandler.java:221) > >>> [01:29:15.913] at > >>> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute > >>> (RenderResponseExecutor.java:41) > >>> [01:29:15.913] at > >>> org.apache.myfaces.lifecycle.LifecycleImpl.render > >>> (LifecycleImpl.java:132) > >>> [01:29:15.913] at > >>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.ServletFilterChain.doFilter > >>> (ServletFilterChain.java:103) > >>> [01:29:15.913] at > >>> org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter > >>> (BaseXMLFilter.java:75) > >>> [01:29:15.913] at > >>> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter > >>> (BaseFilter.java:213) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.FilterFilterChain.doFilter > >>> (FilterFilterChain.java:73) > >>> [01:29:15.913] at > >>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter > >>> (ExtensionsFilter.java:147) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.FilterFilterChain.doFilter > >>> (FilterFilterChain.java:73) > >>> [01:29:15.913] at > >>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage > >>> (PageFilter.java:118) > >>> [01:29:15.913] at > >>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter > >>> (PageFilter.java:52) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.FilterFilterChain.doFilter > >>> (FilterFilterChain.java:73) > >>> [01:29:15.913] at > >>> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.d > >>> oF > >>> ilterInternal(OpenSessionInViewFilter.java:198) > >>> [01:29:15.913] at > >>> org.springframework.web.filter.OncePerRequestFilter.doFilter > >>> (OncePerRequestFilter.java:75) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.FilterFilterChain.doFilter > >>> (FilterFilterChain.java:73) > >>> [01:29:15.913] at org.appfuse.web.MessageFilter.doFilter > >>> (MessageFilter.java:32) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.FilterFilterChain.doFilter > >>> (FilterFilterChain.java:73) > >>> [01:29:15.913] at > >>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInter > >>> na > >>> l(CharacterEncodingFilter.java:96) > >>> [01:29:15.913] at > >>> org.springframework.web.filter.OncePerRequestFilter.doFilter > >>> (OncePerRequestFilter.java:75) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.FilterFilterChain.doFilter > >>> (FilterFilterChain.java:73) > >>> [01:29:15.913] at > >>> com.caucho.server.webapp.WebAppFilterChain.doFilter > >>> (WebAppFilterChain.java:175) > >>> [01:29:15.913] at > >>> com.caucho.server.dispatch.ServletInvocation.service > >>> (ServletInvocation.java:240) > >>> [01:29:15.913] at > >>> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java: > >>> 263) > >>> [01:29:15.913] at > >>> com.caucho.server.port.TcpConnection.run(TcpConnection.java:481) > >>> [01:29:15.913] at com.caucho.util.ThreadPool$Item.runTasks > >>> (ThreadPool.java:685) > >>> > >>> Thanks, > >>> > >>> Matt > >>> > >>> -- > >>> http://raibledesigns.com > >>> > >>> > >>> _______________________________________________ > >>> resin-interest mailing list > >>> [email protected] > >>> http://maillist.caucho.com/mailman/listinfo/resin-interest > >> > >> > >> > >> _______________________________________________ > >> resin-interest mailing list > >> [email protected] > >> http://maillist.caucho.com/mailman/listinfo/resin-interest > >> > > > > > > -- > > http://raibledesigns.com > > > > > > _______________________________________________ > > resin-interest mailing list > > [email protected] > > http://maillist.caucho.com/mailman/listinfo/resin-interest > > > > _______________________________________________ > resin-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/resin-interest > -- http://raibledesigns.com _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
