FW: Specifying jspwiki.propertyfile in JBOSS

"Evan Lennick" <[email protected]> Tue, 11 Sep 2007 13:46:48 -0400
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <0D5A3676456F4A49B774CE693DF20C600195A3B0@camexch02.int.gestalt-llc.com>
I have been trying to use the server.xml file in JBOSS to specify where
the container should look for my jspwiki.properties file by specifying
the jspwiki.propertyfile value. This seems to work alright at first but
then blows up telling me something about a "WikiBackgroundThread"
blowing up. This isn't very specific and I'm not really sure what is
going on... Here are some excerpts of the logging:

 

11:12:24,421 INFO  [[/wiki]]  Assigning new engine to 13298201

11:12:24,421 INFO  [[/wiki]] Reading properties from
C:/MapWiki/jspwiki.properties instead of default.

 

Which looks promising, until....

 

11:12:36,609 INFO  [WikiServlet] WikiServlet shutdown.

11:12:36,609 INFO  [WikiBackgroundThread] Detected wiki engine shutdown:
killing JSPWiki Lucene Indexer.

11:12:36,609 INFO  [WikiBackgroundThread] Detected wiki engine shutdown:
killing WatchDog for 'TestMapWiki'.

11:12:37,703 ERROR [WikiBackgroundThread] Background thread error

java.lang.NullPointerException

        at com.ecyrd.jspwiki.util.WatchDog.scrub(WatchDog.java:135)

        at com.ecyrd.jspwiki.util.WatchDog.access$000(WatchDog.java:50)

        at
com.ecyrd.jspwiki.util.WatchDog$WatchDogThread.shutdownTask(WatchDog.jav
a:355)

        at
com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.jav
a:168)

11:12:37,703 ERROR [STDERR] Exception in thread "WatchDog for
'TestMapWiki'"

11:12:37,703 ERROR [STDERR] com.ecyrd.jspwiki.InternalWikiException

11:12:37,703 ERROR [STDERR]     at
com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.jav
a:173)

11:12:37,812 INFO  [[/wiki]]  Assigning new engine to 6702844

11:12:37,812 INFO  [[/wiki]] No jspwiki.propertyfile defined for this
context, using default from /WEB-INF/jspwiki.properties

 

It is finding the new properties file fine and then blowing up and going
back and retrieving the default jspwiki.properties from WEB-INF. Anyone
have any ideas why? Thanks!

 

-Evan

 

 

 

 

----------------------------------

Evan Lennick

[email protected] <mailto:[email protected]> 

(610) 994-2848