Tomcat policy file for XWiki 5.0.1

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Tomcat policy file for XWiki 5.0.1

Hoani CROSS
Hi,

I wanted to get SecurityManager properly activated for running xwiki 5.0.1
and after hours of testing, I got this version of the catalina.policy that
seems to work properly :

grant codeBase "file:${catalina.base}/webapps/xwiki/WEB-INF/lib/-" {
  permission java.util.PropertyPermission "*", "read, write";
// Needed by Hibernate and others
  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
  permission java.lang.RuntimePermission "createClassLoader";
  permission java.lang.RuntimePermission "setContextClassLoader";
  permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve";
  permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.catalina.loader";
  permission javax.management.MBeanServerPermission "createMBeanServer";
  permission javax.management.MBeanPermission "*", "registerMBean";
  permission javax.management.MBeanPermission "*", "unregisterMBean";
  permission javax.management.MBeanTrustPermission "register";
  permission java.lang.RuntimePermission "accessDeclaredMembers";
  permission java.lang.RuntimePermission "getenv.ProgramFiles";
  permission java.lang.RuntimePermission "getenv.APPDATA";
  permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect";
  permission java.lang.RuntimePermission "getClassLoader";
  permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.catalina.connector";
  permission javax.xml.bind.JAXBPermission "setDatatypeConverter";
  permission java.io.FilePermission
"/opt/openoffice.org3/program/soffice.bin", "read";
  permission java.io.FilePermission "/opt/libreoffice/program/soffice.bin",
"read";
  permission java.io.FilePermission
"/usr/lib/openoffice/program/soffice.bin", "read";
  permission java.io.SerializablePermission "allowSerializationReflection";
  permission java.lang.RuntimePermission "reflectionFactoryAccess";
  permission java.io.SerializablePermission "creator";
  permission java.io.FilePermission
"/usr/lib/libreoffice/program/soffice.bin", "read";
  permission java.lang.RuntimePermission
"accessClassInPackage.com.sun.jmx.interceptor";
  permission java.lang.RuntimePermission
"accessClassInPackage.com.sun.jmx.mbeanserver";
  permission javax.management.MBeanPermission "-#-[-]", "queryNames";
  permission javax.management.MBeanServerPermission "findMBeanServer";
  permission java.io.FilePermission "synonyms.txt", "read";
  permission java.io.FilePermission "lang/synonyms_en.txt", "read";
  permission java.lang.RuntimePermission "modifyThread";
  permission java.lang.RuntimePermission "getProtectionDomain";
  permission java.io.FilePermission "quartz.properties", "read";
  permission java.io.FilePermission "/templates/-", "read";
  permission java.io.FilePermission "/skins/-", "read";
  permission java.io.FilePermission "/resources/-", "read";
  permission java.io.SerializablePermission "enableSubclassImplementation";

//Allow file storage directory reading - for directory and everything
underneath
//This is dependent on the setting of environment.permanentDirectory in
xwiki.properties
permission java.io.FilePermission
"${catalina.base}${file.separator}xwikidata${file.separator}",
"read,write,delete";
permission java.io.FilePermission
"${catalina.base}${file.separator}xwikidata${file.separator}-",
"read,write,delete";
//Allow file storage directory reading - temporary directory and everything
underneath
//This is dependent on the setting of environment.temporaryDirectory in
xwiki.properties.
permission java.io.FilePermission
"${catalina.base}${file.separator}temp${file.separator}",
"read,write,delete";
permission java.io.FilePermission
"${catalina.base}${file.separator}temp${file.separator}-",
"read,write,delete";
};

Hope it would help.

Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat policy file for XWiki 5.0.1

vmassol
Administrator
Hi Hoani,

This is useful, would be nice to put it somewhere on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat

Thanks
-Vincent

On May 27, 2013, at 9:25 AM, Hoani Cross <[hidden email]> wrote:

