You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Jim Willeke <ji...@willeke.com> on 2014/07/19 19:23:11 UTC

Re: JSPWiki will not Start

I have no idea where to go at this point.

So from a "stock" Apache tomcat7 installation Apache JSPWIKI no longer will
run.

You mention putting a log4j.properties file in tomcat's
webapps/JSPWiki/WEB-INF/classes directory.
What should be contained in this file?

Thanks for the help.


--
-jim
Jim Willeke


On Sun, May 18, 2014 at 12:58 PM, Harry Metske <ha...@gmail.com>
wrote:

> I think neither of these two is the case.
> The issue here is that you have a (tomcat) environment where you are not
> allowed to write to tomcat's lib directory, or you don't want configuration
> in that directory because you don't want these configs to apply to other
> (JSPWiki) applications running in the same tomcat.
> When you startup a vanilla JSPWiki it will try to log to jspwiki.log in the
> current directory, so depending on from where you start it, you will get
> the logfile or not. If the logfile cannot be created however, JSPWiki will
> still work (though you get an ugly stacktrace to stdout from log4j).
>
> Maybe there is one option left in this case, and that is putting a
> log4j.properties file in tomcat's webapps/JSPWiki/WEB-INF/classes
> directory.
>
> regards,
> Harry
>
>
>
> On 18 May 2014 17:42, Florian Holeczek <fl...@holeczek.de> wrote:
>
> > Hi there,
> >
> > two things come to my mind regarding the "standard" Tomcat coming with a
> > Linux distribution:
> >
> > * Is this Tomcat running with a security manager enabled? JSPWiki isn't
> > running under a security manager (i.e. without further configuration).
> > * Are advanced security modules like SELinux or AppArmor enabled in these
> > environments? If so, it may be that the Tomcat instance needs some
> further
> > configuration, especially regarding access to additional files like
> > jspwiki.log.
> >
> > Regards
> >  Florian
> >
>

Re: JSPWiki will not Start

Posted by Harry Metske <ha...@gmail.com>.
Jim,

you can find the answer here:
https://jspwiki-wiki.apache.org/Wiki.jsp?page=FAQ , the last question.

kind regards,
Harry
 Op 19 jul. 2014 19:24 schreef "Jim Willeke" <ji...@willeke.com>:

> I have no idea where to go at this point.
>
> So from a "stock" Apache tomcat7 installation Apache JSPWIKI no longer will
> run.
>
> You mention putting a log4j.properties file in tomcat's
> webapps/JSPWiki/WEB-INF/classes directory.
> What should be contained in this file?
>
> Thanks for the help.
>
>
> --
> -jim
> Jim Willeke
>
>
> On Sun, May 18, 2014 at 12:58 PM, Harry Metske <ha...@gmail.com>
> wrote:
>
> > I think neither of these two is the case.
> > The issue here is that you have a (tomcat) environment where you are not
> > allowed to write to tomcat's lib directory, or you don't want
> configuration
> > in that directory because you don't want these configs to apply to other
> > (JSPWiki) applications running in the same tomcat.
> > When you startup a vanilla JSPWiki it will try to log to jspwiki.log in
> the
> > current directory, so depending on from where you start it, you will get
> > the logfile or not. If the logfile cannot be created however, JSPWiki
> will
> > still work (though you get an ugly stacktrace to stdout from log4j).
> >
> > Maybe there is one option left in this case, and that is putting a
> > log4j.properties file in tomcat's webapps/JSPWiki/WEB-INF/classes
> > directory.
> >
> > regards,
> > Harry
> >
> >
> >
> > On 18 May 2014 17:42, Florian Holeczek <fl...@holeczek.de> wrote:
> >
> > > Hi there,
> > >
> > > two things come to my mind regarding the "standard" Tomcat coming with
> a
> > > Linux distribution:
> > >
> > > * Is this Tomcat running with a security manager enabled? JSPWiki isn't
> > > running under a security manager (i.e. without further configuration).
> > > * Are advanced security modules like SELinux or AppArmor enabled in
> these
> > > environments? If so, it may be that the Tomcat instance needs some
> > further
> > > configuration, especially regarding access to additional files like
> > > jspwiki.log.
> > >
> > > Regards
> > >  Florian
> > >
> >
>

Re: JSPWiki will not Start

Posted by Hassan Schroeder <ha...@webtuitive.com>.
On 7/19/14, 3:23 PM, Jim Willeke wrote:
> What is "ldapwiki.war"? Is that a standard JSPWiki.war renamed?
> ->Yes. Latest version 2.10.1.
>
> If this is a fresh install of Tomcat and JSPWiki, why are there
> "persisted sessions" being found?
> -> Fresh install of both. May have been stopped and started a couple of
> times.

OK, I dunno :-)

Since I was partway through provisioning a new server this week --
CentOS release 6.5 (Final) -- and have an unmodified Tomcat 7.0.54
on it as well, I just dropped in the JSPWiki 2.10.0 war.

Started up with no visible issues.

Is it possible you've got a disk going bad, and this is file system
corruption? At the WAG stage now :-)

At the very least, shut down, clean out your Tomcat temp directory
and start from scratch and see what's logged.

Also, maybe upgrade your JDK? The above installation is using java
version 1.7.0_60, and you originally said you were on 1.7.0_25-b30,
which is pretty old.

-- 
:about => about.me/hassanschroeder
:email  => hassan@webtuitive.com
:twitter => @hassan
:voice  => +1 408-621-3445

Re: JSPWiki will not Start

Posted by Harry Metske <ha...@gmail.com>.
On 20 July 2014 10:23, Jim Willeke <ji...@willeke.com> wrote:

> Is there somewhere in your environment you're setting an explicit
> CLASSPATH?
> ->No.
> su -c 'sh /usr/share/tomcat/bin/startup.sh' tomcat
> Using CATALINA_BASE:   /usr/share/tomcat
> Using CATALINA_HOME:   /usr/share/tomcat
> Using CATALINA_TMPDIR: /usr/share/tomcat/temp
> Using JRE_HOME:        /usr
> Using CLASSPATH:
> /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
>
> I AM deploying the default JSPWiki war.
> Then run the install.jsp which then displays something like your
> jspwiki-custom.properties is as follows:
> ....
>
> Does not say if it created it or if I should and I still do not know where
> it is expecting to find the file.
>
JSPWiki is loading the jspwiki-custom.properties file by loading it from
the classpath. The classpath can be different per webcontainer or appserver
you use, and also depends on how you configured it. The assumption is that
you (as the jspwiki installer) know what directories are on the classpath.
You should put the jspwiki-custom.properties file in one of those
directories.
In your Tomcat case that's  /usr/share/tomcat/lib or
/usr/share/tomcat/webapps/<wiki-webapp-name>/WEB-INF/classes.


