You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Rick Carback (JIRA)" <ji...@apache.org> on 2009/01/14 15:41:45 UTC

[jira] Created: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
---------------------------------------------------------------

                 Key: TILES-350
                 URL: https://issues.apache.org/struts/browse/TILES-350
             Project: Tiles
          Issue Type: Bug
          Components: tiles-servlet
    Affects Versions: 2.0.7
         Environment: Geronimo v2.1, Tiles 2.0.7
            Reporter: Rick Carback
            Priority: Minor


See thread:

http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E

I was playing around with the
tutorial example, and I kept getting "javax.servlet.jsp.JspException:
TilesContainer not initialized." I've got it working (by opening up
the sample .war file that comes with tiles, and copy and pasting
things around until I got something working then removing things until
I got it to break again), but I want to know why this worked. I
originally had followed the tutorial here:

http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html

It was my understanding that my web.xml needed to include something
like this to get tiles to work:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
  <display-name>my-tiles-test</display-name>

    <!-- Standard Action Servlet Configuration -->
    <servlet>
        <servlet-name>tiles</servlet-name>
        <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
        <init-param>
            <param-name>definitions-config</param-name>
            <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
</web-app>

Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
not initialized error, and the only thing relevant I found in the list
archives was:

http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E

Looked into the jar, verified that the path was right. Then I tried
the .war file, and it worked, so I then proceeded as mentioned
earlier. I ended up fixing it with this web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
  <display-name>my-tiles-test</display-name>

    <!-- Standard Action Servlet Configuration -->
    <servlet>
        <servlet-name>tiles</servlet-name>
        <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
        <init-param>
            <param-name>definitions-config</param-name>
            <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>

    <servlet>
        <servlet-name>Tiles Dispatch Servlet</servlet-name>
        <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>Tiles Dispatch Servlet</servlet-name>
        <url-pattern>*.tiles</url-pattern>
    </servlet-mapping>
</web-app>


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


[jira] Commented: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45471#action_45471 ] 

Antonio Petrelli commented on TILES-350:
----------------------------------------

I think it is a container issue.
If you add this stupid servlet mapping:

    <servlet-mapping>
      <servlet-name>tiles</servlet-name>
      <url-pattern>/*blahblah</url-pattern>
    </servlet-mapping>

it seems to work. Try and let me know.

> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Closed: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

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

Antonio Petrelli closed TILES-350.
----------------------------------

    Resolution: Won't Fix

Closed since this is a Geronimo bug, that does not run a servlet if there is not at least one servlet mapping.

> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Commented: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

Posted by "Rick Carback (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45474#action_45474 ] 

Rick Carback commented on TILES-350:
------------------------------------

This worked, thanks for your time:

    <servlet-mapping>
        <servlet-name>tiles</servlet-name>
        <url-pattern>*.dummy</url-pattern>
    </servlet-mapping>

-R

On Wed, Jan 14, 2009 at 11:11 AM, Antonio Petrelli (JIRA)



> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Updated: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

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

Rick Carback updated TILES-350:
-------------------------------

    Attachment: my-tiles-test.war

This works in geronimo, but when you remove dispatch from web.xml, this project fails to work in geronimo.


> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Commented: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45472#action_45472 ] 

Antonio Petrelli commented on TILES-350:
----------------------------------------

Moreover try to use Geronimo+Tomcat instead of Geronimo+Jetty.

> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Commented: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45470#action_45470 ] 

Antonio Petrelli commented on TILES-350:
----------------------------------------

The war works under Tomcat 6.0.18 and Jetty 6.1.
Under Geronimo 2.1.3 it does not work. Curious...

> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Commented: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45473#action_45473 ] 

Antonio Petrelli commented on TILES-350:
----------------------------------------

Tried with Jetty 6.1.7 (the one used by Geronimo 2.1.3) and 6.1.9 and it works.
So I think this is an issue with Geronimo itself.

Rick, I think this is a Geronimo issue, so please contact them.
Feel free to refer to this JIRA issue and to the mailing list thread.

> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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


[jira] Updated: (TILES-350) Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7

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

Rick Carback updated TILES-350:
-------------------------------

    Attachment: withoutDispatch-geronimo.log
                withDispatch-geronimo.log

Adding dispatch in makes the code work. None of the code is using the dispatch to my knowledge (because it's a copy/paste of the example tutorial that simply uses the classic.jsp which includes other .jsps).

I attached the log file captures for both with and without the classic. Any ideas? It seems that you need dispatch to get it to work (with geronimo v2.1) even if you aren't using dispatch..then again, maybe i'm using dispatch and not realizing it.. Would using dispatch cause a "TilesContainer not initialized" error if it were not included in web.xml? Note that in both logs Tiles2 initialization completes.

> Geronimo v2.1 Requires DispatchServlet to Bootstrap Tiles 2.0.7
> ---------------------------------------------------------------
>
>                 Key: TILES-350
>                 URL: https://issues.apache.org/struts/browse/TILES-350
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-servlet
>    Affects Versions: 2.0.7
>         Environment: Geronimo v2.1, Tiles 2.0.7
>            Reporter: Rick Carback
>            Priority: Minor
>         Attachments: my-tiles-test.war, withDispatch-geronimo.log, withoutDispatch-geronimo.log
>
>
> See thread:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200901.mbox/%3C61056b9d0901131023s79176a86td392a0481f750307@mail.gmail.com%3E
> I was playing around with the
> tutorial example, and I kept getting "javax.servlet.jsp.JspException:
> TilesContainer not initialized." I've got it working (by opening up
> the sample .war file that comes with tiles, and copy and pasting
> things around until I got something working then removing things until
> I got it to break again), but I want to know why this worked. I
> originally had followed the tutorial here:
> http://tiles.apache.org/2.0/framework/tutorial/basic/pages.html
> It was my understanding that my web.xml needed to include something
> like this to get tiles to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> </web-app>
> Doing that, I got the javax.servlet.jsp.JspException: TilesContainer
> not initialized error, and the only thing relevant I found in the list
> archives was:
> http://mail-archives.apache.org/mod_mbox/tiles-users/200802.mbox/%3Caae96ca0802191044t76fa981brf97da2cff20515d9@mail.gmail.com%3E
> Looked into the jar, verified that the path was right. Then I tried
> the .war file, and it worked, so I then proceeded as mentioned
> earlier. I ended up fixing it with this web.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>my-tiles-test</display-name>
>     <!-- Standard Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>tiles</servlet-name>
>         <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
>         <init-param>
>             <param-name>definitions-config</param-name>
>             <param-value>/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Tiles Dispatch Servlet</servlet-name>
>         <url-pattern>*.tiles</url-pattern>
>     </servlet-mapping>
> </web-app>

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