You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Gavin Hsu (JIRA)" <ji...@apache.org> on 2007/06/08 06:26:29 UTC

[jira] Created: (STR-3050) Cannot deploy on Weblogic with struts-tiles plugin

Cannot deploy on Weblogic with struts-tiles plugin
--------------------------------------------------

                 Key: STR-3050
                 URL: https://issues.apache.org/struts/browse/STR-3050
             Project: Struts 1
          Issue Type: Bug
    Affects Versions: 1.1 Final
         Environment: Windows XP SP2, WebLogic 8.1, My Eclipse 5.0 + Eclipse 3.2, Struts 1.1
            Reporter: Gavin Hsu


The exception occured once when I deploy my project on Weblogic with struts-tiles plugin:

2007-6-7 17:11:44 org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping
Info: Tiles definition factory found for request processor ''.
2007-6-7 17:11:44 org.apache.struts.util.PropertyMessageResources <init>
Info: Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true

----------------------------------------
web.xml:
----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" 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">
	<servlet>
	    <servlet-name>action</servlet-name>
	    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
	    <init-param>
	      <param-name>config</param-name>
	      <param-value>/WEB-INF/struts-config.xml</param-value>
	    </init-param>
	    <init-param>
	      <param-name>debug</param-name>
	      <param-value>3</param-value>
	    </init-param>
	    <init-param>
	      <param-name>detail</param-name>
	      <param-value>3</param-value>
	    </init-param>
	    <load-on-startup>0</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
	<jsp-config>
		<taglib>
			<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
			<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
		</taglib>
	</jsp-config>
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
</web-app>

----------------------------------------
struts-config.xml:
----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>
  <data-sources />
  <form-beans />
  <global-exceptions />
  <global-forwards />
  <action-mappings>
  	<action path="/index" type="org.apache.struts.actions.ForwardAction" parameter="index-def"></action>
  </action-mappings>
  <message-resources parameter="com.strutsweb.struts.ApplicationResources" />
  
  <!-- Tiles plugin setup -->
  <plug-in className="org.apache.struts.tiles.TilesPlugin">
  	<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
  	<set-property property="definitions-parse-validate" value="true"/>
  </plug-in>
</struts-config>

----------------------------------------
tiles-defs.xml:
----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd"> 
<tiles-definitions>
	<definition name="base-def" path="layout.jsp">
		<put name="header" value="header.html"/>
		<put name="menu" value="menu.html"/>
		<put name="content" value=""/>
		<put name="footer" value="footer.html"/>
	</definition>
	
	<definition name="index-def" path="layout.jsp">
		<put name="header" value="header.html"/>
		<put name="menu" value="menu.html"/>
		<put name="content" value="content.html"/>
		<put name="footer" value="footer.html"/>
	</definition>
</tiles-definitions>

This issue had confused me couple of days, begging for your quickly response.
Thanks very much!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STR-3050) Cannot deploy on Weblogic with struts-tiles plugin

Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/STR-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict closed STR-3050.
------------------------------

    Resolution: Incomplete

> Cannot deploy on Weblogic with struts-tiles plugin
> --------------------------------------------------
>
>                 Key: STR-3050
>                 URL: https://issues.apache.org/struts/browse/STR-3050
>             Project: Struts 1
>          Issue Type: Bug
>    Affects Versions: 1.1 Final
>         Environment: Windows XP SP2, WebLogic 8.1, My Eclipse 5.0 + Eclipse 3.2, Struts 1.1
>            Reporter: Gavin Hsu
>
> The exception occured once when I deploy my project on Weblogic with struts-tiles plugin:
> 2007-6-7 17:11:44 org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping
> Info: Tiles definition factory found for request processor ''.
> 2007-6-7 17:11:44 org.apache.struts.util.PropertyMessageResources <init>
> Info: Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
> ----------------------------------------
> web.xml:
> ----------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.4" 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">
> 	<servlet>
> 	    <servlet-name>action</servlet-name>
> 	    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> 	    <init-param>
> 	      <param-name>config</param-name>
> 	      <param-value>/WEB-INF/struts-config.xml</param-value>
> 	    </init-param>
> 	    <init-param>
> 	      <param-name>debug</param-name>
> 	      <param-value>3</param-value>
> 	    </init-param>
> 	    <init-param>
> 	      <param-name>detail</param-name>
> 	      <param-value>3</param-value>
> 	    </init-param>
> 	    <load-on-startup>0</load-on-startup>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>action</servlet-name>
> 		<url-pattern>*.do</url-pattern>
> 	</servlet-mapping>
> 	<jsp-config>
> 		<taglib>
> 			<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
> 			<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
> 		</taglib>
> 	</jsp-config>
> 	<welcome-file-list>
> 		<welcome-file>index.jsp</welcome-file>
> 	</welcome-file-list>
> </web-app>
> ----------------------------------------
> struts-config.xml:
> ----------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
> <struts-config>
>   <data-sources />
>   <form-beans />
>   <global-exceptions />
>   <global-forwards />
>   <action-mappings>
>   	<action path="/index" type="org.apache.struts.actions.ForwardAction" parameter="index-def"></action>
>   </action-mappings>
>   <message-resources parameter="com.strutsweb.struts.ApplicationResources" />
>   
>   <!-- Tiles plugin setup -->
>   <plug-in className="org.apache.struts.tiles.TilesPlugin">
>   	<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
>   	<set-property property="definitions-parse-validate" value="true"/>
>   </plug-in>
> </struts-config>
> ----------------------------------------
> tiles-defs.xml:
> ----------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd"> 
> <tiles-definitions>
> 	<definition name="base-def" path="layout.jsp">
> 		<put name="header" value="header.html"/>
> 		<put name="menu" value="menu.html"/>
> 		<put name="content" value=""/>
> 		<put name="footer" value="footer.html"/>
> 	</definition>
> 	
> 	<definition name="index-def" path="layout.jsp">
> 		<put name="header" value="header.html"/>
> 		<put name="menu" value="menu.html"/>
> 		<put name="content" value="content.html"/>
> 		<put name="footer" value="footer.html"/>
> 	</definition>
> </tiles-definitions>
> This issue had confused me couple of days, begging for your quickly response.
> Thanks very much!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.