Hi,
I am migrating a working application based on JDBC/Struts/Tiles to a new workspace, using JPA/Struts/Tiles (switching from JDBC to JPA).
I’m not sure how this is related, but the Tiles forwards are not working any more, and Struts complains about them:
java.lang.IllegalArgumentException: Path tl.page.messaging.alertshistory does not start with a "/" character
The above dotted notation is a defined Tiles path.The Struts action definition:
<action
attribute="alertsHistoryForm"
input="tl.page.messaging.alertshistory"
name="alertsHistoryForm"
path="/alertsHistory"
scope="request"
type="com.tl.web.messaging.AlertsHistoryAction">
<forward name="success" path="tl.page.messaging.alertshistory" />
<forward name="failure" path="tl.page.messaging.alertshistory" />
</action>
A few points
This is working in my original workspace, not in the new one.
I’m using MyEclipse 6.0.1GA in both.
I use J2EE 1.4 Libraries in the working environment
I use Java EE 5 Libraries and Struts 1.3 Libraries in the new environment
I have read that when Tiles does not handle a path, it becomes a pass through and that is why Struts is complaining.
Why this new environment is not working?