[xwiki-users] problems running xwiki-ent 1.2-rc2/3 war under jetty 6
This is driving me nuts. Any suggestions or guidance is appreciated. I have the following config: Linux Java 1.5.0_13 and 1.6.0.03 Jetty 6.1.6 and 6.1.7 MySql 5.0.44 xwiki-enterprise-web-1.2-rc-3.war xwiki-enterprise-wiki-1.2-rc-3.xar Firefox 2.0.0.11 I can verify that Jetty runs properly by deploying a couple other webapps to it. I can verify that the xwiki war is good. I can verify that my MySQL works. In fact I can follow the installation instructions for Tomcat+MySQL (Tomcat v6) and everything works fine. However, when I run the same installation procedure in Jetty I see the app come up, but I can't keep my user cookies (superadmin activated) to do anything useful. There is no logout in upper right and I have no ability to edit the wiki via the upper left menu (I can only show). I do not have permissions to do many actions and after uploading the web wiki xar I have no Admin rights, no ability to see that I'm logged in, etc... I've tried this on two separate Linux machines with every combination available with same results. The logs show....: 241 [main] INFO org.mortbay.log - jetty-6.1.7 389 [main] WARN org.mortbay.log - Unknown realm: Test JAAS Realm 2407 [main] INFO /xwiki - Loading plexus context properties from: '/WEB-INF/plexus.properties' 2410 [main] INFO /xwiki - Initializing Plexus. 2410 [main] INFO /xwiki - resource = file:/home/slynn/tools/jetty-6.1.7/webapps/xwiki/WEB-INF/plexus.xml 2677 [main] INFO /xwiki - Plexus initialized. 3472 [main] INFO org.mortbay.log - Opened /home/slynn/tools/jetty-6.1.7/logs/2008_01_10.request.log 3508 [main] INFO org.mortbay.log - Started [email protected]:8080 10258 [btpool0-7] WARN org.apache.struts.util.RequestUtils - No FormBeanConfig found under 'view' 10502 [btpool0-7] INFO com.xpn.xwiki.cache.impl.OSCacheService - Initializing OSCacheService ...etc... on jetty startup and then a ton of the struts FormBeanConfig WARNINGS below for view and skin: 18421 [btpool0-7] INFO com.xpn.xwiki.store.DBCPConnectionProvider - active: 0 (max: 50) idle: 1(max: 5) 18516 [btpool0-6] WARN org.apache.struts.util.RequestUtils - No FormBeanConfig found under 'skin' 18520 [btpool0-6] WARN org.apache.struts.util.RequestUtils - No FormBeanConfig found under 'skin' 18520 [btpool0-7] WARN org.apache.struts.util.RequestUtils - No FormBeanConfig found under 'skin' 18525 [btpool0-6] WARN org.apache.struts.util.RequestUtils - No FormBeanConfig found under 'skin' 18525 [btpool0-7] WARN org.apache.struts.util.RequestUtils - No FormBeanConfig found under 'skin' 18526 [btpool0-7] INFO com.xpn.xwiki.web.SkinAction - Skin file '/skins/albatross/table.css' does not exist I see no other WARNING's in the logs except the struts form bean configs. I also imagine that the skin file errors are caused by struts misconfigurations as well. Hope I've provided enough information - the log file is very long. I believe Jetty 6 doesn't like the struts configuration, but am out of ideas about how to go further. Thanks, Sean
Update.... After looking through the logs in much more detail I realize that the struts warnings are probably not the problem. I had been looking at the WARN errors in logs, but I begain digging deeper. Below is an extract of the first startup of xwiki under jetty 6.1.7 using mysql 5.0.44. A Tomcat initial startup does not have these hibernate errors. I see huge numbers of the same error for different documents throughout the logs. I had thought that the pages didn't exist simply because the first load created and populated tables, but now I'm not so sure. Has anyone seen this or know where to look deeper into the problem? Thanks. com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager - New storage version is now [6431] 42057 [btpool0-7] INFO com.xpn.xwiki.store.DBCPConnectionProvider - active: 1 (max: 50) idle: 0(max: 5) 42061 [btpool0-7] INFO org.hibernate.event.def.DefaultLoadEventListener - Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiDocument#104408758] at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:862) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:770) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:369) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:158) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1042) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1076) at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1669) at com.xpn.xwiki.render.XWikiMacrosMappingRenderer.loadPreferences(XWikiMacrosMappingRenderer.java:71) at com.xpn.xwiki.render.XWikiMacrosMappingRenderer.<init>(XWikiMacrosMappingRenderer.java:59) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.<init>(DefaultXWikiRenderingEngine.java:54) at com.xpn.xwiki.XWiki.resetRenderingEngine(XWiki.java:791) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:729) at com.xpn.xwiki.XWiki.<init>(XWiki.java:672) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) 42068 [btpool0-7] INFO com.xpn.xwiki.store.DBCPConnectionProvider - active: 0 (max: 50) idle: 1(max: 5) 42156 [btpool0-7] INFO com.opensymphony.oscache.general.GeneralCacheAdministrator - Constructed GeneralCacheAdministrator() 42156 [btpool0-7] INFO com.opensymphony.oscache.general.GeneralCacheAdministrator - Creating new cache 42156 [btpool0-7] INFO com.xpn.xwiki.cache.impl.OSCacheService - Created Cache # 3 of size 100 at Fri, 11 Jan 2008 10:02:32 -0700, current count is 3 42168 [btpool0-7] INFO com.xpn.xwiki.store.DBCPConnectionProvider - active: 1 (max: 50) idle: 0(max: 5) 42169 [btpool0-7] INFO org.hibernate.event.def.DefaultLoadEventListener - Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiDocument#-237561194] at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:862) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:770) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:369) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:158) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1042) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1076) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:56) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:799) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:732) at com.xpn.xwiki.XWiki.<init>(XWiki.java:672) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) 42170 [btpool0-7] INFO com.xpn.xwiki.store.DBCPConnectionProvider - active: 0 (max: 50) idle: 1(max: 5) 42171 [btpool0-7] INFO com.xpn.xwiki.store.DBCPConnectionProvider - active: 1 (max: 50) idle: 0(max: 5) 42193 [btpool0-7] INFO org.hibernate.cfg.Configuration - configuring from url: file:/home/slynn/tools/jetty-6.1.7/webapps/xwiki/WEB-INF/hibernate.cfg.xml 42197 [btpool0-7] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: xwiki.hbm.xml 42256 [btpool0-7] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.xpn.xwiki.doc.XWikiDocument -> xwikidoc 42258 [btpool0-7] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo -> xwikircs Sean Lynn wrote:
This is driving me nuts. Any suggestions or guidance is appreciated.
I have the following config:
Linux Java 1.5.0_13 and 1.6.0.03 Jetty 6.1.6 and 6.1.7 MySql 5.0.44 xwiki-enterprise-web-1.2-rc-3.war xwiki-enterprise-wiki-1.2-rc-3.xar Firefox 2.0.0.11
I can verify that Jetty runs properly by deploying a couple other webapps to it. I can verify that the xwiki war is good. I can verify that my MySQL works.
In fact I can follow the installation instructions for Tomcat+MySQL (Tomcat v6) and everything works fine.
However, when I run the same installation procedure in Jetty I see the app come up, but I can't keep my user cookies (superadmin activated) to do anything useful. There is no logout in upper right and I have no ability to edit the wiki via the upper left menu (I can only show). I do not have permissions to do many actions and after uploading the web wiki xar I have no Admin rights, no ability to see that I'm logged in, etc...
I've tried this on two separate Linux machines with every combination available with same results.
participants (1)
-
Sean Lynn