>
>
> Latest attempt:
> /usr/share/tomcat/jspwiki.log (Why would it be here?) Appears to be put
> depending on where you are when you run: /usr/share/tomcat/bin/startup.sh
> Does this seem right to anyone?
>
That is exactly as I told earlier, the default location of the logfile is
"current directory" , you can change that behavior by changing the log4j
statements in jspwiki-custom.properties. See
https://jspwiki-wiki.apache.org/Wiki.jsp?page=Documentation#section-Documentation-ConfigurationAndAdministration
for an example.


> Tomcat and every other engine I know of has a default location for log
> files.
>
You can't compare webapplications (JSPWiki) with engines (Tomcat, et all)


>
> 2014-07-20 08:08:45,082 [localhost-startStop-1] INFO
> org.apache.wiki.WikiEngine  - *******************************************
> 2014-07-20 08:08:45,083 [localhost-startStop-1] INFO
> org.apache.wiki.WikiEngine  - JSPWiki 2.10.1 starting. Whee!
> 2014-07-20 08:08:45,085 [localhost-startStop-1] INFO
> org.apache.wiki.WikiEngine  - Servlet container: Apache Tomcat/7.0.54
> 2014-07-20 08:08:45,094 [localhost-startStop-1] INFO
> org.apache.wiki.WikiEngine  - JSPWiki working directory is
> '/usr/share/tomcat/temp/JSPWiki-633328713'
> 2014-07-20 08:08:45,586 [localhost-startStop-1] INFO
> org.apache.wiki.providers.AbstractFileProvider  - Wikipages are read from
> '/home/tomcat/jspwiki-files'
> 2014-07-20 08:08:45,591 [localhost-startStop-1] INFO
> org.apache.wiki.plugin.DefaultPluginManager  - Registering plugins
> 2014-07-20 08:08:45,628 [localhost-startStop-1] INFO
> org.apache.wiki.util.ClassUtil  - setting up classloaders for external
> (plugin) jars
> 2014-07-20 08:08:45,628 [localhost-startStop-1] INFO
> org.apache.wiki.util.ClassUtil  - no external jars configured, using
> standard classloading
> 2014-07-20 08:08:45,639 [localhost-startStop-1] INFO
> org.apache.wiki.diff.DifferenceManager  - Using difference provider:
> TraditionalDiffProvider
> 2014-07-20 08:08:45,642 [localhost-startStop-1] INFO
> org.apache.wiki.providers.CachingAttachmentProvider  - Initing
> CachingAttachmentProvider
> 2014-07-20 08:08:45,663 [localhost-startStop-1] INFO
> org.apache.wiki.search.LuceneSearchProvider  - Lucene enabled, cache will
> be in: /usr/share/tomcat/temp/JSPWiki-633328713/lucene
> 2014-07-20 08:08:45,678 [JSPWiki Lucene Indexer] WARN
> org.apache.wiki.WikiBackgroundThread  - Starting up background thread:
> JSPWiki Lucene Indexer.
> 2014-07-20 08:08:45,685 [JSPWiki Lucene Indexer] INFO
> org.apache.wiki.search.LuceneSearchProvider  - Starting Lucene reindexing,
> this can take a couple of minutes...
> 2014-07-20 08:08:45,695 [WatchDog for 'JSPWiki'] WARN
> org.apache.wiki.WikiBackgroundThread  - Starting up background thread:
> WatchDog for 'JSPWiki'.
> 2014-07-20 08:08:45,698 [localhost-startStop-1] INFO
> org.apache.wiki.ui.EditorManager  - Registering editor modules
> 2014-07-20 08:08:45,714 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.WebContainerAuthorizer  - Examining
> jndi:/localhost/ldapwiki/WEB-INF/web.xml
> 2014-07-20 08:08:45,783 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.WebContainerAuthorizer  - JSPWiki is using
> custom authentication.
> 2014-07-20 08:08:45,783 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.WebContainerAuthorizer  - Authorizer
> WebContainerAuthorizer initialized successfully.
> 2014-07-20 08:08:45,783 [localhost-startStop-1] INFO
> org.apache.wiki.auth.AuthenticationManager  - looking for jspwiki.policy
> inside WEB-INF
> 2014-07-20 08:08:45,798 [localhost-startStop-1] INFO
> org.apache.wiki.auth.AuthorizationManager  - We found security policy URL:
> file:/usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy and
> transformed it to file
> /usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy
> 2014-07-20 08:08:45,855 [localhost-startStop-1] INFO
> org.apache.wiki.auth.AuthorizationManager  - Initialized default security
> policy: /usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy
> 2014-07-20 08:08:45,856 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.GroupManager  - Attempting to load group
> database class org.apache.wiki.auth.authorize.XMLGroupDatabase
> 2014-07-20 08:08:45,860 [localhost-startStop-1] WARN
> org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML group database
> property jspwiki.xmlGroupDatabaseFile not found; trying
> /usr/share/tomcat/webapps/ldapwiki/WEB-INF/groupdatabase.xml
> 2014-07-20 08:08:45,860 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML group database at
> /usr/share/tomcat/webapps/ldapwiki/WEB-INF/groupdatabase.xml
> 2014-07-20 08:08:45,926 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.GroupManager  - Group database initialized.
> 2014-07-20 08:08:45,930 [localhost-startStop-1] INFO
> org.apache.wiki.auth.authorize.GroupManager  - Authorizer GroupManager
> initialized successfully; loaded 1 group(s).
> 2014-07-20 08:08:45,942 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Using JDK 1.5 Platform
> MBeanServer
> 2014-07-20 08:08:45,942 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  -
> com.sun.jmx.mbeanserver.JmxMBeanServer
> 2014-07-20 08:08:45,942 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - DefaultDomain
> 2014-07-20 08:08:45,948 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
> bean Core bean
> 2014-07-20 08:08:45,948 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
> bean User administration
> 2014-07-20 08:08:45,950 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
> bean Search manager
> 2014-07-20 08:08:45,958 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
> bean Plugins
> 2014-07-20 08:08:45,959 [localhost-startStop-1] INFO
> org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
> bean Plain editor
> 2014-07-20 08:08:45,962 [localhost-startStop-1] INFO
> org.apache.wiki.filters.DefaultFilterManager  - Registering filters
> 2014-07-20 08:08:45,971 [localhost-startStop-1] INFO
> org.apache.wiki.filters.DefaultFilterManager  - Cannot find property file
> for filters (this is okay, expected to find it as: '/WEB-INF/filters.xml')
> 2014-07-20 08:08:45,973 [localhost-startStop-1] INFO
> org.apache.wiki.render.RenderingManager  - Rendering content with
> org.apache.wiki.render.XHTMLRenderer.
> 2014-07-20 08:08:45,973 [JSPWiki Lucene Indexer] INFO
> org.apache.wiki.search.LuceneSearchProvider  - Full Lucene index finished
> in 288 milliseconds.
> 2014-07-20 08:08:45,981 [localhost-startStop-1] INFO
> org.apache.wiki.ReferenceManager  - Starting cross reference scan of
> WikiPages
> 2014-07-20 08:08:45,982 [localhost-startStop-1] INFO
> org.apache.wiki.ReferenceManager  - Unable to unserialize old refmgr
> information, rebuilding database:
> /usr/share/tomcat/temp/JSPWiki-633328713/refmgr.ser (No such file or
> directory)
> 2014-07-20 08:08:45,989 [localhost-startStop-1] INFO
> org.apache.wiki.ReferenceManager  - Cross reference scan done in
> 0:00:00.008
> 2014-07-20 08:08:45,990 [localhost-startStop-1] INFO
> org.apache.wiki.WikiEngine  - WikiEngine configured.
> 2014-07-20 08:08:45,990 [localhost-startStop-1] INFO
> org.apache.wiki.WikiEngine  - Root path for this Wiki is:
> '/usr/share/tomcat/webapps/ldapwiki/'
> 2014-07-20 08:08:45,991 [localhost-startStop-1] INFO
> org.apache.wiki.util.UtilJ2eeCompat  - serverInfo: Apache Tomcat/7.0.54
> 2014-07-20 08:08:45,991 [localhost-startStop-1] INFO
> org.apache.wiki.util.UtilJ2eeCompat  - Apache Tomcat detected
> 2014-07-20 08:08:45,997 [localhost-startStop-1] INFO
> org.apache.wiki.WikiServlet  - WikiServlet initialized.
> 2014-07-20 08:09:22,182 [http-bio-8080-exec-1] INFO
> org.apache.wiki.util.PropertyReader JSPWiki:/ldapwiki/ JSPWiki:
> http://wrx.willeke.com:8080/ldapwiki/ - No jspwiki.custom.config defined
> for this context, looking for custom properties file with default name of:
> /jspwiki-custom.properties
> 2014-07-20 08:09:22,184 [http-bio-8080-exec-1] INFO
> org.apache.wiki.util.PropertyReader JSPWiki:/ldapwiki/ JSPWiki:
> http://wrx.willeke.com:8080/ldapwiki/ - No custom property file found,
> relying on JSPWiki defaults.
>
> And when I (or you) go http://wrx.willeke.com:8080/ldapwiki/
> The site is missing the stylesheets (I assume as all lines are shifted
> left).
>
> Clicking on "This page does not exist. Why don’t you go and create it?"
> The url then becomes:
> http://wrx.willeke.com:8080/JSPWiki/Edit.jsp?page=Main
> I assume that this is because of the statement of
> "No jspwiki.custom.config defined for this context, looking for custom
> properties file with default name of: /jspwiki-custom.properties"
>
> The log says:
> Root path for this Wiki is: '/usr/share/tomcat/webapps/ldapwiki/'
> So I would assume this means that the /jspwiki-custom.properties should be
> in /usr/share/tomcat/webapps/ldapwiki/ which it is;
> ll /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
> -rw-r--r-- 1 tomcat tomcat 687 Jul 19 19:29
> /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
>
No, it should be :
 /usr/share/tomcat/webapps/ldapwiki/WEB-INF/classes/jspwiki-custom.properties


