[jboss-user] [JBoss Seam] - Re: Null pointer rendering mail from @Startup component - se

javabr do-not-reply at jboss.com
Tue May 22 19:29:35 EDT 2007


of course,

Follow my config files:

components.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <components xmlns="http://jboss.com/products/seam/components"
  | 	xmlns:core="http://jboss.com/products/seam/core"
  | 	xmlns:web="http://jboss.com/products/seam/web"
  | 	xmlns:drools="http://jboss.com/products/seam/drools"
  | 	xmlns:security="http://jboss.com/products/seam/security"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xmlns:mail="http://jboss.com/products/seam/mail"
  | 	xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.3.xsd 
  |                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.3.xsd
  |                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.3.xsd
  |                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.3.xsd
  |                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.3.xsd">
  | 
  | 	<core:init debug="true" jndi-pattern="@jndiPattern@" />
  | 
  | 	<core:manager concurrent-request-timeout="500"
  | 		conversation-timeout="120000" conversation-id-parameter="cid"
  | 		conversation-is-long-running-parameter="clr" />
  | 
  | 	<core:managed-persistence-context name="entityManager"
  | 		auto-create="true"
  | 		persistence-unit-jndi-name="java:/etaskEntityManagerFactory" />
  | 
  | 	<core:ejb installed="@embeddedEjb@" />
  | 
  | 	<drools:rule-base name="securityRules">
  | 		<drools:rule-files>
  | 			<value>/security.drl</value>
  | 		</drools:rule-files>
  | 	</drools:rule-base>
  | 
  | 	<security:identity
  | 		authenticate-method="#{authenticator.authenticate}"
  | 		security-rules="#{securityRules}" remember-me="true" />
  | 
  | 	<event type="org.jboss.seam.notLoggedIn">
  | 		<action expression="#{redirect.captureCurrentView}" />
  | 	</event>
  | 	<event type="org.jboss.seam.postAuthenticate">
  | 		<action expression="#{redirect.returnToCapturedView}" />
  | 	</event>
  | 
  | 	<web:multipart-filter create-temp-files="true"
  | 		max-request-size="100000000" url-pattern="*.seam" />
  | 
  | 	<mail:mail-session session-jndi-name="java:/Mail" />
  | 
  | 	<mail:mail-session host="mail.bittecnologia.com" />
  | 
  | 	<core:resource-bundle>
  | 		<core:bundle-names>
  | 			<value>messages</value>
  | 		</core:bundle-names>
  | 	</core:resource-bundle>
  | 
  | 	<core:dispatcher />
  | 
  | 	<component name="org.jboss.seam.ui.entityConverter">
  | 		<property name="entityManager">#{em}</property>
  | 	</component>
  | 
  | </components>
  | 


Relevant faces-config.xml

  | <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
  | 
  | 	<application>
  | 		<el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
  | 		<message-bundle>messages</message-bundle>
  | 		<default-render-kit-id>
  | 			org.apache.myfaces.trinidad.core
  | 		</default-render-kit-id>
  | 	</application>
  | 
  | 	<lifecycle>
  | 		<phase-listener>
  | 			org.jboss.seam.jsf.TransactionalSeamPhaseListener
  | 		</phase-listener>
  | 	</lifecycle>
  | 
  | 	<converter>
  | 		<converter-id>actorGroupConverter</converter-id>
  | 		<converter-class>
  | 			org.bit.etask.converter.ActorGroupConverter
  | 		</converter-class>
  | 	</converter>
  | ... follow just converters..
  | 


