Ok -- I will hold off on running WARs for a bit. Plenty of other work
to do, like refactoring scriptlet code into ActionBeans... :)
On Feb 10, 2009, at 5:25, Janne Jalkanen <[email protected]> wrote:
JSPWiki won't start properly when deployed as a WAR. ContentManager
is
failing to initialize(). This line is the one causing problems:
id = m_sessionManager.createSession();
I suspect that this relates somehow to how Priha initializes. I
attempted to follow a debug trace and it seemed to fail somewhere
inside of login(). But I don't have the Priha source handy and don't
know for sure. I don't have the desire to check out source tonight to
investigate further. So, Janne, any quick and easy solutions that
would help with this?
Yup. Disable that line, or prevent initialization of ContentManager
in the first place. The current SVN does not use it for anything else
except unit tests.
I *think* the reason is probably that Priha can't find all it needs
from the classpath, or that I've screwed something with respect to
resource loading. It's probably no biggie, but I haven't tested WAR
deployments yet.
The current ContentManager does not work anyway because of the
discussion we've had previously on the session management. It
actually returns invalid WikiPage objects at the moment.
FYI, the Priha source code is at http://svn.ecyrd.com/repos/priha/,
and it's Apache-licensed.
/Janne