> so why is it not found?
>
> Here are the settings of
>  /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
> jspwiki.basicAttachmentProvider.storageDir = /home/tomcat/ldapwiki
> jspwiki.fileSystemProvider.pageDir = /home/tomcat/ldapwiki
> jspwiki.basicAttachmentProvider.storageDir =
> /home/tomcat/ldapwiki/attachments
> jspwiki.attachment.forbid=.html .htm .php .asp .exe
> jspwiki.applicationName = ldapwiki
> jspwiki.pageProvider = VersioningFileProvider
> jspwiki.security = jaas
> jspwiki.workDir = /usr/share/tomcat/ldapwiki
> jspwiki.baseURL = http://wrx.willeke.com:8080/ldapwiki/
> log4j.appender.FileLog.File = /var/log/tomcat/ldapwiki/ldapwiki.log
> jspwiki.usePageCache = true
> jspwiki.breakTitleWithSpaces = true
> jspwiki.urlConstructor = ShortViewURLConstructor
> jspwiki.shortURLConstructor.prefix = wiki/
>
>
> -jim
>
> --
> -jim
> Jim Willeke
>

regards,
Harry


>
>
> On Sat, Jul 19, 2014 at 7:48 PM, Hassan Schroeder <ha...@webtuitive.com>
> wrote:
>
> > On 7/19/14, 4:21 PM, Jim Willeke wrote:
> >
> >  Installed latest Oracle Java. (Was using openJDK)
> >>
> >> Cleared work directory.
> >>
> >
> >  ============================================================
> >> ===================
> >> /usr/share/tomcat/work/jspwiki.log (Why would it be here?)
> >>
> >
> > Good question; my all-defaults installation wrote that logfile into
> > the Tomcat installation directory rather than ./logs. Which seems
> > wrong as well, but...
> >
> > Is there somewhere in your environment you're setting an explicit
> > CLASSPATH?
> >
> >
> >  I have /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
> >> Apparently it does not like that.
> >>
> >
> > So you're not deploying a default JSPWiki.war - it's got this custom
> > properties file? That muddies the water :-)
> >
> > Maybe you could gist that and any other non-standard property files?
> >
> >
> > --
> > :about => about.me/hassanschroeder
> > :email  => hassan@webtuitive.com
> > :twitter => @hassan
> > :voice  => +1 408-621-3445
> >
>

Re: JSPWiki will not Start

Posted by Jim Willeke <ji...@willeke.com>.
Is there somewhere in your environment you're setting an explicit
CLASSPATH?
->No.
su -c 'sh /usr/share/tomcat/bin/startup.sh' tomcat
Using CATALINA_BASE:   /usr/share/tomcat
Using CATALINA_HOME:   /usr/share/tomcat
Using CATALINA_TMPDIR: /usr/share/tomcat/temp
Using JRE_HOME:        /usr
Using CLASSPATH:
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar

I AM deploying the default JSPWiki war.
Then run the install.jsp which then displays something like your
jspwiki-custom.properties is as follows:
....

Does not say if it created it or if I should and I still do not know where
it is expecting to find the file.


Latest attempt:
/usr/share/tomcat/jspwiki.log (Why would it be here?) Appears to be put
depending on where you are when you run: /usr/share/tomcat/bin/startup.sh
Does this seem right to anyone?
Tomcat and every other engine I know of has a default location for log
files.

