On Mar 15, 2008, at 1:17 PM, Yishay Mor wrote:
I'm getting two kinds of exceptions - one to do with log4j, which can't get permissions to write. Perhaps I should try creating the xwiki.log file manually - where should it be? - one to do with some missing classes. am I short of a jar or two?
XWiki creates the xwiki.log file where you have started the JVM from by default so it needs write access to that dir. If you want to configure where to put this file, see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging -Vincent
Mar 13, 2008 10:15:19 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive xwiki.war log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: xwiki.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) 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 .velocity .runtime.log.SimpleLog4JLogSystem.init(SimpleLog4JLogSystem.java:74) at org .apache.velocity.runtime.log.LogChuteSystem.init(LogChuteSystem.java: 52) [..] at org.apache.velocity.app.Velocity.init(Velocity.java:83) at com.xpn.xwiki.web.InitializationServletContextListener.initializeVelocity (InitializationServletContextListener.java:88) at com.xpn.xwiki.web.InitializationServletContextListener.contextInitialized (InitializationServletContextListener.java:44) at org .apache .catalina.core.StandardContext.listenerStart(StandardContext.java: 3830) [...] at org.apache.catalina.startup.Catalina.start(Catalina.java:566) [..] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
java.lang.InternalError: Can't connect to window server - not enough permissions. at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822) [...] at java.awt.image.ColorModel.loadLibraries(ColorModel.java:188) at java.awt.image.ColorModel.<clinit>(ColorModel.java:196) at com.jhlabs.image.WholeImageFilter.<init>(WholeImageFilter.java) at com.jhlabs.image.WaterFilter.<init>(WaterFilter.java) at com .octo .captcha .engine .image .gimpy .DefaultGimpyEngine.buildInitialFactories(DefaultGimpyEngine.java:503) at com .octo .captcha .engine .image.ListImageCaptchaEngine.<init>(ListImageCaptchaEngine.java:493) at com .octo .captcha .engine .image.gimpy.DefaultGimpyEngine.<init>(DefaultGimpyEngine.java:494) at com .octo .captcha .service .image .DefaultManageableImageCaptchaService .<init>(DefaultManageableImageCaptchaService.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [..] at com .octo .captcha .module.config.CaptchaModuleConfig.validate(CaptchaModuleConfig.java: 193) at com .octo .captcha .module.struts.CaptchaServicePlugin.init(CaptchaServicePlugin.java:64) at org .apache .struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org .apache .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) [..]
Mar 13, 2008 10:15:53 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Mar 13, 2008 10:15:54 AM org.apache.jk.common.ChannelSocket init INFO: Port busy 8009 java.net.BindException: Address already in use Mar 13, 2008 10:15:54 AM org.apache.jk.common.ChannelSocket init INFO: Port busy 8010 java.net.BindException: Address already in use Mar 13, 2008 10:15:54 AM org.apache.jk.common.ChannelSocket init INFO: Port busy 8011 java.net.BindException: Address already in use Mar 13, 2008 10:15:54 AM org.apache.jk.common.ChannelSocket init INFO: Port busy 8012 java.net.BindException: Address already in use Mar 13, 2008 10:15:54 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8013 Mar 13, 2008 10:15:54 AM org.apache.jk.server.JkMain start INFO: Jk running ID=4 time=0/23 config=null Mar 13, 2008 10:15:54 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 58878 ms Mar 13, 2008 3:06:09 PM org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: xwiki.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) [..] at org .apache .velocity .runtime.log.SimpleLog4JLogSystem.init(SimpleLog4JLogSystem.java:74) [..] at org.apache.velocity.app.Velocity.init(Velocity.java:83) at com.xpn.xwiki.web.InitializationServletContextListener.initializeVelocity (InitializationServletContextListener.java:88) at com.xpn.xwiki.web.InitializationServletContextListener.contextInitialized (InitializationServletContextListener.java:44) at org .apache .catalina.core.StandardContext.listenerStart(StandardContext.java: 3830) [...] at org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint $Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) java.lang.NoClassDefFoundError at com.jhlabs.image.WholeImageFilter.<init>(WholeImageFilter.java) at com.jhlabs.image.WaterFilter.<init>(WaterFilter.java) at com .octo .captcha .engine .image .gimpy .DefaultGimpyEngine.buildInitialFactories(DefaultGimpyEngine.java:503) at com .octo .captcha .engine .image.ListImageCaptchaEngine.<init>(ListImageCaptchaEngine.java:493) at com .octo .captcha .engine .image.gimpy.DefaultGimpyEngine.<init>(DefaultGimpyEngine.java:494) at com .octo .captcha .service .image .DefaultManageableImageCaptchaService .<init>(DefaultManageableImageCaptchaService.java:32) 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 java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com .octo .captcha .module.config.CaptchaModuleConfig.validate(CaptchaModuleConfig.java: 193) at com .octo .captcha .module.struts.CaptchaServicePlugin.init(CaptchaServicePlugin.java:64) at org .apache .struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org .apache .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) [...]
On 13/03/2008, Yishay Mor <[email protected]> wrote: I'm afraid I can't access the firewall - its centrally managed. I only have admin rights to this particular server. I'll have a look at the log files.
Date: Thu, 13 Mar 2008 12:12:27 +0100 From: "[Ricardo Rodriguez] Your EPEC Network ICT Team" <[email protected]
Subject: Re: [xwiki-users] installation problems To: XWiki Users <[email protected]>
Hi,
Yishay Mor wrote:
Thanks Ricardo,
My server's 8080 is behind a firewall, but I can see it and have no problem running other JSP / servlets.
If you can manage your network, could you try by stopping the firewall? I am guessing it could be easy for you if xwiki and MySQL are running on the same server and you have an administrative account there. It is weird that you don't get errors if you had not hibernate.cfg.xml configured and a MySQL drivers in place.
Could you also take a look to your catalina.out and/or the console of your server? There must be useful information there.
thanks for reminding me about hibernate.cfg.xml I also realized that I hadn't installed a MySql driver in WB-INF. However, even though I fixed these two issues, I'm still getting a blank page.
Also, I wasn't sure with settings to use in hibernate:
Use always the uncommented lines from your current release as the base for your configuration. Documentation is mostly manually updated, so there could be changes not reflected there. This is a wiki, so our contribution will be welcome... when we know what we are doing :-)
Thanks!
Ricardo
-- Ricardo Rodr?guez Your EPEC Network ICT Team
___________________________ Yishay Mor, Researcher, London Knowledge Lab http://www.lkl.ac.uk/people/mor.html http://yishaym.wordpress.com https://www.linkedin.com/in/yishaymor http://www.google.com/calendar/embed?src=yishaym%40gmail.com +44-20-78378888 x5737
-- ___________________________ Yishay Mor, Researcher, London Knowledge Lab http://www.lkl.ac.uk/people/mor.html http://yishaym.wordpress.com https://www.linkedin.com/in/yishaymor http://www.google.com/calendar/embed?src=yishaym%40gmail.com +44-20-78378888 x5737 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users