> Hi,
>
> I wanted to get SecurityManager properly activated for running xwiki 5.0.1
> and after hours of testing, I got this version of the catalina.policy that
> seems to work properly :
>
> grant codeBase "file:${catalina.base}/webapps/xwiki/WEB-INF/lib/-" {
>  permission java.util.PropertyPermission "*", "read, write";
> // Needed by Hibernate and others
>  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
>  permission java.lang.RuntimePermission "createClassLoader";
>  permission java.lang.RuntimePermission "setContextClassLoader";
>  permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve";
>  permission java.lang.RuntimePermission
> "accessClassInPackage.org.apache.catalina.loader";
>  permission javax.management.MBeanServerPermission "createMBeanServer";
>  permission javax.management.MBeanPermission "*", "registerMBean";
>  permission javax.management.MBeanPermission "*", "unregisterMBean";
>  permission javax.management.MBeanTrustPermission "register";
>  permission java.lang.RuntimePermission "accessDeclaredMembers";
>  permission java.lang.RuntimePermission "getenv.ProgramFiles";
>  permission java.lang.RuntimePermission "getenv.APPDATA";
>  permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect";
>  permission java.lang.RuntimePermission "getClassLoader";
>  permission java.lang.RuntimePermission
> "accessClassInPackage.org.apache.catalina.connector";
>  permission javax.xml.bind.JAXBPermission "setDatatypeConverter";
>  permission java.io.FilePermission
> "/opt/openoffice.org3/program/soffice.bin", "read";
>  permission java.io.FilePermission "/opt/libreoffice/program/soffice.bin",
> "read";
>  permission java.io.FilePermission
> "/usr/lib/openoffice/program/soffice.bin", "read";
>  permission java.io.SerializablePermission "allowSerializationReflection";
>  permission java.lang.RuntimePermission "reflectionFactoryAccess";
>  permission java.io.SerializablePermission "creator";
>  permission java.io.FilePermission
> "/usr/lib/libreoffice/program/soffice.bin", "read";
>  permission java.lang.RuntimePermission
> "accessClassInPackage.com.sun.jmx.interceptor";
>  permission java.lang.RuntimePermission
> "accessClassInPackage.com.sun.jmx.mbeanserver";
>  permission javax.management.MBeanPermission "-#-[-]", "queryNames";
>  permission javax.management.MBeanServerPermission "findMBeanServer";
>  permission java.io.FilePermission "synonyms.txt", "read";
>  permission java.io.FilePermission "lang/synonyms_en.txt", "read";
>  permission java.lang.RuntimePermission "modifyThread";
>  permission java.lang.RuntimePermission "getProtectionDomain";
>  permission java.io.FilePermission "quartz.properties", "read";
>  permission java.io.FilePermission "/templates/-", "read";
>  permission java.io.FilePermission "/skins/-", "read";
>  permission java.io.FilePermission "/resources/-", "read";
>  permission java.io.SerializablePermission "enableSubclassImplementation";
>
> //Allow file storage directory reading - for directory and everything
> underneath
> //This is dependent on the setting of environment.permanentDirectory in
> xwiki.properties
> permission java.io.FilePermission
> "${catalina.base}${file.separator}xwikidata${file.separator}",
> "read,write,delete";
> permission java.io.FilePermission
> "${catalina.base}${file.separator}xwikidata${file.separator}-",
> "read,write,delete";
> //Allow file storage directory reading - temporary directory and everything
> underneath
> //This is dependent on the setting of environment.temporaryDirectory in
> xwiki.properties.
> permission java.io.FilePermission
> "${catalina.base}${file.separator}temp${file.separator}",
> "read,write,delete";
> permission java.io.FilePermission
> "${catalina.base}${file.separator}temp${file.separator}-",
> "read,write,delete";
> };
>
> Hope it would help.
>
> Hoani CROSS
> Globotraders Tahiti Founder [http://globotraders-tahiti.com]
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat policy file for XWiki 5.0.1

Hoani CROSS
Done.

Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]


2013/5/27 Vincent Massol <[hidden email]>