2014-07-20 08:08:45,082 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - *******************************************
2014-07-20 08:08:45,083 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - JSPWiki 2.10.1 starting. Whee!
2014-07-20 08:08:45,085 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - Servlet container: Apache Tomcat/7.0.54
2014-07-20 08:08:45,094 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - JSPWiki working directory is
'/usr/share/tomcat/temp/JSPWiki-633328713'
2014-07-20 08:08:45,586 [localhost-startStop-1] INFO
org.apache.wiki.providers.AbstractFileProvider  - Wikipages are read from
'/home/tomcat/jspwiki-files'
2014-07-20 08:08:45,591 [localhost-startStop-1] INFO
org.apache.wiki.plugin.DefaultPluginManager  - Registering plugins
2014-07-20 08:08:45,628 [localhost-startStop-1] INFO
org.apache.wiki.util.ClassUtil  - setting up classloaders for external
(plugin) jars
2014-07-20 08:08:45,628 [localhost-startStop-1] INFO
org.apache.wiki.util.ClassUtil  - no external jars configured, using
standard classloading
2014-07-20 08:08:45,639 [localhost-startStop-1] INFO
org.apache.wiki.diff.DifferenceManager  - Using difference provider:
TraditionalDiffProvider
2014-07-20 08:08:45,642 [localhost-startStop-1] INFO
org.apache.wiki.providers.CachingAttachmentProvider  - Initing
CachingAttachmentProvider
2014-07-20 08:08:45,663 [localhost-startStop-1] INFO
org.apache.wiki.search.LuceneSearchProvider  - Lucene enabled, cache will
be in: /usr/share/tomcat/temp/JSPWiki-633328713/lucene
2014-07-20 08:08:45,678 [JSPWiki Lucene Indexer] WARN
org.apache.wiki.WikiBackgroundThread  - Starting up background thread:
JSPWiki Lucene Indexer.
2014-07-20 08:08:45,685 [JSPWiki Lucene Indexer] INFO
org.apache.wiki.search.LuceneSearchProvider  - Starting Lucene reindexing,
this can take a couple of minutes...
2014-07-20 08:08:45,695 [WatchDog for 'JSPWiki'] WARN
org.apache.wiki.WikiBackgroundThread  - Starting up background thread:
WatchDog for 'JSPWiki'.
2014-07-20 08:08:45,698 [localhost-startStop-1] INFO
org.apache.wiki.ui.EditorManager  - Registering editor modules
2014-07-20 08:08:45,714 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.WebContainerAuthorizer  - Examining
jndi:/localhost/ldapwiki/WEB-INF/web.xml
2014-07-20 08:08:45,783 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.WebContainerAuthorizer  - JSPWiki is using
custom authentication.
2014-07-20 08:08:45,783 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.WebContainerAuthorizer  - Authorizer
WebContainerAuthorizer initialized successfully.
2014-07-20 08:08:45,783 [localhost-startStop-1] INFO
org.apache.wiki.auth.AuthenticationManager  - looking for jspwiki.policy
inside WEB-INF
2014-07-20 08:08:45,798 [localhost-startStop-1] INFO
org.apache.wiki.auth.AuthorizationManager  - We found security policy URL:
file:/usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy and
transformed it to file
/usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy
2014-07-20 08:08:45,855 [localhost-startStop-1] INFO
org.apache.wiki.auth.AuthorizationManager  - Initialized default security
policy: /usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy
2014-07-20 08:08:45,856 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.GroupManager  - Attempting to load group
database class org.apache.wiki.auth.authorize.XMLGroupDatabase
2014-07-20 08:08:45,860 [localhost-startStop-1] WARN
org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML group database
property jspwiki.xmlGroupDatabaseFile not found; trying
/usr/share/tomcat/webapps/ldapwiki/WEB-INF/groupdatabase.xml
2014-07-20 08:08:45,860 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML group database at
/usr/share/tomcat/webapps/ldapwiki/WEB-INF/groupdatabase.xml
2014-07-20 08:08:45,926 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.GroupManager  - Group database initialized.
2014-07-20 08:08:45,930 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.GroupManager  - Authorizer GroupManager
initialized successfully; loaded 1 group(s).
2014-07-20 08:08:45,942 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Using JDK 1.5 Platform
MBeanServer
2014-07-20 08:08:45,942 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  -
com.sun.jmx.mbeanserver.JmxMBeanServer
2014-07-20 08:08:45,942 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - DefaultDomain
2014-07-20 08:08:45,948 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Core bean
2014-07-20 08:08:45,948 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean User administration
2014-07-20 08:08:45,950 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Search manager
2014-07-20 08:08:45,958 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Plugins
2014-07-20 08:08:45,959 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Plain editor
2014-07-20 08:08:45,962 [localhost-startStop-1] INFO
org.apache.wiki.filters.DefaultFilterManager  - Registering filters
2014-07-20 08:08:45,971 [localhost-startStop-1] INFO
org.apache.wiki.filters.DefaultFilterManager  - Cannot find property file
for filters (this is okay, expected to find it as: '/WEB-INF/filters.xml')
2014-07-20 08:08:45,973 [localhost-startStop-1] INFO
org.apache.wiki.render.RenderingManager  - Rendering content with
org.apache.wiki.render.XHTMLRenderer.
2014-07-20 08:08:45,973 [JSPWiki Lucene Indexer] INFO
org.apache.wiki.search.LuceneSearchProvider  - Full Lucene index finished
in 288 milliseconds.
2014-07-20 08:08:45,981 [localhost-startStop-1] INFO
org.apache.wiki.ReferenceManager  - Starting cross reference scan of
WikiPages
2014-07-20 08:08:45,982 [localhost-startStop-1] INFO
org.apache.wiki.ReferenceManager  - Unable to unserialize old refmgr
information, rebuilding database:
/usr/share/tomcat/temp/JSPWiki-633328713/refmgr.ser (No such file or
directory)
2014-07-20 08:08:45,989 [localhost-startStop-1] INFO
org.apache.wiki.ReferenceManager  - Cross reference scan done in 0:00:00.008
2014-07-20 08:08:45,990 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - WikiEngine configured.
2014-07-20 08:08:45,990 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - Root path for this Wiki is:
'/usr/share/tomcat/webapps/ldapwiki/'
2014-07-20 08:08:45,991 [localhost-startStop-1] INFO
org.apache.wiki.util.UtilJ2eeCompat  - serverInfo: Apache Tomcat/7.0.54
2014-07-20 08:08:45,991 [localhost-startStop-1] INFO
org.apache.wiki.util.UtilJ2eeCompat  - Apache Tomcat detected
2014-07-20 08:08:45,997 [localhost-startStop-1] INFO
org.apache.wiki.WikiServlet  - WikiServlet initialized.
2014-07-20 08:09:22,182 [http-bio-8080-exec-1] INFO
org.apache.wiki.util.PropertyReader JSPWiki:/ldapwiki/ JSPWiki:
http://wrx.willeke.com:8080/ldapwiki/ - No jspwiki.custom.config defined
for this context, looking for custom properties file with default name of:
/jspwiki-custom.properties
2014-07-20 08:09:22,184 [http-bio-8080-exec-1] INFO
org.apache.wiki.util.PropertyReader JSPWiki:/ldapwiki/ JSPWiki:
http://wrx.willeke.com:8080/ldapwiki/ - No custom property file found,
relying on JSPWiki defaults.

