This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes tiles definition error, maping .(dot) error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles definition error, maping .(dot) error" Watch "tiles definition error, maping .(dot) error" New topic

tiles definition error, maping .(dot) error

Bruno Korcinski

Joined: Jun 03, 2003
Posts: 16
Hi guys,
for some reason I'm getting error when I tried to run tiles from tiles-defs.xml config file....
java.lang.IllegalArgumentException: Path .testcentreLayout does not start with a "/" character
I checked and correct everything and I cant move on with the tiles...
It seems that .testcentreLAyout definition wants the servlet solve as regular file...I have check web.xml for init definitions,servlet-config for plugin tiles...tiles-defs for correcrt syntax...and I'm lost....
the error is created when action is forwarded to .testcentreLayout
thanks for ideas...
<definition name=".testcentreLayout" path="/pages_jsp/common/layouts/test_centre_layout.jsp">
<put name="header" value="/pages_jsp/common/header.jsp" />
<put name="footer" value="/pages_jsp/common/footer.jsp" />
***********************error from console***********************************
19:29:01,985 INFO [Engine] action: Processing a GET for /Welcome
19:29:02,045 INFO [Engine] action: Setting locale 'en_CA'
19:29:02,045 INFO [Engine] action: Looking for ActionForm bean under attribute 'app.pokusForm'
19:29:02,045 INFO [Engine] action: Looking for Action instance for class app.pokus
19:29:02,055 INFO [Engine] action: Double checking for Action instance already there
19:29:02,055 INFO [Engine] action: Creating new Action instance
19:29:02,055 INFO [STDOUT] from pokus classsssssssssss
19:29:02,055 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: Path .testcentreLayout does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(
at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(
<!-- Standard Struts configuration -->
<!-- servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class -->
<!-- makes request scope the default -->
<!-- Tiles parameters -->
<!-- Startup priority -->

type="app.pokus" >
<forward name="success" path=".testcentreLayout" />
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-debug" value="1" />
<set-property property="definitions-parser-details" value="0" />
<set-property property="definitions-parser-validate" value="true" />
Don't get me started about those stupid light bulbs.
subject: tiles definition error, maping .(dot) error
jQuery in Action, 3rd edition