Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

tiles definition error, maping .(dot) error

Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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" />
Did you just should on me? You should read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic