When compiling department app, I get long list of errors like the following on compilation of generated java code:

/Users/eelcovisser/workspace/department/.servletapp/src-generated/department/beans/AccessDeniedPage.java:271: set(utils.PageServlet) in utils.ThreadLocalPage cannot be applied to (utils.AbstractPageServlet)
ThreadLocalPage.set(ps);
               ^
/Users/eelcovisser/workspace/department/.servletapp/src-generated/department/beans/AddPartnerPage.java:272: set(utils.PageServlet) in utils.ThreadLocalPage cannot be applied to (utils.AbstractPageServlet)
ThreadLocalPage.set(ps);
               ^
/Users/eelcovisser/workspace/department/.servletapp/src-generated/department/beans/AdminPage.java:271: set(utils.PageServlet) in utils.ThreadLocalPage cannot be applied to (utils.AbstractPageServlet)
ThreadLocalPage.set(ps);
               ^

Note that I use the Stratego/C-based WebDSL compiler

URL: https://svn.strategoxt.org/repos/WebDSL/webdsls/trunk/src
Repository Root: https://svn.strategoxt.org/repos/WebDSL
Revision: 3801
Submitted by Eelco Visser on 1 April 2010 at 16:58

On 1 April 2010 at 17:50 Nathan Bruning commented:

This has to do with an old template file not being removed from the template directory.
Makefile should cleanup unwanted files from the template installation directory, maybe just executing a rm -rf.

Workaround:

  • clean webdsl template directory
    • rm -rf /usr/local/share/webdsl/template-java-servlet
  • re-install webdsl
    • cd ~/webdsl-checkout && make install

On 1 April 2010 at 18:27 Eelco Visser commented:

Problem caused by incomplete build of WebDSL; fixed.


On 2 April 2010 at 12:49 Nathan Bruning commented:

I would say this is not fixed; a complete clean & build of webdsl will not remove dangling template files from the installation directory.

Log in to post comments