And when I (or you) go http://wrx.willeke.com:8080/ldapwiki/
The site is missing the stylesheets (I assume as all lines are shifted
left).

Clicking on "This page does not exist. Why don’t you go and create it?"
The url then becomes:
http://wrx.willeke.com:8080/JSPWiki/Edit.jsp?page=Main
I assume that this is because of the statement of
"No jspwiki.custom.config defined for this context, looking for custom
properties file with default name of: /jspwiki-custom.properties"

The log says:
Root path for this Wiki is: '/usr/share/tomcat/webapps/ldapwiki/'
So I would assume this means that the /jspwiki-custom.properties should be
in /usr/share/tomcat/webapps/ldapwiki/ which it is;
ll /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
-rw-r--r-- 1 tomcat tomcat 687 Jul 19 19:29
/usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties

so why is it not found?

Here are the settings of
 /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
jspwiki.basicAttachmentProvider.storageDir = /home/tomcat/ldapwiki
jspwiki.fileSystemProvider.pageDir = /home/tomcat/ldapwiki
jspwiki.basicAttachmentProvider.storageDir =
/home/tomcat/ldapwiki/attachments
jspwiki.attachment.forbid=.html .htm .php .asp .exe
jspwiki.applicationName = ldapwiki
jspwiki.pageProvider = VersioningFileProvider
jspwiki.security = jaas
jspwiki.workDir = /usr/share/tomcat/ldapwiki
jspwiki.baseURL = http://wrx.willeke.com:8080/ldapwiki/
log4j.appender.FileLog.File = /var/log/tomcat/ldapwiki/ldapwiki.log
jspwiki.usePageCache = true
jspwiki.breakTitleWithSpaces = true
jspwiki.urlConstructor = ShortViewURLConstructor
jspwiki.shortURLConstructor.prefix = wiki/


-jim

--
-jim
Jim Willeke


On Sat, Jul 19, 2014 at 7:48 PM, Hassan Schroeder <ha...@webtuitive.com>
wrote:

> On 7/19/14, 4:21 PM, Jim Willeke wrote:
>
>  Installed latest Oracle Java. (Was using openJDK)
>>
>> Cleared work directory.
>>
>
>  ============================================================
>> ===================
>> /usr/share/tomcat/work/jspwiki.log (Why would it be here?)
>>
>
> Good question; my all-defaults installation wrote that logfile into
> the Tomcat installation directory rather than ./logs. Which seems
> wrong as well, but...
>
> Is there somewhere in your environment you're setting an explicit
> CLASSPATH?
>
>
>  I have /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
>> Apparently it does not like that.
>>
>
> So you're not deploying a default JSPWiki.war - it's got this custom
> properties file? That muddies the water :-)
>
> Maybe you could gist that and any other non-standard property files?
>
>
> --
> :about => about.me/hassanschroeder
> :email  => hassan@webtuitive.com
> :twitter => @hassan
> :voice  => +1 408-621-3445
>

Re: JSPWiki will not Start

Posted by Hassan Schroeder <ha...@webtuitive.com>.
On 7/19/14, 4:21 PM, Jim Willeke wrote:

> Installed latest Oracle Java. (Was using openJDK)
>
> Cleared work directory.

> ===============================================================================
> /usr/share/tomcat/work/jspwiki.log (Why would it be here?)

Good question; my all-defaults installation wrote that logfile into
the Tomcat installation directory rather than ./logs. Which seems
wrong as well, but...

Is there somewhere in your environment you're setting an explicit
CLASSPATH?

> I have /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
> Apparently it does not like that.

So you're not deploying a default JSPWiki.war - it's got this custom
properties file? That muddies the water :-)

Maybe you could gist that and any other non-standard property files?

-- 
:about => about.me/hassanschroeder
:email  => hassan@webtuitive.com
:twitter => @hassan
:voice  => +1 408-621-3445

Re: JSPWiki will not Start

Posted by Jim Willeke <ji...@willeke.com>.
Latest attempts:

Installed latest Oracle Java. (Was using openJDK)

Cleared work directory.

