incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Küspert (JIRA) <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-646) Execption when running the .war file without unpacking it
Date Thu, 22 Apr 2010 17:45:49 GMT

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

Matthias Küspert commented on JSPWIKI-646:
------------------------------------------

Correction: when running the test-case the output will look like

- successful access for web.xml:

[Thread-1] DEBUG org.ops4j.pax.web.service.jetty.internal.HttpServiceContext - getting resource:
[/WEB-INF/web.xml]
[Thread-1] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - Searching
bundle [JSPWiki [1]] for resource [/WEB-INF/web.xml], normalized to [WEB-INF/web.xml]
[Thread-1] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - Resource
found as url [bundle://1.0:36/WEB-INF/web.xml]
[Thread-1] DEBUG org.ops4j.pax.web.service.jetty.internal.HttpServiceContext - found resource:
bundle://1.0:36/WEB-INF/web.xml

- failed access for jspwiki.properties:

[Thread-1] DEBUG org.mortbay.jetty./jspwiki - JSPWiki: Unable to load and setup properties
from jspwiki.properties. Failed to start managers: File /WEB-INF/jspwiki.policy does not exist,
or the SecurityManager prohibited access to it.
[Thread-1] DEBUG org.mortbay.jetty./jspwiki - ERROR: Failed to create a Wiki engine: JSPWiki:
Unable to load and setup properties from jspwiki.properties. Failed to start managers: File
/WEB-INF/jspwiki.policy does not exist, or the SecurityManager prohibited access to it.
[Thread-1] WARN org.mortbay.jetty - failed WikiServletFilter
com.ecyrd.jspwiki.InternalWikiException: No wiki engine, check logs.
	at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:350)
	at com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:79)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)


> Execption when running the .war file without unpacking it
> ---------------------------------------------------------
>
>                 Key: JSPWIKI-646
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-646
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Servlet Container/Java compatibility
>    Affects Versions: 2.8.3
>         Environment: Pax-Web 0.7.2, Felix 2.0.2, Pax-Runner
>            Reporter: Matthias Küspert
>         Attachments: jspwiki-conf-1.0.0-SNAPSHOT.jar, jspwiki.bnd
>
>
> When JSPWiki is run directly from the .war (not unpacking it into a directory) startup
fails with the following exception:
> java.lang.IllegalArgumentException: File /WEB-INF/jspwiki.policy does not exist, or the
SecurityManager prohibited access to it.
> 	at org.freshcookies.security.policy.PolicyReader.<init>(PolicyReader.java:188)
> 	at org.freshcookies.security.policy.LocalPolicy.refresh(LocalPolicy.java:324)
> 	at com.ecyrd.jspwiki.auth.AuthorizationManager.initialize(AuthorizationManager.java:416)
> 	at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:556)
> 	at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:403)
> 	at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:344)
> 	at com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:79)
> 	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
> Other files from WEB-INF are read without problems, e.g. web.xml:
> [FelixStartLevel] DEBUG org.ops4j.pax.web.service.jetty.internal.HttpServiceContext -
getting resource: [/WEB-INF/web.xml]
> [FelixStartLevel] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext
- Searching bundle [JSPWiki [1]] for resource [/WEB-INF/web.xml], normalized to [WEB-INF/web.xml]
> [FelixStartLevel] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext
- Resource found as url [bundle://1.0:36/WEB-INF/web.xml]
> [FelixStartLevel] DEBUG org.ops4j.pax.web.service.jetty.internal.HttpServiceContext -
found resource: bundle://1.0:36/WEB-INF/web.xml

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message