[jboss-user] [JBoss Seam] - Trinidad Problems

dave.rogers do-not-reply at jboss.com
Thu Dec 14 05:18:31 EST 2006


Despite having few problems getting tomahawk up and running it seemed like a good idea to switch to trinidad after reading, several times, that tomahawk was still in alpha and was not to be trusted. It suprised me then to discover that trinidad seems less well supported, fewer forum entries, really hard to find on the web etc.. Not only this, I can't get it to work even a bit.

I get the following error when loading up my home page (which doesn't contain any trinidad tags):

10:07:42,561 ERROR [STDERR] Dec 14, 2006 10:07:42 AM com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/secure/home.xhtml]
  | java.lang.IllegalStateException: No RenderingContext
  | 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:156)
  | 	at org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRenderer.java:54)
  | 	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
  | 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
  | 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
  | 	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
  | 	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.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:326)
  | 	at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:290)
  | 	at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:213)
  | 	at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:90)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
  | 	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:524)
  | 	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)

Here is my web.xml (simplified)

<?xml version="1.0" ?>
  | <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  |          version="2.4">
  | 
  | 
  | 	<listener>
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  |     
  |     <listener>
  |         <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>
  |     
  |     <context-param>
  | 		<param-name>org.jboss.seam.core.init.debug</param-name>
  | 		<param-value>true</param-value>
  | 	</context-param> 
  |     
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>
  |     </context-param>
  |     
  |     <context-param>
  |         <param-name>facelets.DEVELOPMENT</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  |     
  |     <context-param>
  |         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  |         <param-value>.xhtml</param-value>
  |     </context-param>
  | 
  | 
  | <!-- FaceletViewHandler configuration -->
  | <context-param>
  |   <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
  |   <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
  | </context-param>
  | 
  |   <filter>
  |     <filter-name>trinidad</filter-name>
  |     <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
  |   </filter>
  | 
  | 
  |     <filter>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  |     </filter>
  | 
  |     <filter>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
  |     </filter>
  | 
  | 
  |   <filter-mapping>
  |     <filter-name>trinidad</filter-name>
  |     <servlet-name>faces</servlet-name>
  |   </filter-mapping>
  | 
  |     <filter-mapping>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <url-pattern>/*</url-pattern>
  |     </filter-mapping>
  |     
  |     <filter-mapping>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </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>QuartzInitializer</servlet-name>
  | 		 <servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
  | 		
  | 		 <init-param>
  | 		   <param-name>config-file</param-name>
  | 		   <param-value>quartz-nrg2.properties</param-value>
  | 		 </init-param>
  | 		
  | 		 <init-param>
  | 		   <param-name>shutdown-on-unload</param-name>
  | 		   <param-value>true</param-value>
  | 		 </init-param>
  | 		
  | 		 <init-param>
  | 		   <param-name>start-scheduler-on-load</param-name>
  | 		   <param-value>true</param-value>
  | 		 </init-param>
  | 		 <load-on-startup>1</load-on-startup>
  | 	</servlet>
  |      
  |   <!-- resource loader servlet -->
  |   <servlet>
  |     <servlet-name>resources</servlet-name>
  |     <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
  |   </servlet>
  |   
  |    
  |   <servlet-mapping>
  |     <servlet-name>resources</servlet-name>
  |     <url-pattern>/adf/*</url-pattern>
  |   </servlet-mapping>
  |     
  |     <servlet-mapping>
  |         <servlet-name>faces</servlet-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping>  
  |     
  |    ..........security stuff............
  |                    
  | </web-app>

Is there a guide anywhere to getting started on Trinidad with Seam and Facelets? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993772#3993772

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993772



More information about the jboss-user mailing list