mvnforum context_path problems

Fri, Jan 12, 2007

So here’s the problem I had with mvnForum in the latest CLAN release. Threads coming out of the database had their icons displayed just fine. All icons were prefixed with the server_path from mvncore.xml:

However, icons that were referenced from JSPs, using < %= context_path %> where coming out blank with this URL:


Our mvncore.xml setting was:


I just couldn’t work out why the icons weren’t displaying. Then I finally found the cause of the problem. Nothing to do with mvnForum, it was Tomcat. The Host was set to:

<Host name=“” debug=“0” appBase="/WWW/" unpackWARs=“true” autoDeploy=“true”>   <Context path="/" docBase=“” debug=“0”>     <Valve className=“org.apache.catalina.valves.AccessLogValve”            directory=“logs”            prefix=“”            suffix="-access_log"            pattern=“common”            rotatable=“false”            resolveHosts=“true”/>   </Context> </Host>

so I corrected it to:

<Host name=“” debug=“0” appBase="/WWW/" unpackWARs=“true” autoDeploy=“true”>   <Context path="" docBase="" debug=“0”>     <Valve className=“org.apache.catalina.valves.AccessLogValve”            directory=“logs”            prefix=“”            suffix="-access_log"            pattern=“common”            rotatable=“false”            resolveHosts=“true”/>   </Context> </Host>

and it all worked!

comments powered by Disqus