incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Küspert (JIRA) <>
Subject [jira] Commented: (JSPWIKI-646) Execption when running the .war file without unpacking it
Date Sat, 15 May 2010 22:39:42 GMT


Matthias Küspert commented on JSPWIKI-646:

It didn't work: I'm getting the same error message as before.

Looking at the decompiled code from the .war I believe the problem is with the if statement
around the code copying the policy file in AuthenticationManager.findConfigFile(): instead

    if(path == null && engine.getServletContext() != null)

it should be

    if (path != null ...

because we want the file to be copied if the resource is found in one of the above calls.
Do you agree?

Also the log-entry says:

We found security policy URL: bundle://1.0:1/WEB-INF/jspwiki.policy and transformed it to
file /WEB-INF/jspwiki.policy

Shouldn't it be: ... to file <tmp-file-name>?

> Execption when running the .war file without unpacking it
> ---------------------------------------------------------
>                 Key: JSPWIKI-646
>                 URL:
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Servlet Container/Java compatibility
>    Affects Versions: 2.8.3, 3.0
>         Environment: Pax-Web 0.7.2, Felix 2.0.2, Pax-Runner
>            Reporter: Matthias Küspert
>            Assignee: Harry Metske
>            Priority: Minor
>         Attachments: JSPWIKI-646.patch, 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<init>(
> 	at
> 	at com.ecyrd.jspwiki.auth.AuthorizationManager.initialize(
> 	at com.ecyrd.jspwiki.WikiEngine.initialize(
> 	at com.ecyrd.jspwiki.WikiEngine.<init>(
> 	at com.ecyrd.jspwiki.WikiEngine.getInstance(
> 	at com.ecyrd.jspwiki.ui.WikiServletFilter.init(
> 	at org.mortbay.jetty.servlet.FilterHolder.doStart(
> 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.

View raw message