> Hi Hoani,
>
> This is useful, would be nice to put it somewhere on
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
>
> Thanks
> -Vincent
>
> On May 27, 2013, at 9:25 AM, Hoani Cross <[hidden email]>
> wrote:
>
> > Hi,
> >
> > I wanted to get SecurityManager properly activated for running xwiki
> 5.0.1
> > and after hours of testing, I got this version of the catalina.policy
> that
> > seems to work properly :
> >
> > grant codeBase "file:${catalina.base}/webapps/xwiki/WEB-INF/lib/-" {
> >  permission java.util.PropertyPermission "*", "read, write";
> > // Needed by Hibernate and others
> >  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
> >  permission java.lang.RuntimePermission "createClassLoader";
> >  permission java.lang.RuntimePermission "setContextClassLoader";
> >  permission java.net.SocketPermission "127.0.0.1:3306",
> "connect,resolve";
> >  permission java.lang.RuntimePermission
> > "accessClassInPackage.org.apache.catalina.loader";
> >  permission javax.management.MBeanServerPermission "createMBeanServer";
> >  permission javax.management.MBeanPermission "*", "registerMBean";
> >  permission javax.management.MBeanPermission "*", "unregisterMBean";
> >  permission javax.management.MBeanTrustPermission "register";
> >  permission java.lang.RuntimePermission "accessDeclaredMembers";
> >  permission java.lang.RuntimePermission "getenv.ProgramFiles";
> >  permission java.lang.RuntimePermission "getenv.APPDATA";
> >  permission java.lang.RuntimePermission
> "accessClassInPackage.sun.reflect";
> >  permission java.lang.RuntimePermission "getClassLoader";
> >  permission java.lang.RuntimePermission
> > "accessClassInPackage.org.apache.catalina.connector";
> >  permission javax.xml.bind.JAXBPermission "setDatatypeConverter";
> >  permission java.io.FilePermission
> > "/opt/openoffice.org3/program/soffice.bin", "read";
> >  permission java.io.FilePermission
> "/opt/libreoffice/program/soffice.bin",
> > "read";
> >  permission java.io.FilePermission
> > "/usr/lib/openoffice/program/soffice.bin", "read";
> >  permission java.io.SerializablePermission
> "allowSerializationReflection";
> >  permission java.lang.RuntimePermission "reflectionFactoryAccess";
> >  permission java.io.SerializablePermission "creator";
> >  permission java.io.FilePermission
> > "/usr/lib/libreoffice/program/soffice.bin", "read";
> >  permission java.lang.RuntimePermission
> > "accessClassInPackage.com.sun.jmx.interceptor";
> >  permission java.lang.RuntimePermission
> > "accessClassInPackage.com.sun.jmx.mbeanserver";
> >  permission javax.management.MBeanPermission "-#-[-]", "queryNames";
> >  permission javax.management.MBeanServerPermission "findMBeanServer";
> >  permission java.io.FilePermission "synonyms.txt", "read";
> >  permission java.io.FilePermission "lang/synonyms_en.txt", "read";
> >  permission java.lang.RuntimePermission "modifyThread";
> >  permission java.lang.RuntimePermission "getProtectionDomain";
> >  permission java.io.FilePermission "quartz.properties", "read";
> >  permission java.io.FilePermission "/templates/-", "read";
> >  permission java.io.FilePermission "/skins/-", "read";
> >  permission java.io.FilePermission "/resources/-", "read";
> >  permission java.io.SerializablePermission
> "enableSubclassImplementation";
> >
> > //Allow file storage directory reading - for directory and everything
> > underneath
> > //This is dependent on the setting of environment.permanentDirectory in
> > xwiki.properties
> > permission java.io.FilePermission
> > "${catalina.base}${file.separator}xwikidata${file.separator}",
> > "read,write,delete";
> > permission java.io.FilePermission
> > "${catalina.base}${file.separator}xwikidata${file.separator}-",
> > "read,write,delete";
> > //Allow file storage directory reading - temporary directory and
> everything
> > underneath
> > //This is dependent on the setting of environment.temporaryDirectory in
> > xwiki.properties.
> > permission java.io.FilePermission
> > "${catalina.base}${file.separator}temp${file.separator}",
> > "read,write,delete";
> > permission java.io.FilePermission
> > "${catalina.base}${file.separator}temp${file.separator}-",
> > "read,write,delete";
> > };
> >
> > Hope it would help.
> >
> > Hoani CROSS
> > Globotraders Tahiti Founder [http://globotraders-tahiti.com]
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat policy file for XWiki 5.0.1

vmassol
Administrator
Thanks!

-Vincent

On May 27, 2013, at 12:57 PM, Hoani Cross <[hidden email]> wrote:

> Done.
>
> Hoani CROSS
> Globotraders Tahiti Founder [http://globotraders-tahiti.com]
>
>
> 2013/5/27 Vincent Massol <[hidden email]>
>
>> Hi Hoani,
>>
>> This is useful, would be nice to put it somewhere on
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
>>
>> Thanks
>> -Vincent
>>
>> On May 27, 2013, at 9:25 AM, Hoani Cross <[hidden email]>
>> wrote:
>>
>>> Hi,
>>>
>>> I wanted to get SecurityManager properly activated for running xwiki
>> 5.0.1
>>> and after hours of testing, I got this version of the catalina.policy
>> that
>>> seems to work properly :
>>>
>>> grant codeBase "file:${catalina.base}/webapps/xwiki/WEB-INF/lib/-" {
>>> permission java.util.PropertyPermission "*", "read, write";
>>> // Needed by Hibernate and others
>>> permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
>>> permission java.lang.RuntimePermission "createClassLoader";
>>> permission java.lang.RuntimePermission "setContextClassLoader";
>>> permission java.net.SocketPermission "127.0.0.1:3306",
>> "connect,resolve";
>>> permission java.lang.RuntimePermission
>>> "accessClassInPackage.org.apache.catalina.loader";
>>> permission javax.management.MBeanServerPermission "createMBeanServer";
>>> permission javax.management.MBeanPermission "*", "registerMBean";
>>> permission javax.management.MBeanPermission "*", "unregisterMBean";
>>> permission javax.management.MBeanTrustPermission "register";
>>> permission java.lang.RuntimePermission "accessDeclaredMembers";
>>> permission java.lang.RuntimePermission "getenv.ProgramFiles";
>>> permission java.lang.RuntimePermission "getenv.APPDATA";
>>> permission java.lang.RuntimePermission
>> "accessClassInPackage.sun.reflect";
>>> permission java.lang.RuntimePermission "getClassLoader";
>>> permission java.lang.RuntimePermission
>>> "accessClassInPackage.org.apache.catalina.connector";
>>> permission javax.xml.bind.JAXBPermission "setDatatypeConverter";
>>> permission java.io.FilePermission
>>> "/opt/openoffice.org3/program/soffice.bin", "read";
>>> permission java.io.FilePermission
>> "/opt/libreoffice/program/soffice.bin",
>>> "read";
>>> permission java.io.FilePermission
>>> "/usr/lib/openoffice/program/soffice.bin", "read";
>>> permission java.io.SerializablePermission
>> "allowSerializationReflection";
>>> permission java.lang.RuntimePermission "reflectionFactoryAccess";
>>> permission java.io.SerializablePermission "creator";
>>> permission java.io.FilePermission
>>> "/usr/lib/libreoffice/program/soffice.bin", "read";
>>> permission java.lang.RuntimePermission
>>> "accessClassInPackage.com.sun.jmx.interceptor";
>>> permission java.lang.RuntimePermission
>>> "accessClassInPackage.com.sun.jmx.mbeanserver";
>>> permission javax.management.MBeanPermission "-#-[-]", "queryNames";
>>> permission javax.management.MBeanServerPermission "findMBeanServer";
>>> permission java.io.FilePermission "synonyms.txt", "read";
>>> permission java.io.FilePermission "lang/synonyms_en.txt", "read";
>>> permission java.lang.RuntimePermission "modifyThread";
>>> permission java.lang.RuntimePermission "getProtectionDomain";
>>> permission java.io.FilePermission "quartz.properties", "read";
>>> permission java.io.FilePermission "/templates/-", "read";
>>> permission java.io.FilePermission "/skins/-", "read";
>>> permission java.io.FilePermission "/resources/-", "read";
>>> permission java.io.SerializablePermission
>> "enableSubclassImplementation";
>>>
>>> //Allow file storage directory reading - for directory and everything
>>> underneath
>>> //This is dependent on the setting of environment.permanentDirectory in
>>> xwiki.properties
>>> permission java.io.FilePermission
>>> "${catalina.base}${file.separator}xwikidata${file.separator}",
>>> "read,write,delete";
>>> permission java.io.FilePermission
>>> "${catalina.base}${file.separator}xwikidata${file.separator}-",
>>> "read,write,delete";
>>> //Allow file storage directory reading - temporary directory and
>> everything
>>> underneath
>>> //This is dependent on the setting of environment.temporaryDirectory in
>>> xwiki.properties.
>>> permission java.io.FilePermission
>>> "${catalina.base}${file.separator}temp${file.separator}",
>>> "read,write,delete";
>>> permission java.io.FilePermission
>>> "${catalina.base}${file.separator}temp${file.separator}-",
>>> "read,write,delete";
>>> };
>>>
>>> Hope it would help.
>>>
>>> Hoani CROSS
>>> Globotraders Tahiti Founder [http://globotraders-tahiti.com]
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RES: Tomcat policy file for XWiki 5.0.1

Danilo Amaral de Oliveira
Hello People,

I am trying to install the Xwiki to build a enterprise wiki in my company but I am facing some problems.

I download the zip package available and I installed the Xwiki in the C: directory.
My  server configuration is:
Windows 2008 Server R2 x64
Server JRE 7
Xwiki Enterprise 5.0.2

The address of my wiki is:
MGINFRAWEBP3.energisa.corp

When I access the wiki by:
localhost:8080
This problem doesn't happen!

The xwiki start normally but when I try to change (insert or remove) a macro the following error appear:

500 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 500 Error number 2 in 0: The wiki [mginfrawebp3] does not exist</title> </head> <body><h2>HTTP ERROR 500</h2> <p>Problem accessing /xwiki/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc. Reason: <pre> Error number 2 in 0: The wiki [mginfrawebp3] does not exist</pre></p><h3>Caused by:</h3><pre>com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki [mginfrawebp3] does not exist at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.initializeXWikiContext(XWikiContextInitializationFilter.java:134) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:83) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:943) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) </pre> <hr /><i><small>Powered by Jetty://</small></i><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </body> </html>

