tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hehl, Thomas" <Thomas.H...@acs-inc.com>
Subject Struts-Tiles 1 to tiles 2
Date Fri, 22 Feb 2008 16:20:16 GMT
I am migrating my app from struts 1 to Spring MVC 2.5. As part of that, I'm
migrating tiles and running it for the first time outside of struts.

 

I am encountering an issue when I start my tomcat server:

 

10126 INFO  org.springframework.web.servlet.view.tiles2.TilesConfigurer |
TilesC

onfigurer: adding definitions [/WEB-INF/conf/tiles.xml]

10142 INFO  org.apache.tiles.impl.BasicTilesContainer | Initializing Tiles2
cont

ainer. . .

10142 DEBUG org.apache.tiles.impl.BasicTilesContainer | Adding resource
'jndi:/l

ocalhost/ejuror/WEB-INF/conf/tiles.xml' to definitions factory.

10235 ERROR org.apache.commons.digester.Digester | Parse Error at line 14
column

 39: Element type "put" must be declared.

org.xml.sax.SAXParseException: Element type "put" must be declared.

        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX

ParseException(ErrorHandlerWrapper.java:236)

        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err

orHandlerWrapper.java:172)

        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(

XMLErrorReporter.java:382)

        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(

XMLErrorReporter.java:316)

        at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleSta

rtElement(XMLDTDValidator.java:1960)

        at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElem

ent(XMLDTDValidator.java:816)

        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan

StartElement(XMLNSDocumentScannerImpl.java:322)

...

 

I copied the code from the config in the docs, so my config looks like this:

 

<?xml version="1.0" encoding="ISO-8859-1" ?>

 

<!DOCTYPE tiles-definitions PUBLIC

       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"

       "http://struts.apache.org/dtds/tiles-config_2_0.dtd">

 

<tiles-definitions>

 

  <!-- =======================================================  -->

  <!-- Master definitions
-->

  <!-- =======================================================  -->

 

  <definition name=".baseDef" template="/WEB-INF/view/_mainLayout.jsp">

      <put name="titleKey"    value="" />

      <put name="welcomeKey" value=""/>

      

      <put name="header"      value="/WEB-INF/view/default_Header.jsp" />

      <put name="menu"        value="/WEB-INF/view/main_Menu.jsp" />

      <put name="body"        value="/WEB-INF/view/default_Body.jsp" />

      <put name="footer"      value="/WEB-INF/view/default_Footer.jsp" />

  </definition>

  

 

  <definition name=".login" extends=".baseDef">

      <put name="titleKey"    value="eJuror.page.logout.title" />

      <put name="welcomeKey" value="logout.welcome"/>

      <put name="menu"        value="/WEB-INF/view/logout_Menu.jsp" />

      <put name="body"              value="/WEB-INF/view/login.jsp"/>

  </definition>

 

 

Line 14 is the first put under .baseDef. Any ideas?

 

Thanks.

 

Thom Hehl
Sr. eJuror Architect

* Office (859) 277-8800 x 144

* Thomas.Hehl@acs-inc.com <mailto:Thomas.Hehl@acs-inc.com>  
ACS, Inc.

Government Solutions

1733 Harrodsburg Road
Lexington, KY 40504-3617

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message and notify
sender via e-mail at Thomas.Hehl@acs-inc.com
<mailto:Thomas.Hehl@acs-inc.com>  or by telephone at 859-277-8800 ext. 144.
Thank you.

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message