struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Reiser" <florian_rei...@gmx.de>
Subject Action Servlet blocking jboss?
Date Tue, 28 Aug 2007 07:29:12 GMT
Hello,

I want to use struts-tiles for templating in following environment.
Struts-1.3.8
Trinidad-1.0.1
Tomahawk-1.1.6
Sun RI-1.2
JBoss 4.2

When I start jboss-4.2 the last protocol line shown is:
[Action Servlet] "Loading action chain from <jar-file>"

JBoss itself never finishes starting.
What have I done wrong?

With kind regards
Florian Reiser

excerpt from /WEB-INF/web.xml:
	<context-param>
		<param-name>tiles-definitions</param-name>
		<param-value>/WEB-INF/tiles-defs.xml</param-value>
	</context-param>
	<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>*.jsf</url-pattern>
	</servlet-mapping>
	<servlet>
		<servlet-name>Struts Action Servlet</servlet-name>
		<servlet-class>
			org.apache.struts.action.ActionServlet
		</servlet-class>
		<init-param>
			<param-name>definitions-config</param-name>
			<param-value>/WEB-INF/struts-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>chainConfig</param-name>
			<param-value>
				org/apache/struts/tiles/chain-config.xml
			</param-value>
		</init-param>
		<init-param>
			<param-name>definitions-parser-validate</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>Struts Action Servlet</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
	<filter>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<filter-class>
			org.apache.myfaces.webapp.filter.ExtensionsFilter
		</filter-class>
		<init-param>
			<param-name>maxFileSize</param-name>
			<param-value>20m</param-value>
		</init-param>
	</filter>

	<!-- extension mapping for adding <script/>, <link/>, and other resource tags
to JSF-pages  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>

	<!-- extension mapping for serving page-independent resources (javascript, stylesheets,
images, etc.)  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
	</filter-mapping>
	<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>*.jsf</url-pattern>
	</filter-mapping>

	<servlet>
		<servlet-name>Trinidad Resources</servlet-name>
		<servlet-class>
			org.apache.myfaces.trinidad.webapp.ResourceServlet
		</servlet-class>
	</servlet>

	<!-- This cannot be configured currently -->
	<servlet-mapping>
		<servlet-name>Trinidad Resources</servlet-name>
		<url-pattern>/adf/*</url-pattern>
	</servlet-mapping>

/WEB-INF/struts-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
          "http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
	<controller>
		<set-property property="processorClass"
			value="org.apache.struts.faces.application.FacesTilesRequestProcessor" />
	</controller>
	<plug-in className="org.apache.struts.tiles.TilesPlugin">
		<set-property property="definitions-config"
			value="/WEB-INF/tiles-defs.xml" />
	</plug-in>
</struts-config>

/WEB-INF/tiles-defs.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration//EN"
  "http://jakarta.apache.org/struts/dtds/tiles-config_1_3.dtd">
<tiles-definitions>
	<definition name="buerkertTemplate"
		path="/includes/template.jsp">
		<put name="content" value="Sample content"/>
	</definition>
</tiles-definitions>

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message