/usr/share/tomcat/logs/catlina.out
INFO: A valid shutdown command was received via the shutdown port. Stopping
the Server instance.
Jul 19, 2014 11:13:54 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jul 19, 2014 11:13:54 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Jul 19, 2014 11:13:54 PM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Jul 19, 2014 11:13:54 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/ldapwiki] appears to have started a thread
named [JSPWiki Lucene Indexer] but has failed to stop it. This is very
likely to create a memory leak.
Jul 19, 2014 11:13:54 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/ldapwiki] appears to have started a thread
named [WatchDog for 'JSPWiki'] but has failed to stop it. This is very
likely to create a memory leak.
Jul 19, 2014 11:13:54 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jul 19, 2014 11:13:54 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Jul 19, 2014 11:13:54 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jul 19, 2014 11:13:54 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Jul 19, 2014 11:14:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Jul 19, 2014 11:14:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 19, 2014 11:14:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 19, 2014 11:14:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 704 ms
Jul 19, 2014 11:14:31 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jul 19, 2014 11:14:31 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jul 19, 2014 11:14:31 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war
log4j:WARN No appenders could be found for logger
(org.apache.wiki.util.PropertyReader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Jul 19, 2014 11:14:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war has finished
in 3,624 ms
Jul 19, 2014 11:14:35 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/manager
Jul 19, 2014 11:14:35 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/manager has finished in 113
ms
Jul 19, 2014 11:14:35 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/examples
Jul 19, 2014 11:14:35 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/examples has finished in
314 ms
Jul 19, 2014 11:14:35 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ROOT
Jul 19, 2014 11:14:36 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ROOT has finished in 263 ms
Jul 19, 2014 11:14:36 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/host-manager
Jul 19, 2014 11:14:36 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/host-manager has finished
in 47 ms
Jul 19, 2014 11:14:36 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/docs
Jul 19, 2014 11:14:36 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/docs has finished in 39 ms
Jul 19, 2014 11:14:36 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 19, 2014 11:14:36 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 19, 2014 11:14:36 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4495 ms

===============================================================================
/usr/share/tomcat/work/jspwiki.log (Why would it be here?)
2014-07-19 22:36:16,443 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - *******************************************
2014-07-19 22:36:16,444 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - JSPWiki 2.10.1 starting. Whee!
2014-07-19 22:36:16,446 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - Servlet container: Apache Tomcat/7.0.54
2014-07-19 22:36:16,468 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - JSPWiki working directory is
'/usr/share/tomcat/temp/JSPWiki-553444335'
2014-07-19 22:36:17,439 [localhost-startStop-1] INFO
org.apache.wiki.providers.AbstractFileProvider  - Wikipages are read from
'/root/jspwiki-files'
2014-07-19 22:36:17,444 [localhost-startStop-1] INFO
org.apache.wiki.plugin.DefaultPluginManager  - Registering plugins
2014-07-19 22:36:17,481 [localhost-startStop-1] INFO
org.apache.wiki.util.ClassUtil  - setting up classloaders for external
(plugin) jars
2014-07-19 22:36:17,482 [localhost-startStop-1] INFO
org.apache.wiki.util.ClassUtil  - no external jars configured, using
standard classloading
2014-07-19 22:36:17,509 [localhost-startStop-1] INFO
org.apache.wiki.diff.DifferenceManager  - Using difference provider:
TraditionalDiffProvider
2014-07-19 22:36:17,519 [localhost-startStop-1] INFO
org.apache.wiki.providers.CachingAttachmentProvider  - Initing
CachingAttachmentProvider
2014-07-19 22:36:17,561 [localhost-startStop-1] INFO
org.apache.wiki.search.LuceneSearchProvider  - Lucene enabled, cache will
be in: /usr/share/tomcat/temp/JSPWiki-553444335/lucene
2014-07-19 22:36:17,571 [JSPWiki Lucene Indexer] WARN
org.apache.wiki.WikiBackgroundThread  - Starting up background thread:
JSPWiki Lucene Indexer.
2014-07-19 22:36:17,585 [WatchDog for 'JSPWiki'] WARN
org.apache.wiki.WikiBackgroundThread  - Starting up background thread:
WatchDog for 'JSPWiki'.
2014-07-19 22:36:17,589 [JSPWiki Lucene Indexer] INFO
org.apache.wiki.search.LuceneSearchProvider  - Starting Lucene reindexing,
this can take a couple of minutes...
2014-07-19 22:36:17,606 [localhost-startStop-1] INFO
org.apache.wiki.ui.EditorManager  - Registering editor modules
2014-07-19 22:36:17,629 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.WebContainerAuthorizer  - Examining
jndi:/localhost/ldapwiki/WEB-INF/web.xml
2014-07-19 22:36:17,706 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.WebContainerAuthorizer  - JSPWiki is using
custom authentication.
2014-07-19 22:36:17,706 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.WebContainerAuthorizer  - Authorizer
WebContainerAuthorizer initialized successfully.
2014-07-19 22:36:17,706 [localhost-startStop-1] INFO
org.apache.wiki.auth.AuthenticationManager  - looking for jspwiki.policy
inside WEB-INF
2014-07-19 22:36:17,706 [localhost-startStop-1] INFO
org.apache.wiki.auth.AuthorizationManager  - We found security policy URL:
file:/usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy and
transformed it to file
/usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy
2014-07-19 22:36:17,782 [localhost-startStop-1] INFO
org.apache.wiki.auth.AuthorizationManager  - Initialized default security
policy: /usr/share/tomcat/webapps/ldapwiki/WEB-INF/jspwiki.policy
2014-07-19 22:36:17,783 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.GroupManager  - Attempting to load group
database class org.apache.wiki.auth.authorize.XMLGroupDatabase
2014-07-19 22:36:17,785 [localhost-startStop-1] WARN
org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML group database
property jspwiki.xmlGroupDatabaseFile not found; trying
/usr/share/tomcat/webapps/ldapwiki/WEB-INF/groupdatabase.xml
2014-07-19 22:36:17,785 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML group database at
/usr/share/tomcat/webapps/ldapwiki/WEB-INF/groupdatabase.xml
2014-07-19 22:36:17,894 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.GroupManager  - Group database initialized.
2014-07-19 22:36:17,907 [localhost-startStop-1] INFO
org.apache.wiki.auth.authorize.GroupManager  - Authorizer GroupManager
initialized successfully; loaded 1 group(s).
2014-07-19 22:36:17,922 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Using JDK 1.5 Platform
MBeanServer
2014-07-19 22:36:17,931 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  -
com.sun.jmx.mbeanserver.JmxMBeanServer
2014-07-19 22:36:17,931 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - DefaultDomain
2014-07-19 22:36:17,936 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Core bean
2014-07-19 22:36:17,937 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean User administration
2014-07-19 22:36:17,938 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Search manager
2014-07-19 22:36:17,953 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Plugins
2014-07-19 22:36:17,954 [localhost-startStop-1] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Registered new admin
bean Plain editor
2014-07-19 22:36:17,956 [localhost-startStop-1] INFO
org.apache.wiki.filters.DefaultFilterManager  - Registering filters
2014-07-19 22:36:17,958 [JSPWiki Lucene Indexer] INFO
org.apache.wiki.search.LuceneSearchProvider  - Full Lucene index finished
in 369 milliseconds.
2014-07-19 22:36:17,967 [localhost-startStop-1] INFO
org.apache.wiki.filters.DefaultFilterManager  - Cannot find property file
for filters (this is okay, expected to find it as: '/WEB-INF/filters.xml')
2014-07-19 22:36:17,968 [localhost-startStop-1] INFO
org.apache.wiki.render.RenderingManager  - Rendering content with
org.apache.wiki.render.XHTMLRenderer.
2014-07-19 22:36:17,977 [localhost-startStop-1] INFO
org.apache.wiki.ReferenceManager  - Starting cross reference scan of
WikiPages
2014-07-19 22:36:17,977 [localhost-startStop-1] INFO
org.apache.wiki.ReferenceManager  - Unable to unserialize old refmgr
information, rebuilding database:
/usr/share/tomcat/temp/JSPWiki-553444335/refmgr.ser (No such file or
directory)
2014-07-19 22:36:17,984 [localhost-startStop-1] INFO
org.apache.wiki.ReferenceManager  - Cross reference scan done in 0:00:00.007
2014-07-19 22:36:17,986 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - WikiEngine configured.
2014-07-19 22:36:17,986 [localhost-startStop-1] INFO
org.apache.wiki.WikiEngine  - Root path for this Wiki is:
'/usr/share/tomcat/webapps/ldapwiki/'
2014-07-19 22:36:17,987 [localhost-startStop-1] INFO
org.apache.wiki.util.UtilJ2eeCompat  - serverInfo: Apache Tomcat/7.0.54
2014-07-19 22:36:17,987 [localhost-startStop-1] INFO
org.apache.wiki.util.UtilJ2eeCompat  - Apache Tomcat detected
2014-07-19 22:36:17,993 [localhost-startStop-1] INFO
org.apache.wiki.WikiServlet  - WikiServlet initialized.
2014-07-19 22:43:22,823 [http-bio-8080-exec-7] INFO
org.apache.wiki.util.PropertyReader JSPWiki:/ldapwiki/ JSPWiki:
http://wrx.willeke.com:8080/ldapwiki/ - *No jspwiki.custom.config* defined
for this context, looking for custom properties file with default name of:
/jspwiki-custom.properties
2014-07-19 22:43:22,824 [http-bio-8080-exec-7] INFO
org.apache.wiki.util.PropertyReader JSPWiki:/ldapwiki/ JSPWiki:
http://wrx.willeke.com:8080/ldapwiki/ - No custom property file found,
relying on JSPWiki defaults.
2014-07-19 23:07:23,441 [localhost-startStop-2] INFO
org.apache.wiki.WikiServlet  - WikiServlet shutdown.
2014-07-19 23:07:23,447 [localhost-startStop-2] WARN
org.apache.wiki.WikiBackgroundThread  - Detected wiki engine shutdown:
killing JSPWiki Lucene Indexer.
2014-07-19 23:07:23,447 [localhost-startStop-2] WARN
org.apache.wiki.WikiBackgroundThread  - Detected wiki engine shutdown:
killing WatchDog for 'JSPWiki'.
2014-07-19 23:07:23,447 [localhost-startStop-2] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Unregistered AdminBean
Core bean
2014-07-19 23:07:23,447 [localhost-startStop-2] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Unregistered AdminBean
User administration
2014-07-19 23:07:23,447 [localhost-startStop-2] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Unregistered AdminBean
Search manager
2014-07-19 23:07:23,447 [localhost-startStop-2] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Unregistered AdminBean
Plugins
2014-07-19 23:07:23,447 [localhost-startStop-2] INFO
org.apache.wiki.ui.admin.DefaultAdminBeanManager  - Unregistered AdminBean
Plain editor
2014-07-19 23:07:23,894 [WatchDog for 'JSPWiki'] WARN
org.apache.wiki.WikiBackgroundThread  - Interrupted background thread:
WatchDog for 'JSPWiki'.
2014-07-19 23:07:24,272 [JSPWiki Lucene Indexer] WARN
org.apache.wiki.WikiBackgroundThread  - Interrupted background thread:
JSPWiki Lucene Indexer.


And when I (or you) go http://wrx.willeke.com:8080/ldapwiki/
The site is missing the stylesheets (I assume as all lines are shifted
left).

Clicking on "This page does not exist. Why don’t you go and create it?
<http://wrx.willeke.com:8080/JSPWiki/Edit.jsp?page=Main>"
The url then becomes:
http://wrx.willeke.com:8080/JSPWiki/Edit.jsp?page=Main

I have /usr/share/tomcat/webapps/ldapwiki/jspwiki-custom.properties
Apparently it does not like that.

Ideas?

Thanks


--
-jim
Jim Willeke


On Sat, Jul 19, 2014 at 6:23 PM, Jim Willeke <ji...@willeke.com> wrote:

> What is "ldapwiki.war"? Is that a standard JSPWiki.war renamed?
> ->Yes. Latest version 2.10.1.
>
> If this is a fresh install of Tomcat and JSPWiki, why are there
> "persisted sessions" being found?
> -> Fresh install of both. May have been stopped and started a couple of
> times.
>
> -jim
>
> --
> -jim
> Jim Willeke
>
>
> On Sat, Jul 19, 2014 at 5:56 PM, Hassan Schroeder <ha...@webtuitive.com>
> wrote:
>
>> On 7/19/14, 12:49 PM, Jim Willeke wrote:
>>
>>> Latest version of tomcat7 v7.0.54.
>>>
>>> When I have tried to setup using a linux distro of tomcat, there is
>>> apparently an expectation that jspwiki should be able to write to some
>>> directories that the linux/Tomcat distro will not permit.
>>>
>>> With a download direct from Tomcat and write permissions applied to the
>>> user tomcat runs under for ALL tomcat directories, I still have POOR
>>> results.
>>>
>>
>> > INFO: Deploying web application archive
>> > /usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war
>>
>> What is "ldapwiki.war"? Is that a standard JSPWiki.war renamed?
>>
>>
>>  Jul 19, 2014 7:30:03 PM org.apache.catalina.session.StandardManager
>>> doLoad
>>> SEVERE: IOException while loading persisted sessions:
>>>
>>
>> If this is a fresh install of Tomcat and JSPWiki, why are there
>> "persisted sessions" being found?
>>
>> I feel like there's something missing here :-)
>>
>>
>> --
>> :about => about.me/hassanschroeder
>> :email  => hassan@webtuitive.com
>> :twitter => @hassan
>> :voice  => +1 408-621-3445
>>
>
>

Re: JSPWiki will not Start

Posted by Jim Willeke <ji...@willeke.com>.
What is "ldapwiki.war"? Is that a standard JSPWiki.war renamed?
->Yes. Latest version 2.10.1.

If this is a fresh install of Tomcat and JSPWiki, why are there
"persisted sessions" being found?
-> Fresh install of both. May have been stopped and started a couple of
times.

-jim

--
-jim
Jim Willeke


On Sat, Jul 19, 2014 at 5:56 PM, Hassan Schroeder <ha...@webtuitive.com>
wrote:

> On 7/19/14, 12:49 PM, Jim Willeke wrote:
>
>> Latest version of tomcat7 v7.0.54.
>>
>> When I have tried to setup using a linux distro of tomcat, there is
>> apparently an expectation that jspwiki should be able to write to some
>> directories that the linux/Tomcat distro will not permit.
>>
>> With a download direct from Tomcat and write permissions applied to the
>> user tomcat runs under for ALL tomcat directories, I still have POOR
>> results.
>>
>
> > INFO: Deploying web application archive
> > /usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war
>
> What is "ldapwiki.war"? Is that a standard JSPWiki.war renamed?
>
>
>  Jul 19, 2014 7:30:03 PM org.apache.catalina.session.StandardManager
>> doLoad
>> SEVERE: IOException while loading persisted sessions:
>>
>
> If this is a fresh install of Tomcat and JSPWiki, why are there
> "persisted sessions" being found?
>
> I feel like there's something missing here :-)
>
>
> --
> :about => about.me/hassanschroeder
> :email  => hassan@webtuitive.com
> :twitter => @hassan
> :voice  => +1 408-621-3445
>

Re: JSPWiki will not Start

Posted by Hassan Schroeder <ha...@webtuitive.com>.
On 7/19/14, 12:49 PM, Jim Willeke wrote:
> Latest version of tomcat7 v7.0.54.
>
> When I have tried to setup using a linux distro of tomcat, there is
> apparently an expectation that jspwiki should be able to write to some
> directories that the linux/Tomcat distro will not permit.
>
> With a download direct from Tomcat and write permissions applied to the
> user tomcat runs under for ALL tomcat directories, I still have POOR
> results.

 > INFO: Deploying web application archive
 > /usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war

What is "ldapwiki.war"? Is that a standard JSPWiki.war renamed?

> Jul 19, 2014 7:30:03 PM org.apache.catalina.session.StandardManager doLoad
> SEVERE: IOException while loading persisted sessions:

If this is a fresh install of Tomcat and JSPWiki, why are there
"persisted sessions" being found?

I feel like there's something missing here :-)

-- 
:about => about.me/hassanschroeder
:email  => hassan@webtuitive.com
:twitter => @hassan
:voice  => +1 408-621-3445

Re: JSPWiki will not Start

Posted by Jim Willeke <ji...@willeke.com>.
Latest version of tomcat7 v7.0.54.

When I have tried to setup using a linux distro of tomcat, there is
apparently an expectation that jspwiki should be able to write to some
directories that the linux/Tomcat distro will not permit.

With a download direct from Tomcat and write permissions applied to the
user tomcat runs under for ALL tomcat directories, I still have POOR
results.

Jul 19, 2014 7:30:00 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Jul 19, 2014 7:30:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 19, 2014 7:30:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 19, 2014 7:30:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 670 ms
Jul 19, 2014 7:30:00 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jul 19, 2014 7:30:00 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jul 19, 2014 7:30:00 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war
Jul 19, 2014 7:30:03 PM com.metaparadigm.jsonrpc.JSONRPCBridge
registerLocalArgResolver
INFO: registered local arg resolver
com.metaparadigm.jsonrpc.HttpServletRequestArgResolver for local class
javax.servlet.http.HttpServletRequest with context
javax.servlet.http.HttpServletRequest
Jul 19, 2014 7:30:03 PM com.metaparadigm.jsonrpc.JSONRPCBridge
registerLocalArgResolver
INFO: registered local arg resolver
com.metaparadigm.jsonrpc.HttpSessionArgResolver for local class
javax.servlet.http.HttpSession with context
javax.servlet.http.HttpServletRequest
Jul 19, 2014 7:30:03 PM com.metaparadigm.jsonrpc.JSONRPCBridge
registerLocalArgResolver
INFO: registered local arg resolver
com.metaparadigm.jsonrpc.JSONRPCBridgeServletArgResolver for local class
com.metaparadigm.jsonrpc.JSONRPCBridge with context
javax.servlet.http.HttpServletRequest
Jul 19, 2014 7:30:03 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.wiki.auth.UserManager$JSONUserModule
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.wiki.auth.UserManager$JSONUserModule
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1354)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
 at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.util.HashMap.readObject(HashMap.java:1184)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
 at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
 at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
 at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1619)
 at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1084)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:282)
 at
