You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2011/01/10 15:23:47 UTC

[jira] Resolved: (JSPWIKI-646) Execption when running the .war file without unpacking it

     [ https://issues.apache.org/jira/browse/JSPWIKI-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske resolved JSPWIKI-646.
----------------------------------

    Resolution: Fixed

Better late than never :

Fixed in 2.8.4-svn-13 and 3.0.0-svn-219

> 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, 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, paxrunner.log
>
>
> 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.


Re: [jira] Resolved: (JSPWIKI-646) Execption when running the .war file without unpacking it

Posted by Harry Metske <ha...@gmail.com>.
2011/1/10 Florian Holeczek <fl...@holeczek.de>

> Hi all,
>
> is this fix really part of the 2.8.4 release? I just checked the 2.8
> branch:
>
> * According to the ChangeLog both in the repository and on
> http://www.ecyrd.com/~jalkanen/JSPWiki/2.8.4/ChangeLog<http://www.ecyrd.com/%7Ejalkanen/JSPWiki/2.8.4/ChangeLog>,
> there is no 2.8.4-svn-13.
>

it looks like this is not updated anymore since the switch to 2.8.5


> * The 2.8.4 download page on jspwiki.org states the release was from
> 9-May-2010.
>

same story


> * Subversion history tells that Harry committed this fix on 16-May-2010.
>
indeed, I checked
http://svn.eu.apache.org/viewvc?view=revision&revision=944814 , it should
really be in the code.
Two commits later we switched to 2.8.5 (changing 2.8.4-svn-13 to
2.8.5-svn-1), and I accidently wiped out a piece of the trail in Changelog:
http://svn.eu.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/ChangeLog?r1=944818&r2=996100
But the code is still in place.

kind regards,
Harry



>
> Regards
>  Florian
>
> ----- Ursprüngliche Mail -----
> Von: "Harry Metske (JIRA)" <ji...@apache.org>
> An: jspwiki-dev@incubator.apache.org
> Gesendet: Montag, 10. Januar 2011 15:23:47
> Betreff: [jira] Resolved: (JSPWIKI-646) Execption when running the .war
> file without unpacking it
>
>
>     [
> https://issues.apache.org/jira/browse/JSPWIKI-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Harry Metske resolved JSPWIKI-646.
> ----------------------------------
>
>    Resolution: Fixed
>
> Better late than never :
>
> Fixed in 2.8.4-svn-13 and 3.0.0-svn-219
>
> > 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, 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, paxrunner.log
> >
> >
> > 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.
>
>

Re: [jira] Resolved: (JSPWIKI-646) Execption when running the .war file without unpacking it

Posted by Florian Holeczek <fl...@holeczek.de>.
Hi all,

is this fix really part of the 2.8.4 release? I just checked the 2.8 branch:

* According to the ChangeLog both in the repository and on http://www.ecyrd.com/~jalkanen/JSPWiki/2.8.4/ChangeLog, there is no 2.8.4-svn-13.
* The 2.8.4 download page on jspwiki.org states the release was from 9-May-2010.
* Subversion history tells that Harry committed this fix on 16-May-2010.

Regards
 Florian

----- Ursprüngliche Mail -----
Von: "Harry Metske (JIRA)" <ji...@apache.org>
An: jspwiki-dev@incubator.apache.org
Gesendet: Montag, 10. Januar 2011 15:23:47
Betreff: [jira] Resolved: (JSPWIKI-646) Execption when running the .war file without unpacking it


     [ https://issues.apache.org/jira/browse/JSPWIKI-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske resolved JSPWIKI-646.
----------------------------------

    Resolution: Fixed

Better late than never :

Fixed in 2.8.4-svn-13 and 3.0.0-svn-219

> 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, 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, paxrunner.log
>
>
> 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.