hi everyone, i'm trying to set up latest xwiki version on a debian/tomcat/mysql platform :) the xwiki webapp can't be deployed by Tomcat, and the tomcat log says : ## Jan 22, 2007 3:18:12 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory xwiki org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370) at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4114) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.lang.ExceptionInInitializerError at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 29 more Caused by: java.security.AccessControlException: access denied (java.io.FilePermission xwiki.log write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkWrite(SecurityManager.java:962) at java.io.FileOutputStream.<init>(FileOutputStream.java:169) at java.io.FileOutputStream.<init>(FileOutputStream.java:102) at org.apache.log4j.FileAppender.setFile(FileAppender.java:289) at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468) at org.apache.log4j.LogManager.<clinit>(LogManager.java:122) ... 37 more ## It tells me that it can't write the xwiki.log file, but I don't know where this file has to be, so I could give the right permissions on the filesystem !! (I suppose that the owner of this file is the tomcat user) Thanks in advance Julien Oix UFR d'Informatique - Universit� Paris Diderot Bureau 5C01 (5�me �tage) 175 rue du Chevaleret 75013 PARIS Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
Hi Julien, The xwiki.log file is defined in the log4j.properties file located in your main xwiki JAR. There's no absolute nor relative path defined for it which means it'll be created in the directory from where you have started Tomcat. Hope it helps, -Vincent On Jan 22, 2007, at 3:33 PM, [email protected] wrote:
hi everyone,
i'm trying to set up latest xwiki version on a debian/tomcat/mysql platform :)
the xwiki webapp can't be deployed by Tomcat, and the tomcat log says :
##
Jan 22, 2007 3:18:12 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory xwiki org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance (LogFactoryImpl.java:538) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance (LogFactoryImpl.java:235) at org.apache.commons.logging.LogFactory.getLog (LogFactory.java:370) at org.apache.catalina.core.ContainerBase.getLogger (ContainerBase.java:380) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4114) at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$0 (ContainerBase.java:743) at org.apache.catalina.core.ContainerBase $PrivilegedAddChild.run(ContainerBase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:737) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory (HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start (StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442) at org.apache.catalina.core.StandardService.start (StandardService.java:450) at org.apache.catalina.core.StandardServer.start (StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java: 551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:432) Caused by: java.lang.ExceptionInInitializerError at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger (Log4JLogger.java:283) at org.apache.commons.logging.impl.Log4JLogger.<init> (Log4JLogger.java:108) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance (Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance (LogFactoryImpl.java:529) ... 29 more Caused by: java.security.AccessControlException: access denied (java.io.FilePermission xwiki.log write) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:264) at java.security.AccessController.checkPermission (AccessController.java:427) at java.lang.SecurityManager.checkPermission (SecurityManager.java:532) at java.lang.SecurityManager.checkWrite (SecurityManager.java:962) at java.io.FileOutputStream.<init>(FileOutputStream.java:169) at java.io.FileOutputStream.<init>(FileOutputStream.java:102) at org.apache.log4j.FileAppender.setFile(FileAppender.java: 289) at org.apache.log4j.RollingFileAppender.setFile (RollingFileAppender.java:165) at org.apache.log4j.FileAppender.activateOptions (FileAppender.java:163) at org.apache.log4j.config.PropertySetter.activate (PropertySetter.java:256) at org.apache.log4j.config.PropertySetter.setProperties (PropertySetter.java:132) at org.apache.log4j.config.PropertySetter.setProperties (PropertySetter.java:96) at org.apache.log4j.PropertyConfigurator.parseAppender (PropertyConfigurator.java:654) at org.apache.log4j.PropertyConfigurator.parseCategory (PropertyConfigurator.java:612) at org.apache.log4j.PropertyConfigurator.configureRootCategory (PropertyConfigurator.java:509) at org.apache.log4j.PropertyConfigurator.doConfigure (PropertyConfigurator.java:415) at org.apache.log4j.PropertyConfigurator.doConfigure (PropertyConfigurator.java:441) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure (OptionConverter.java:468) at org.apache.log4j.LogManager.<clinit>(LogManager.java:122) ... 37 more ##
It tells me that it can't write the xwiki.log file, but I don't know where this file has to be, so I could give the right permissions on the filesystem !!
(I suppose that the owner of this file is the tomcat user)
Thanks in advance
Julien Oix UFR d'Informatique - Université Paris Diderot
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
Vincent Massol wrote:
Hi Julien,
The xwiki.log file is defined in the log4j.properties file located in your main xwiki JAR. There's no absolute nor relative path defined for it which means it'll be created in the directory from where you have started Tomcat.
Hope it helps, -Vincent
On Jan 22, 2007, at 3:33 PM, [email protected] wrote:
hi everyone,
i'm trying to set up latest xwiki version on a debian/tomcat/mysql platform :)
the xwiki webapp can't be deployed by Tomcat, and the tomcat log says :
##
Jan 22, 2007 3:18:12 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory xwiki org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370) at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4114)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.lang.ExceptionInInitializerError at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 29 more Caused by: java.security.AccessControlException: access denied (java.io.FilePermission xwiki.log write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkWrite(SecurityManager.java:962) at java.io.FileOutputStream.<init>(FileOutputStream.java:169) at java.io.FileOutputStream.<init>(FileOutputStream.java:102) at org.apache.log4j.FileAppender.setFile(FileAppender.java:289) at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:122) ... 37 more ##
It tells me that it can't write the xwiki.log file, but I don't know where this file has to be, so I could give the right permissions on the filesystem !!
(I suppose that the owner of this file is the tomcat user)
Thanks in advance
Julien Oix UFR d'Informatique - Université Paris Diderot
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hi Vincent, I can't find any log4j.properties file in the archive xwiki-1.0-beta-2.war. But I have found one in the xwiki-1.0-beta-2.jar archive ? Do I need that archive for a basic use ? Moreover, there is no directive in this file which tells me where the xwiki.log is written ... Thank U :) -- Julien Oix UFR d'Informatique - Université Paris Diderot Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
On Jan 22, 2007, at 4:47 PM, Julien Oix wrote:
Vincent Massol wrote:
Hi Julien,
The xwiki.log file is defined in the log4j.properties file located in your main xwiki JAR. There's no absolute nor relative path defined for it which means it'll be created in the directory from where you have started Tomcat.
Hope it helps, -Vincent
On Jan 22, 2007, at 3:33 PM, [email protected] wrote:
hi everyone,
i'm trying to set up latest xwiki version on a debian/tomcat/ mysql platform :)
the xwiki webapp can't be deployed by Tomcat, and the tomcat log says :
##
Jan 22, 2007 3:18:12 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory xwiki org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError)
[snip]
It tells me that it can't write the xwiki.log file, but I don't know where this file has to be, so I could give the right permissions on the filesystem !!
(I suppose that the owner of this file is the tomcat user)
[snip]
Hi Vincent,
I can't find any log4j.properties file in the archive xwiki-1.0- beta-2.war.
But I have found one in the xwiki-1.0-beta-2.jar archive ?
Yes. As I said it was in the xwiki JAR...
Do I need that archive for a basic use ?
Yes. You need everything in the WAR!
Moreover, there is no directive in this file which tells me where the xwiki.log is written ...
I already answered this question, please check my last email. Thanks -Vincent ___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
Vincent Massol wrote:
On Jan 22, 2007, at 4:47 PM, Julien Oix wrote:
Vincent Massol wrote:
Hi Julien,
The xwiki.log file is defined in the log4j.properties file located in your main xwiki JAR. There's no absolute nor relative path defined for it which means it'll be created in the directory from where you have started Tomcat.
Hope it helps, -Vincent
On Jan 22, 2007, at 3:33 PM, [email protected] wrote:
hi everyone,
i'm trying to set up latest xwiki version on a debian/tomcat/mysql platform :)
the xwiki webapp can't be deployed by Tomcat, and the tomcat log says :
##
Jan 22, 2007 3:18:12 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory xwiki org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError)
[snip]
It tells me that it can't write the xwiki.log file, but I don't know where this file has to be, so I could give the right permissions on the filesystem !!
(I suppose that the owner of this file is the tomcat user)
[snip]
Hi Vincent,
I can't find any log4j.properties file in the archive xwiki-1.0-beta-2.war.
But I have found one in the xwiki-1.0-beta-2.jar archive ?
Yes. As I said it was in the xwiki JAR...
Do I need that archive for a basic use ?
Yes. You need everything in the WAR!
Moreover, there is no directive in this file which tells me where the xwiki.log is written ...
I already answered this question, please check my last email.
Thanks -Vincent
___________________________________________________________________________Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hi vincent (and the others !), according to the doc ( http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat ), only the xwiki-1.0-beta-2.war file is needed with the Tomcat container, isn't it ? If not, in which folder do i need to extract xwiki-1.0-beta-2.jar ? [TOMCAT_HOME]/webapps/xwiki/ ? [TOMCAT_HOME]/webapps/xwiki/WEB-INF/ ? Moreover, I stop/start tomcat with the default /etc/init.d/tomcat55 script. Even calling it from [TOMCAT_LOG_FOLDER] doens't solve the problem, I always got this " java.security.AccessControlException: access denied (java.io.FilePermission xwiki.log write)" in my [TOMCAT_LOG_FOLDER]/catalina_$DATE ... Maybe I miss something :) Thanks ! -- Julien Oix UFR d'Informatique - Université Paris Diderot Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
On Jan 23, 2007, at 1:53 PM, Julien Oix wrote:
Vincent Massol wrote:
On Jan 22, 2007, at 4:47 PM, Julien Oix wrote:
Vincent Massol wrote:
Hi Julien,
The xwiki.log file is defined in the log4j.properties file located in your main xwiki JAR. There's no absolute nor relative path defined for it which means it'll be created in the directory from where you have started Tomcat.
Hope it helps, -Vincent
On Jan 22, 2007, at 3:33 PM, [email protected] wrote:
hi everyone,
i'm trying to set up latest xwiki version on a debian/tomcat/ mysql platform :)
the xwiki webapp can't be deployed by Tomcat, and the tomcat log says :
##
Jan 22, 2007 3:18:12 PM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory xwiki org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError)
[snip]
It tells me that it can't write the xwiki.log file, but I don't know where this file has to be, so I could give the right permissions on the filesystem !!
(I suppose that the owner of this file is the tomcat user)
[snip]
Hi Vincent,
I can't find any log4j.properties file in the archive xwiki-1.0- beta-2.war.
But I have found one in the xwiki-1.0-beta-2.jar archive ?
Yes. As I said it was in the xwiki JAR...
Do I need that archive for a basic use ?
Yes. You need everything in the WAR!
Moreover, there is no directive in this file which tells me where the xwiki.log is written ...
I already answered this question, please check my last email.
Thanks -Vincent
Hi vincent (and the others !),
according to the doc ( http://www.xwiki.org/xwiki/bin/view/ AdminGuide/InstallationTomcat ), only the xwiki-1.0-beta-2.war file is needed with the Tomcat container, isn't it ?
The doc is correct :-)
If not, in which folder do i need to extract xwiki-1.0-beta-2.jar ? [TOMCAT_HOME]/webapps/xwiki/ ? [TOMCAT_HOME]/webapps/xwiki/WEB-INF/ ?
Why would you need to extract any file???
Moreover, I stop/start tomcat with the default /etc/init.d/tomcat55 script. Even calling it from [TOMCAT_LOG_FOLDER] doens't solve the problem, I always got this " java.security.AccessControlException: access denied (java.io.FilePermission xwiki.log write)" in my [TOMCAT_LOG_FOLDER]/catalina_$DATE ...
Maybe I miss something :)
You're starting xwiki under a given user. Try creating a file in the directory where you're starting xwiki with that user. My guess is that you won't have the rights. -Vincent ___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
(cleaning the post, see the previous in the same thread) Abstract : tryin' to install xwiki 1.0 beta 2 (debian, apache, tomcat container, mod_jk connector, MySQL database) Hi Vincent, U force me to modify the /etc/passwd in order my tomcat user can login to a shell ;) # starting tomcat as root in the tomcat log folder didascalie:/var/log/tomcat5.5# pwd /var/log/tomcat5.5 didascalie:/var/log/tomcat5.5# /etc/init.d/tomcat5.5 restart Stopping Tomcat servlet engine: tomcat5.5 (not running). Starting Tomcat servlet engine: tomcat5.5. didascalie:/var/log/tomcat5.5# # login as tomcat55, the user running tomcat didascalie:/var/log/tomcat5.5# su - tomcat55 tomcat55@didascalie:~$ cd /var/log/tomcat5.5/ tomcat55@didascalie:/var/log/tomcat5.5$ touch toto tomcat55@didascalie:/var/log/tomcat5.5$ ls -l total 16 -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 admin.2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 8959 2007-01-23 14:42 catalina_2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 855 2007-01-23 14:42 catalina.2007-01-23.log prwx------ 1 tomcat55 root 0 2007-01-23 14:42 catalina.out -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 host-manager.2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 localhost.2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 manager.2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:43 toto tomcat55@didascalie:/var/log/tomcat5.5$ So, the user running tomcat has the good rights to write files in the tomcat log folder ... :) thanks, -- Julien Oix UFR d'Informatique - Université Paris Diderot Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
Julien, I'm not going to solve this for you... (and I don't have access to your machine). The only thing I can tell you is what I've already told you: xwiki wants to write a xwiki.log file in the directory where it is started. Now I'll let you find out from what directory you're starting it. If you want to change the location of the log file you'll need to unpack the WAR file, unjar the xwiki jar, modify the log4j.properties file so that the log file is created in the directory you want and repack the whole thing. Hmm... Actually there might be a simpler solution: just create a new log4j.properties file and place it before the xwiki war in the Tomcat classpaths. Note: I haven't done that so don't ask me how ;-) When you've found out how to make all this work, it would be nice to post back so that others can learn from your case. Thanks -Vincent On Jan 23, 2007, at 2:44 PM, Julien Oix wrote:
(cleaning the post, see the previous in the same thread)
Abstract : tryin' to install xwiki 1.0 beta 2 (debian, apache, tomcat container, mod_jk connector, MySQL database)
Hi Vincent,
U force me to modify the /etc/passwd in order my tomcat user can login to a shell ;)
# starting tomcat as root in the tomcat log folder didascalie:/var/log/tomcat5.5# pwd /var/log/tomcat5.5 didascalie:/var/log/tomcat5.5# /etc/init.d/tomcat5.5 restart Stopping Tomcat servlet engine: tomcat5.5 (not running). Starting Tomcat servlet engine: tomcat5.5. didascalie:/var/log/tomcat5.5#
# login as tomcat55, the user running tomcat didascalie:/var/log/tomcat5.5# su - tomcat55 tomcat55@didascalie:~$ cd /var/log/tomcat5.5/ tomcat55@didascalie:/var/log/tomcat5.5$ touch toto tomcat55@didascalie:/var/log/tomcat5.5$ ls -l total 16 -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 admin. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 8959 2007-01-23 14:42 catalina_2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 855 2007-01-23 14:42 catalina. 2007-01-23.log prwx------ 1 tomcat55 root 0 2007-01-23 14:42 catalina.out -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 host-manager. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 localhost. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 manager. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:43 toto tomcat55@didascalie:/var/log/tomcat5.5$
So, the user running tomcat has the good rights to write files in the tomcat log folder ... :)
thanks,
-- Julien Oix UFR d'Informatique - Université Paris Diderot
Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS
Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
Hi, The problem is in the security model (see http://jira.xwiki.org/jira/browse/XWIKI-348 ). Debian uses tomcat with the java security turned on. Until we fix this, the only solution I know is to turn it off. Sergiu On 1/23/07, Vincent Massol <[email protected]> wrote:
Julien,
I'm not going to solve this for you... (and I don't have access to your machine). The only thing I can tell you is what I've already told you: xwiki wants to write a xwiki.log file in the directory where it is started.
Now I'll let you find out from what directory you're starting it.
If you want to change the location of the log file you'll need to unpack the WAR file, unjar the xwiki jar, modify the log4j.properties file so that the log file is created in the directory you want and repack the whole thing. Hmm... Actually there might be a simpler solution: just create a new log4j.properties file and place it before the xwiki war in the Tomcat classpaths. Note: I haven't done that so don't ask me how ;-)
When you've found out how to make all this work, it would be nice to post back so that others can learn from your case.
Thanks -Vincent
On Jan 23, 2007, at 2:44 PM, Julien Oix wrote:
(cleaning the post, see the previous in the same thread)
Abstract : tryin' to install xwiki 1.0 beta 2 (debian, apache, tomcat container, mod_jk connector, MySQL database)
Hi Vincent,
U force me to modify the /etc/passwd in order my tomcat user can login to a shell ;)
# starting tomcat as root in the tomcat log folder didascalie:/var/log/tomcat5.5# pwd /var/log/tomcat5.5 didascalie:/var/log/tomcat5.5# /etc/init.d/tomcat5.5 restart Stopping Tomcat servlet engine: tomcat5.5 (not running). Starting Tomcat servlet engine: tomcat5.5. didascalie:/var/log/tomcat5.5#
# login as tomcat55, the user running tomcat didascalie:/var/log/tomcat5.5# su - tomcat55 tomcat55@didascalie:~$ cd /var/log/tomcat5.5/ tomcat55@didascalie:/var/log/tomcat5.5$ touch toto tomcat55@didascalie:/var/log/tomcat5.5$ ls -l total 16 -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 admin. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 8959 2007-01-23 14:42 catalina_2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 855 2007-01-23 14:42 catalina. 2007-01-23.log prwx------ 1 tomcat55 root 0 2007-01-23 14:42 catalina.out -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 host-manager. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 localhost. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 manager. 2007-01-23.log -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:43 toto tomcat55@didascalie:/var/log/tomcat5.5$
So, the user running tomcat has the good rights to write files in the tomcat log folder ... :)
thanks,
-- Julien Oix UFR d'Informatique - Université Paris Diderot
Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS
Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Sergiu Dumitriu wrote:
Hi,
The problem is in the security model (see http://jira.xwiki.org/jira/browse/XWIKI-348 ). Debian uses tomcat with the java security turned on. Until we fix this, the only solution I know is to turn it off.
Sergiu
On 1/23/07, *Vincent Massol* <[email protected] <mailto:[email protected]>> wrote:
Julien,
I'm not going to solve this for you... (and I don't have access to your machine). The only thing I can tell you is what I've already told you: xwiki wants to write a xwiki.log file in the directory where it is started.
Now I'll let you find out from what directory you're starting it.
If you want to change the location of the log file you'll need to unpack the WAR file, unjar the xwiki jar, modify the log4j.properties file so that the log file is created in the directory you want and repack the whole thing. Hmm... Actually there might be a simpler solution: just create a new log4j.properties file and place it before the xwiki war in the Tomcat classpaths. Note: I haven't done that so don't ask me how ;-)
When you've found out how to make all this work, it would be nice to post back so that others can learn from your case.
Thanks -Vincent
On Jan 23, 2007, at 2:44 PM, Julien Oix wrote:
> (cleaning the post, see the previous in the same thread) > > Abstract : tryin' to install xwiki 1.0 beta 2 (debian, apache, > tomcat container, mod_jk connector, MySQL database) > > Hi Vincent, > > U force me to modify the /etc/passwd in order my tomcat user can > login to a shell ;) > > # starting tomcat as root in the tomcat log folder > didascalie:/var/log/tomcat5.5# pwd > /var/log/tomcat5.5 > didascalie:/var/log/tomcat5.5# /etc/init.d/tomcat5.5 restart > Stopping Tomcat servlet engine: tomcat5.5 (not running). > Starting Tomcat servlet engine: tomcat5.5. > didascalie:/var/log/tomcat5.5# > > > # login as tomcat55, the user running tomcat > didascalie:/var/log/tomcat5.5# su - tomcat55 > tomcat55@didascalie:~$ cd /var/log/tomcat5.5/ > tomcat55@didascalie:/var/log/tomcat5.5$ touch toto > tomcat55@didascalie:/var/log/tomcat5.5$ ls -l > total 16 > -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 admin. > 2007-01-23.log > -rw-r--r-- 1 tomcat55 nogroup 8959 2007-01-23 14:42 > catalina_2007-01-23.log > -rw-r--r-- 1 tomcat55 nogroup 855 2007-01-23 14:42 catalina. > 2007-01-23.log > prwx------ 1 tomcat55 root 0 2007-01-23 14:42 catalina.out > -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 host-manager. > 2007-01-23.log > -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 localhost. > 2007-01-23.log > -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:41 manager. > 2007-01-23.log > -rw-r--r-- 1 tomcat55 nogroup 0 2007-01-23 14:43 toto > tomcat55@didascalie:/var/log/tomcat5.5$ > > > So, the user running tomcat has the good rights to write files in > the tomcat log folder ... :) > > thanks, > > -- > Julien Oix > UFR d'Informatique - Université Paris Diderot > > Bureau 5C01 (5ème étage) > 175 rue du Chevaleret > 75013 PARIS > > Tel : +33 (0) 144 278 504 > Mobile : +33 (0) 664 392 207 > --------------------------------------------- > http://www.gnu.org/philosophy/no-word-attachments.html > > > > -- > You receive this message as a subscriber of the xwiki- > [email protected] <mailto:[email protected]> mailing list. > To unsubscribe: mailto:[email protected] <mailto:[email protected]> > For general help: mailto:[email protected] <mailto:[email protected]>?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/ > wws
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
-- You receive this message as a subscriber of the [email protected] <mailto:[email protected]> mailing list. To unsubscribe: mailto:[email protected] <mailto:[email protected]> For general help: mailto: [email protected] <mailto:[email protected]>?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hi Sergiu, U were right ! :) In order to turn java security off, if U run xwiki on a debian os, with Tomcat 5.5, U got to edit /etc/default/tomcat5.5, uncomment the line with the directive TOMCAT5_SECURITY and set it to no. Thanks. -- Julien Oix UFR d'Informatique - Université Paris Diderot Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
Hi Julien, On Jan 24, 2007, at 10:29 AM, Julien Oix wrote:
Sergiu Dumitriu wrote:
Hi,
The problem is in the security model (see http://jira.xwiki.org/ jira/browse/XWIKI-348 ). Debian uses tomcat with the java security turned on. Until we fix this, the only solution I know is to turn it off.
Sergiu
[snip]
Hi Sergiu,
U were right ! :)
In order to turn java security off, if U run xwiki on a debian os, with Tomcat 5.5, U got to edit /etc/default/tomcat5.5, uncomment the line with the directive TOMCAT5_SECURITY and set it to no.
I have updated the installation page for Tomcat about this: http:// www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat Julien, could you please let me know if the information there is good enough now? Thanks -Vincent ___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
Vincent Massol wrote:
I have updated the installation page for Tomcat about this: http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
Julien, could you please let me know if the information there is good enough now?
Thanks -Vincent
Hi Vincent, I found exactly that in the /etc/default/tomcat5.5 file # Use the Java security manager? (yes/no) #TOMCAT5_SECURITY=yes and I replaced with # Use the Java security manager? (yes/no) TOMCAT5_SECURITY=no I think we could abstract the file name because it depends on the tomcat version , ie /etc/default/tomcat5 for a tomcat 5 package. and I don't know where can be found that directive in other linux distros than Debian :) In that link : http://jira.xwiki.org/jira/browse/XWIKI-348 , the 1.0b2 is not present, is this possible to add ? thanks for adding that point the ths documentation !! -- Julien Oix UFR d'Informatique - Université Paris Diderot Bureau 5C01 (5ème étage) 175 rue du Chevaleret 75013 PARIS Tel : +33 (0) 144 278 504 Mobile : +33 (0) 664 392 207 --------------------------------------------- http://www.gnu.org/philosophy/no-word-attachments.html
participants (4)
-
Julien Oix -
julien.oix@paris7.jussieu.fr -
Sergiu Dumitriu -
Vincent Massol