org.apache.catalina.session.StandardManager.load(StandardManager.java:202)
at
org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:489)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5476)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
Caused by: java.io.NotSerializableException:
org.apache.wiki.auth.UserManager$JSONUserModule
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
 at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
 at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
...
log4j:WARN No appenders could be found for logger
(org.apache.wiki.util.PropertyReader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Jul 19, 2014 7:30:04 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/ldapwiki.war has finished
in 4,322 ms
Jul 19, 2014 7:30:04 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/manager
Jul 19, 2014 7:30:04 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/usr/share/tomcat7/apache-tomcat-7.0.54/webapps/manager has finished in 78
ms
Jul 19, 2014 7:30:04 PM org.apache.catalina.startup.HostConfig
deployDirectory
....


And although I was told when running Install.jsp that my
jspwiki-custom.properties would
be:
jspwiki.basicAttachmentProvider.storageDir = /home/tomcat/ldapwiki
jspwiki.fileSystemProvider.pageDir = /home/tomcat/ldapwiki
jspwiki.applicationName = ldapwiki
jspwiki.pageProvider = VersioningFileProvider
jspwiki.security = jaas
jspwiki.workDir = /usr/share/tomcat/ldapwiki
jspwiki.baseURL = http://wrx.willeke.com:8080/ldapwiki/
log4j.appender.FileLog.File = /var/log/tomcat/ldapwiki/ldapwiki.log

I can not find this file anywhere.
(and I would not know where to put it if I was supposed to create it.)

Thanks
-jim




--
-jim
Jim Willeke


On Sat, Jul 19, 2014 at 2:23 PM, Hassan Schroeder <ha...@webtuitive.com>
wrote:

> On 7/19/14, 10:23 AM, Jim Willeke wrote:
>
>> I have no idea where to go at this point.
>>
>> So from a "stock" Apache tomcat7 installation Apache JSPWIKI no longer
>> will
>> run.
>>
>
> Sorry, I haven't been following this thread particularly closely, but
> for grins I just dropped a fresh downloaded JSPWiki.war file into the
> webapps directory of a box-stock install of Tomcat 7.0.54 (on a Mac,
> OS 10.9.4, java version "1.7.0_45") and started Tomcat. With absolutely
> no config changes, JSPWiki starts up fine and based on limited testing
> works fine too.
>
> Why are you using such an old version of Tomcat? There have been a lot
> of security-related bug fixes since 7.0.28.
>
>   (http://tomcat.apache.org/security-7.html)
>
> Perhaps start over with a current Tomcat?
>
> HTH,
> --
> :about => about.me/hassanschroeder
> :email  => hassan@webtuitive.com
> :twitter => @hassan
> :voice  => +1 408-621-3445
>

Re: JSPWiki will not Start

Posted by Hassan Schroeder <ha...@webtuitive.com>.
On 7/19/14, 10:23 AM, Jim Willeke wrote:
> I have no idea where to go at this point.
>
> So from a "stock" Apache tomcat7 installation Apache JSPWIKI no longer will
> run.

Sorry, I haven't been following this thread particularly closely, but
for grins I just dropped a fresh downloaded JSPWiki.war file into the
webapps directory of a box-stock install of Tomcat 7.0.54 (on a Mac,
OS 10.9.4, java version "1.7.0_45") and started Tomcat. With absolutely
no config changes, JSPWiki starts up fine and based on limited testing
works fine too.

Why are you using such an old version of Tomcat? There have been a lot
of security-related bug fixes since 7.0.28.

   (http://tomcat.apache.org/security-7.html)

Perhaps start over with a current Tomcat?

HTH,
-- 
:about => about.me/hassanschroeder
:email  => hassan@webtuitive.com
:twitter => @hassan
:voice  => +1 408-621-3445