There are plenty of such projects, some more, some less powerful:
http://java-source.net/open-source/wiki-engines Friki is the one being used here at JavaRanch. If I were to choose one as the basis for an application, I'd probably use XWiki.
[ September 10, 2008: Message edited by: Ulf Dittmer ]