I’m trying to add pages written with Tapestry5 to a web application written with Tapestry 4 on Apache Tomcat. Assuming I have the necessary jars in $tomcat/shared/lib.
I made a basic form template and corresponding java class to test with, following the example here, then replaced an existing html file with the new one, but I’m getting stuck with a DocumentParseException caused by the page specification (.page) file having an “unexpected public id of ‘-//Apache Software Foundation//Tapestry Specification 5.3//EN'” whenever I try to access the page through tomcat. If I change that line in the page specification file back to “Tapestry Specification 4.0//EN” I get a different exception saying I need to implement the IPage interface in the java class.
This is my first time working on a project involving Tapestry and I couldn’t find anything online specific to this issue so any help would be appreciated.
I have done that for a legacy application and the process took about 3 months to have the all services migrated and the first pages running. Here’s an overview. I cannot post code for various reasons.
You can use PageRenderLinkSource for t5 links and the external service for t4.
If your codebase is not large or extremely complex it’s definately not worth it IMHO.