I couldn't find any reasonable solution.



Thank you in advance.

Danilo Amaral de Oliveira
Engenheiro Trainee
GerĂȘncia Corporativa de Infraestrutura de TI

Minas Gerais
(0xx32) 9111-6867



_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RES: Tomcat policy file for XWiki 5.0.1

vmassol
Administrator
Hi,

Please use XWiki 5.0.2, we fixed this issue.

Sorry and thanks
-Vincent

On May 27, 2013, at 1:44 PM, Danilo Amaral de Oliveira <[hidden email]> wrote:

> Hello People,
>
> I am trying to install the Xwiki to build a enterprise wiki in my company but I am facing some problems.
>
> I download the zip package available and I installed the Xwiki in the C: directory.
> My  server configuration is:
> Windows 2008 Server R2 x64
> Server JRE 7
> Xwiki Enterprise 5.0.2
>
> The address of my wiki is:
> MGINFRAWEBP3.energisa.corp
>
> When I access the wiki by:
> localhost:8080
> This problem doesn't happen!
>
> The xwiki start normally but when I try to change (insert or remove) a macro the following error appear:
>
> 500 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 500 Error number 2 in 0: The wiki [mginfrawebp3] does not exist</title> </head> <body><h2>HTTP ERROR 500</h2> <p>Problem accessing /xwiki/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc. Reason: <pre> Error number 2 in 0: The wiki [mginfrawebp3] does not exist</pre></p><h3>Caused by:</h3><pre>com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki [mginfrawebp3] does not exist at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.initializeXWikiContext(XWikiContextInitializationFilter.java:134) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:83) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:943) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) </pre> <hr /><i><small>Powered by Jetty://</small></i><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </body> </html>
>
> I couldn't find any reasonable solution.
>
>
>
> Thank you in advance.
>
> Danilo Amaral de Oliveira
> Engenheiro Trainee
> GerĂȘncia Corporativa de Infraestrutura de TI
>
> Minas Gerais
> (0xx32) 9111-6867
>
>
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RES: Tomcat policy file for XWiki 5.0.1

