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 <has...@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 => has...@webtuitive.com > :twitter => @hassan > :voice => +1 408-621-3445 >