Hi Jim, I think ur first statement is right “ Appears, for some reason, http://ldapwiki.com is not reading the jspwiki-custom.properties file"
What's the location of this file? Based on the apache logs it was using the shortViewUrlConstructor "/wiki", but now it's not using that at all, and using the default JSPWiki. I'm assuming the error started happening after a tomcat/server restart. Cheers, David V On 22/03/2015 5:54 PM, "Jim Willeke" <j...@willeke.com> wrote: > This works: http://www.ldapwiki.com/ldapwiki/templates/default/jspwiki.css > This doesn't: > http://www.ldapwiki.com/*ldapwiki*/templates/default/jspwiki.css > > I would expect it to be: > http://www.ldapwiki.com/templates/default/jspwiki.css > or > http://ldapwiki.com/templates/default/jspwiki.css > > No httpd (ie no apache server) > > webapps: > drwxr-xr-x 12 tomcat tomcat 4096 Mar 21 09:34 ./ > drwxr-xr-x 9 tomcat tomcat 4096 Mar 22 06:12 ../ > drwxr-xr-x 10 tomcat tomcat 4096 Jul 27 2014 classof1968/ > drwxr-xr-x 14 tomcat tomcat 4096 Jul 19 2014 docs/ > drwxr-xr-x 7 tomcat tomcat 4096 Jul 19 2014 examples/ > drwxr-xr-x 10 tomcat tomcat 4096 Jul 27 2014 genealogy/ > drwxr-xr-x 5 tomcat tomcat 4096 Jul 19 2014 host-manager/ > drwxr-xr-x 10 tomcat tomcat 4096 Mar 21 09:38 ldapwiki/ > drwxr-xr-x 5 tomcat tomcat 4096 Jul 19 2014 manager/ > drwxrwxr-x 7 tomcat tomcat 4096 Aug 10 2014 pwm/ > -rw-r--r-- 1 tomcat tomcat 31772040 Aug 10 2014 pwm.war > -rw-r--r-- 1 root root 803 Mar 21 09:33 robots.txt > drwxrwxr-x 10 tomcat tomcat 4096 Jul 27 2014 ROOT/ > drwxr-xr-x 10 tomcat tomcat 4096 Jul 27 2014 willeke/ > > NOTE: ldapwiki/ is a copy of ROOT/ > Which I did after I started having trouble. > tomcat/conf/ > <servlet-mapping> > <servlet-name>default</servlet-name> > <url-pattern>/</url-pattern> > </servlet-mapping> > > No entries in tomcat/conf/server.xml for any context. > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > .. > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="logs" > prefix="localhost-access-log." suffix=".log" > pattern="%h %l %u %t "%r" %s %b" /> > </Host> > > > > :/usr/share/tomcat# /etc/init.d/tomcat stop > Using CATALINA_BASE: /usr/share/tomcat7/apache-tomcat-7.0.54/ > Using CATALINA_HOME: /usr/share/tomcat7/apache-tomcat-7.0.54/ > Using CATALINA_TMPDIR: /usr/share/tomcat7/apache-tomcat-7.0.54//temp > Using JRE_HOME: /opt/jdk/jdk1.7.0_65 > Using CLASSPATH: > > /usr/share/tomcat7/apache-tomcat-7.0.54//bin/bootstrap.jar:/usr/share/tomcat7/apache-tomcat-7.0.54//bin/tomcat-juli.jar > :/usr/share/tomcat# rm -r work/ > :/usr/share/tomcat# /etc/init.d/tomcat start > > work/ > total 28 > drwxrwxr-x 7 tomcat tomcat 4096 Mar 22 06:12 ./ > drwxr-xr-x 9 tomcat tomcat 4096 Mar 22 06:12 ../ > drwxrwxr-x 3 tomcat tomcat 4096 Mar 22 06:12 Catalina/ > drwxrwxr-x 4 tomcat tomcat 4096 Mar 22 06:12 classof1968/ > drwxrwxr-x 4 tomcat tomcat 4096 Mar 22 06:12 genealogy/ > drwxrwxr-x 4 tomcat tomcat 4096 Mar 22 06:12 ldapwiki/ > drwxrwxr-x 4 tomcat tomcat 4096 Mar 22 06:12 willeke/ > > > This was working fine and then this is when it changed: > 217.198.1.70 - - [20/Mar/2015:12:07:17 +0000] "GET > /wiki/1.2.840.113556.1.4.803 HTTP/1.1" 200 17110 > 188.165.15.230 - - [20/Mar/2015:12:08:15 +0000] "GET > /wiki/NspmPasswordPolicy HTTP/1.1" 200 25179 > 66.249.67.5 - - [20/Mar/2015:12:10:03 +0000] "GET /wiki/SP HTTP/1.1" 200 > 15842 > 100.43.85.28 - - [20/Mar/2015:12:10:07 +0000] "GET > /wiki/DirXML-idPolAccessControl HTTP/1.1" 302 - > 100.43.85.28 - - [20/Mar/2015:12:10:10 +0000] "GET > /wiki/2.16.840.1.113719.1.14.4.1.2400 HTTP/1.1" 200 18185 > 180.76.5.75 - - [20/Mar/2015:12:10:34 +0000] "GET > /wiki/DefinitionStartTLSExtendedOperation HTTP/1.1" 200 13084 > 220.181.108.88 - - [20/Mar/2015:12:11:09 +0000] "GET > /wiki/2.16.840.1.113719.1.4.5.4.1?skin=raw HTTP/1.1" 200 522 > 66.249.67.13 - - [20/Mar/2015:12:12:01 +0000] "GET /wiki/CAPK HTTP/1.1" 200 > 15143 > 195.154.48.114 - - [20/Mar/2015:12:12:01 +0000] "GET > /wiki/NDSDThreadsAndProcesses/ HTTP/1.0" 200 13520 > 220.181.108.145 - - [20/Mar/2015:12:12:02 +0000] "GET /wiki/Krb5.conf > HTTP/1.1" 200 18886 > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET / HTTP/1.1" 200 18468 > 66.249.67.5 - - [20/Mar/2015:12:12:02 +0000] "GET /wiki/LRUT HTTP/1.1" 302 > - > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET > /JSPWiki/templates/default/jspwiki.css HTTP/1.1" 404 1025 > 66.249.67.13 - - [20/Mar/2015:12:12:02 +0000] "GET > /JSPWiki/wiki/LocalReceivedUpTo HTTP/1.1" 404 1011 > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET > /JSPWiki/scripts/mootools.js HTTP/1.1" 404 1005 > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET > /JSPWiki/scripts/jspwiki-common.js HTTP/1.1" 404 1017 > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET > /JSPWiki/attach/TitleBox/ldapwiki-logo.png HTTP/1.1" 404 1033 > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET /JSPWiki/images/out.png > HTTP/1.1" 404 995 > 71.0.193.131 - - [20/Mar/2015:12:12:02 +0000] "GET > /JSPWiki/attach/LeftMenu/donate_button_nocards.png HTTP/1.1" 404 1049 > > ᐧ > > -- > -jim > Jim Willeke > > On Sat, Mar 21, 2015 at 6:40 PM, David Vittor <dvit...@gmail.com> wrote: > > > Hi Jim, > > > > I'm not sure why you are getting the "*" prefixing and suffixing the > > context path (ldapwiki). This is most likely an apache /etc/httpd/conf/ > > *httpd.conf* file setting. > > i.e. > > This works: > http://www.ldapwiki.com/ldapwiki/templates/default/jspwiki.css > > This doesn't: > > http://www.ldapwiki.com/*ldapwiki*/templates/default/jspwiki.css > > > > As for my settings I'm using: > > jspwiki.applicationName=testwiki > > jspwiki.baseURL=http://digitalspider.com.au/testwiki/ > > > > Not sure if the baseURL has to contain the application name in it or not. > > > > Cheers, > > David V > > > > > > > > > > On Sun, Mar 22, 2015 at 8:35 AM, Juan Pablo Santos Rodríguez < > > juanpablo.san...@gmail.com> wrote: > > > > > context root meaning context path, actually (typing on mobile) > > > > > > br, > > > juan pablo > > > El 21/3/2015 21:59, "Juan Pablo Santos Rodríguez" < > > > juanpablo.san...@gmail.com> escribió: > > > > > > > Hi Jim, > > > > > > > > The fact that you're getting the context-root on your urls suggests > > your > > > > tomcat is reading from a normal-deployed war. > > > > > > > > Would you mind deleting your tomcat's work folder so you can see > which > > > app > > > > is being readen/deployed? > > > > > > > > br, > > > > juan pablo > > > > El 21/3/2015 18:09, "Jim Willeke" <j...@willeke.com> escribió: > > > > > > > >> Yes it is deployed as root. > > > >> > > > >> What redirection? > > > >> > > > >> It has never been behind anything. > > > >> > > > >> Any ideas how to fix? > > > >> > > > >> -jim > > > >> On Mar 21, 2015 7:22 AM, "Juan Pablo Santos Rodríguez" < > > > >> juanpablo.san...@gmail.com> wrote: > > > >> > > > >> > Hi Jim, > > > >> > > > > >> > Did you have an Apache server in front of your tomcat? Seems > you're > > > >> serving > > > >> > your tomcat directly from www.ldapwiki.com. Were you deploying > > > JSPWiki > > > >> as > > > >> > a > > > >> > root app? Somehow the redirection from ldapwiki.com to your wiki > > > seems > > > >> > broken, be it because you deployed as a root app, and now is a > > normal > > > >> war, > > > >> > be it because you had an apache we server which is not visible > > > anymore, > > > >> be > > > >> > it because the redirection from ldapwiki.com to your tomcat has > > > >> changed, > > > >> > or > > > >> > something like that. > > > >> > > > > >> > As an aside, I'd recommend you to place an Apache server or > similar > > in > > > >> > front your tomcat so it only receives jspwiki petitions; f.ex., > your > > > >> tomcat > > > >> > manager is visible from internet, although it asks for > > user/password. > > > >> > > > > >> > > > > >> > HTH, > > > >> > juan pablo > > > >> > > > > >> > On Sat, Mar 21, 2015 at 10:49 AM, Jim Willeke <j...@willeke.com> > > > wrote: > > > >> > > > > >> > > Appears, for some reason, http://ldapwiki.com is not reading > the > > > >> > > jspwiki-custom.properties file > > > >> > > > > > >> > > > > > jspwiki.fileSystemProvider.pageDir=/home/tomcat/jspwiki-files/ldapwiki > > > >> > > > > > >> > > > > > >> > > > > >> > > > > > > jspwiki.basicAttachmentProvider.storageDir=/home/tomcat/jspwiki-files/ldapwiki/attachments > > > >> > > jspwiki.attachment.forbid=.html .htm .php .asp .exe > > > >> > > jspwiki.applicationName=ldapwiki > > > >> > > jspwiki.pageProvider=VersioningFileProvider > > > >> > > jspwiki.security=jaas > > > >> > > jspwiki.workDir=/usr/share/tomcat/work/ldapwiki > > > >> > > jspwiki.baseURL=http//ldapwiki.com/ > > > >> > > log4j.rootCategory=DEBUG,FileLog > > > >> > > log4j.appender.Filelog=org.apache.log4j.DailyRollingFileAppender > > > >> > > log4j.appender.Filelog.DatePattern='.'yyyy-MM-dd > > > >> > > log4j.appender.Filelog$.Append=true > > > >> > > log4j.appender.FileLog.File=/usr/share/tomcat/logs/ldapwiki.log > > > >> > > jspwiki.usePageCache=true > > > >> > > jspwiki.urlConstructor=ShortViewURLConstructor > > > >> > > jspwiki.shortURLConstructor.prefix=wiki/ > > > >> > > jspwiki.translatorReader.inlinePattern.1=*.jpg > > > >> > > jspwiki.translatorReader.inlinePattern.2=*.png > > > >> > > jspwiki.translatorReader.inlinePattern.3= > > > >> > > http://willeke.com/ASSETS/IMAGES/* > > > >> > > jspwiki.translatorReader.inlinePattern.4= > > > >> > > http://willeke.com/Family/Photos/* > > > >> > > > > > >> > > > > > >> > > When the page(s) load, they look like: > > > >> > > > > > >> > > http://ldapwiki.com/*JSPWiki*/images/out.png Failed to load > > > resource: > > > >> > the > > > >> > > server responded with a status of 404 (Not Found) > > > >> > > > > > >> > > http://ldapwiki.com/*JSPWiki*/attach/LeftMenu/donate_button_nocards.png > > > >> > > Failed to load resource: the server responded with a status of > 404 > > > >> (Not > > > >> > > Found) > > > >> > > http://ldapwiki.com/JSPWiki/templates/default/jspwiki.css > Failed > > to > > > >> load > > > >> > > resource: the server responded with a status of 404 (Not Found) > > > >> > > http://ldapwiki.com/JSPWiki/templates/default/jspwiki_print.css > > > >> Failed > > > >> > to > > > >> > > load resource: the server responded with a status of 404 (Not > > Found) > > > >> > > > > > >> > > When I would expect them to be more like: > > > >> > > http://ldapwiki.com/*ldapwiki*/templates/default/jspwiki.css > > > >> > > > > > >> > > I am unaware of anything changes recently that would have caused > > the > > > >> > change > > > >> > > as it was working. But of course something has changed. > > > >> > > > > > >> > > > > > >> > > -- > > > >> > > -jim > > > >> > > Jim Willeke > > > >> > > ᐧ > > > >> > > > > > >> > > > > >> ᐧ > > > >> > > > > > > > > > >