Thomas Mortagne
Administrator
On Mon, May 27, 2013 at 1:56 PM, Vincent Massol <[hidden email]> wrote:
> Hi,
>
> Please use XWiki 5.0.2, we fixed this issue.

He seems to use it already. From what I understand the WYSIWYG/GWT
does not fallback on main wiki when the wiki does not exists (which
means it does not go trough XWiki#getRequestWikiName which is probably
normal since it probably don't have the same URL scheme). We also
probably have the same issue with all the other insterfaces (REST,
webdav, etc...).

Could you create a detaield issue on http://jira.xwiki.org. We will
look at it ASAP.

>
> Sorry and thanks
> -Vincent
>
> On May 27, 2013, at 1:44 PM, Danilo Amaral de Oliveira <[hidden email]> wrote:
>
>> Hello People,
>>
>> I am trying to install the Xwiki to build a enterprise wiki in my company but I am facing some problems.
>>
>> I download the zip package available and I installed the Xwiki in the C: directory.
>> My  server configuration is:
>> Windows 2008 Server R2 x64
>> Server JRE 7
>> Xwiki Enterprise 5.0.2
>>
>> The address of my wiki is:
>> MGINFRAWEBP3.energisa.corp
>>
>> When I access the wiki by:
>> localhost:8080
>> This problem doesn't happen!
>>
>> The xwiki start normally but when I try to change (insert or remove) a macro the following error appear:
>>
>> 500 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 500 Error number 2 in 0: The wiki [mginfrawebp3] does not exist</title> </head> <body><h2>HTTP ERROR 500</h2> <p>Problem accessing /xwiki/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc. Reason: <pre> Error number 2 in 0: The wiki [mginfrawebp3] does not exist</pre></p><h3>Caused by:</h3><pre>com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki [mginfrawebp3] does not exist at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.initializeXWikiContext(XWikiContextInitializationFilter.java:134) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:83) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:943) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) </pre> <hr /><i><small>Powered by Jetty://</small></i><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </body> </html>
>>
>> I couldn't find any reasonable solution.
>>
>>
>>
>> Thank you in advance.
>>
>> Danilo Amaral de Oliveira
>> Engenheiro Trainee
>> GerĂȘncia Corporativa de Infraestrutura de TI
>>
>> Minas Gerais
>> (0xx32) 9111-6867
>>
>>
>>
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users