[ 
https://issues.apache.org/jira/browse/JSPWIKI-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145347#comment-18145347
 ] 

Alex O'Ree commented on JSPWIKI-1199:
-------------------------------------

ok root cause. It's the portable build specifically. It is deployed to tomcat 
in a non traditional way that breaks tomcat's classloader isolation a bit.

 

basically all the jars for jspwiki are in tomcat/lib and the webapps/department 
or webapps/personal/ contain just the configuration files specific to each one.

this arrangement causes numerous problems as the code base isn't really 
designed for this situation. Some code has static initializers which can get 
overridden by different webapps etc.

Back to this issue, since the jar's are in tomcat, they can classload the xml 
file for some reason. jspwiki-custom.properties loads ok though so i'm still 
not entirely sure what's going on. 

But the described issue is an issue caused by ehcache in this environment. I 
stood up an independent tomcat, loaded the jspwiki war file with the same 
config data as department (with ehcache enabled) and it fired right up.

> Ran into a strange problem of a wiki pages on disk, yet not found in the 
> browser
> --------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-1199
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1199
>             Project: JSPWiki
>          Issue Type: Bug
>         Environment: windows in current master
>            Reporter: Alex O'Ree
>            Priority: Minor
>
> I'm not entirely sure what's going on here, but i managed to break it.
> Trying to access a variety of 'default' pages, such as UnusedPages, etc.
> The files exist within the wiki storage directory, however the browser says 
> it does not, why not make it. If i click on the link to make/edit the page, 
> the contents shows up in the edit panel.
> If i just hit save (no edits), i'm back to, This page does not exist. Why 
> don’t you go and [create 
> it|http://localhost:8080/JSPWiki/Edit.jsp?page=UnusedPages]?
> If i hit edit and change the page, whitespace, etc, save, then the page 
> renders in viewing mode.
> I've stepped through the code with the debugger and everything appears ok in 
> terms of finding and loading the file.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to