web.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <web-app version="2.5" 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_5.xsd">
  | 
  | 	<description>workflow for everything</description>
  | 	<display-name>eTask</display-name>
  | 
  | 	<filter>
  | 		<filter-name>ajax4jsf</filter-name>
  | 		<filter-class>org.ajax4jsf.Filter</filter-class>
  | 	</filter>
  | 
  | 	<filter-mapping>
  | 		<filter-name>ajax4jsf</filter-name>
  | 		<url-pattern>*.seam</url-pattern>
  | 		<dispatcher>REQUEST</dispatcher>
  | 		<dispatcher>FORWARD</dispatcher>
  | 		<dispatcher>INCLUDE</dispatcher>
  | 	</filter-mapping>
  | 
  | 	<context-param>
  | 		<param-name>org.ajax4jsf.SKIN</param-name>
  | 		<param-value>blueSky</param-value>
  | 	</context-param>
  | 
  | 
  | 	<listener>
  | 		<listener-class>
  | 			org.jboss.seam.servlet.SeamListener
  | 		</listener-class>
  | 	</listener>
  | 
  | 	<filter>
  | 		<filter-name>Seam Filter</filter-name>
  | 		<filter-class>org.jboss.seam.web.SeamFilter</filter-class>
  | 	</filter>
  | 
  | 	<filter-mapping>
  | 		<filter-name>Seam Filter</filter-name>
  | 		<url-pattern>/*</url-pattern>
  | 	</filter-mapping>
  | 
  | 	<servlet>
  | 		<servlet-name>Seam Resource Servlet</servlet-name>
  | 		<servlet-class>
  | 			org.jboss.seam.servlet.ResourceServlet
  | 		</servlet-class>
  | 	</servlet>
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>Seam Resource Servlet</servlet-name>
  | 		<url-pattern>/seam/resource/*</url-pattern>
  | 	</servlet-mapping>
  | 
  | 	<context-param>
  | 		<param-name>facelets.DEVELOPMENT</param-name>
  | 		<param-value>true</param-value>
  | 	</context-param>
  | 
  | 	<context-param>
  | 		<param-name>facelets.LIBRARIES</param-name>
  | 		<param-value>
  | 			/WEB-INF/creator.taglib.xml;/WEB-INF/bit.taglib.xml
  | 		</param-value>
  | 	</context-param>
  | 
  | 	<context-param>
  | 		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  | 		<param-value>server</param-value>
  | 	</context-param>
  | 
  | 	<context-param>
  | 		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  | 		<param-value>.xhtml</param-value>
  | 	</context-param>
  | 
  | 	<servlet>
  | 		<servlet-name>ThemeServlet</servlet-name>
  | 		<servlet-class>
  | 			com.sun.rave.web.ui.theme.ThemeServlet
  | 		</servlet-class>
  | 	</servlet>
  | 
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>ThemeServlet</servlet-name>
  | 		<url-pattern>/etask/theme/*</url-pattern>
  | 	</servlet-mapping>
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>ThemeServlet</servlet-name>
  | 		<url-pattern>/theme/*</url-pattern>
  | 	</servlet-mapping>
  | 
  | 	<servlet>
  | 		<servlet-name>Faces Servlet</servlet-name>
  | 		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  | 		<load-on-startup>1</load-on-startup>
  | 	</servlet>
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>Faces Servlet</servlet-name>
  | 		<url-pattern>*.seam</url-pattern>
  | 	</servlet-mapping>
  | 
  | 	<session-config>
  | 		<session-timeout>120</session-timeout>
  | 	</session-config>
  | 	<security-constraint>
  | 		<display-name>Restrict raw XHTML Documents</display-name>
  | 		<web-resource-collection>
  | 			<web-resource-name>XHTML</web-resource-name>
  | 			<url-pattern>*.xhtml</url-pattern>
  | 		</web-resource-collection>
  | 		<auth-constraint>
  | 			<role-name>NONE</role-name>
  | 		</auth-constraint>
  | 	</security-constraint>
  | 
  | 	<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-mapping>
  | 		<filter-name>Trinidad</filter-name>
  | 		<url-pattern>*.seam</url-pattern>
  | 	</filter-mapping>
  | 
  | 	<servlet>
  | 		<servlet-name>Trinidad Resources</servlet-name>
  | 		<servlet-class>
  | 			org.apache.myfaces.trinidad.webapp.ResourceServlet
  | 		</servlet-class>
  | 	</servlet>
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>Trinidad Resources</servlet-name>
  | 		<url-pattern>/adf/*</url-pattern>
  | 	</servlet-mapping>
  | </web-app>
  | 
  | 

Rgds
Leo

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

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



More information about the jboss-user mailing list