[xwiki-users] Using parseGroovyFromPage on inherited class
Hi, I have another problem. I want to use a class that extends a parent class and then use parseGroovyFromPage. But I can't work out how to do it. An example here: - page ParentObject: % class ParentObject { def counter = 0; def session; void setSession(session) { this.session = session; } } % - page UserClass: /* Groovy Class #* */ public class User extends ParentObject { void setUser() { if (session.getValue(counter) != null) this.counter = session.getValue(counter) + 1; else this.counter = 1; session.setAttribute(counter, this.counter); } String showCounter() { return this.counter; } } /* *# */ - script page: #set ($groovyObject = $xwiki.parseGroovyFromPage(Include.UserClass)) - The question is how to include the ParentObject page into UserClass page, so that UserClass can extend the ParentObject. Any help would be appreciated. Thanks, Zik ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Using parseGroovyFromPage on inherited class
Hi I think you'll need in your User class to use $xwiki.parseGroovyFromPage(ParentObject) Before that you need to pass $xwiki to User class. public class User extends ParentObject { private xwiki = null; void setUser() { if (session.getValue(counter) != null) this.counter = session.getValue(counter) + 1; else this.counter = 1; session.setAttribute(counter, this.counter); } String showCounter() { return this.counter; } public void setXwiki(xwiki) { this.xwiki = xwiki; } } -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Jan Cerny Sent: 24 March 2009 08:43 To: users@xwiki.org Subject: [xwiki-users] Using parseGroovyFromPage on inherited class Hi, I have another problem. I want to use a class that extends a parent class and then use parseGroovyFromPage. But I can't work out how to do it. An example here: - page ParentObject: % class ParentObject { def counter = 0; def session; void setSession(session) { this.session = session; } } % - page UserClass: /* Groovy Class #* */ public class User extends ParentObject { void setUser() { if (session.getValue(counter) != null) this.counter = session.getValue(counter) + 1; else this.counter = 1; session.setAttribute(counter, this.counter); } String showCounter() { return this.counter; } } /* *# */ - script page: #set ($groovyObject = $xwiki.parseGroovyFromPage(Include.UserClass)) - The question is how to include the ParentObject page into UserClass page, so that UserClass can extend the ParentObject. Any help would be appreciated. Thanks, Zik ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users NOTICE This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee. Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Problems while registring users / using dot in usernames
Hello, I have seen that if I am using the register user popup (click on Add User from the Users screen), and if there is some kind of validation error on one of the fields I have just entered, the popup just dissapears (without displaying any error message). Accessing the following link (non popup) works http://csp1:8080/xwiki/bin/register/XWiki/Register. I don't think that this behavior is normal. 2nd question: is there a way to use dots (.) in the username? For the moment we are using XWiki for testing, but when we'll switch to LDAP authentication, we'll have all of our usernames with dots. I didn't look for a documentation regarding LDAP, but I think the LDAP support is integrated within XWiki. Thanks in advance, Best regards, Cristi. -- View this message in context: http://n2.nabble.com/Problems-while-registring-users---using-dot-in-usernames-tp2525826p2525826.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [myxwiki] XWiki Enterprise 1.8 Upgrade
Hello, myxwiki.org has been upgraded to XE 1.8, if you own a wiki hosted there you should have a look at : http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise18 We also strongly recommend an upgrade to the latest wiki version. To upgrade you must download XE 1.8 XAR from : http://www.xwiki.org/xwiki/bin/view/Main/Download And follow the upgrade guide available at : http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments To be notified of the myxwiki.org server upgrade you can follow myxwiki on twitter: http://twitter.com/myxwiki Thanks, JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Recurrent exception in Tomcat's log file
Hello, I have XWiki turning on a Tomcat server and I was surprised about de 500ko stdout log file. I have seen that there is an error that keeps repeating in this log file: [ERROR] Method checkAccess threw exception for reference $xwiki in template /templates/menuview.vm at [128,61] org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/menuview.vm] at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) ... Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'checkAccess' in class com.xpn.xwiki.api.XWiki threw exception java.lang.IllegalStateException @ /templates/menuview.vm[128,68] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:396) at org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:111) at org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:109) at org.apache.velocity.runtime.parser.node.ASTAndNode.value(ASTAndNode.java:74) ... Caused by: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:432) at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:81) at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:62) at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.showLogin(XWikiAuthServiceImpl.java:333) at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:179) at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3596) at com.xpn.xwiki.api.XWiki.checkAccess(XWiki.java:189) at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) ... 85 more Any idea what's causing this error? Best regards, Cristi. -- View this message in context: http://n2.nabble.com/Recurrent-exception-in-Tomcat%27s-log-file-tp2525840p2525840.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Using parseGroovyFromPage on inherited class
Hi, that doesn't work. xwiki.parseGroovyFromPage(ParentObject) returns an object of the class. I only need to include the class, so that UserClass can extend it. Hi I think you'll need in your User class to use $xwiki.parseGroovyFromPage(ParentObject) Before that you need to pass $xwiki to User class. public class User extends ParentObject { private xwiki = null; void setUser() { if (session.getValue(counter) != null) this.counter = session.getValue(counter) + 1; else this.counter = 1; session.setAttribute(counter, this.counter); } String showCounter() { return this.counter; } public void setXwiki(xwiki) { this.xwiki = xwiki; } } -- View this message in context: http://n2.nabble.com/Using-session-inside-a-class-tp2502340p2525971.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] New WYSIWYG Editor Error 1.8 final
Hi, When I hit save using the new WYSIWYG editor I'm getting the following Status Code 500 error: HTTP ERROR: 500 Failed to load component [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] RequestURI=/xwiki/bin/save/Projects/WebHome Caused by: java.lang.RuntimeException: Failed to load component [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at com.xpn.xwiki.web.Utils.getComponent(Utils.java:547) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:746) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component role [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:78) at com.xpn.xwiki.web.Utils.getComponent(Utils.java:545) ... 26 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory [HTTP/1.0] (lookup realm: ClassRealm[plexus.core, parent: null]). at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:139) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:277) at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:76) ... 27 more Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component role [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:78) at com.xpn.xwiki.web.Utils.getComponent(Utils.java:545) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at
Re: [xwiki-users] New WYSIWYG Editor Error 1.8 final
DarthOps wrote: Hi, When I hit save using the new WYSIWYG editor I'm getting the following Status Code 500 error: HTTP ERROR: 500 Failed to load component [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] See webapps/xwiki/WEB-INF/lib/xwiki-web-wysiwyg-1.8.jar/META-INF/plexus/components.xml You can copy this file to webapps/xwiki/WEB-INF/classes/META-INF/plexus/, search for HTTP/1.1 and replace it with HTTP/1.0. Don't forget to restart the web server. Sorry for the inconvenience. Will be fixed before 1.8.1. Thanks for reporting this, Marius RequestURI=/xwiki/bin/save/Projects/WebHome Caused by: java.lang.RuntimeException: Failed to load component [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at com.xpn.xwiki.web.Utils.getComponent(Utils.java:547) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:746) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component role [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:78) at com.xpn.xwiki.web.Utils.getComponent(Utils.java:545) ... 26 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory [HTTP/1.0] (lookup realm: ClassRealm[plexus.core, parent: null]). at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:139) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:277) at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:76) ... 27 more Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component role [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:78) at com.xpn.xwiki.web.Utils.getComponent(Utils.java:545) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
Re: [xwiki-users] New WYSIWYG Editor Error 1.8 final
Marius Dumitru Florea wrote: DarthOps wrote: Hi, When I hit save using the new WYSIWYG editor I'm getting the following Status Code 500 error: HTTP ERROR: 500 Failed to load component [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] See webapps/xwiki/WEB-INF/lib/xwiki-web-wysiwyg-1.8.jar/META-INF/plexus/components.xml You can copy this file to webapps/xwiki/WEB-INF/classes/META-INF/plexus/, search for HTTP/1.1 and replace it with HTTP/1.0. Don't forget to restart the web server. Sorry for the inconvenience. Will be fixed before 1.8.1. Should be fixed now: http://jira.xwiki.org/jira/browse/XWIKI-3452 Thanks for reporting this, Marius RequestURI=/xwiki/bin/save/Projects/WebHome Caused by: java.lang.RuntimeException: Failed to load component [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at com.xpn.xwiki.web.Utils.getComponent(Utils.java:547) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:746) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component role [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:78) at com.xpn.xwiki.web.Utils.getComponent(Utils.java:545) ... 26 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory [HTTP/1.0] (lookup realm: ClassRealm[plexus.core, parent: null]). at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:139) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:277) at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:76) ... 27 more Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component role [com.xpn.xwiki.wysiwyg.server.filter.MutableServletRequestFactory] for hint [HTTP/1.0] at org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:78) at com.xpn.xwiki.web.Utils.getComponent(Utils.java:545) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at
[xwiki-users] SSL to Apache - Reverse proxy - Non-SSL Xwiki
Hi Folks, I am sure I'm missing something here, and I can't figure out how to get this done. I have SSL to Apache 2 set up, of which is acting as a reverse proxy to xwiki/Tomcat running non-SSL. It is fine to load xwiki's front page using https, but this is as far as I can go. All links still reference to http connection, and all graphics are missing (due to the fact that Tomcat is looking for them using http). Should I set up Tomcat, or xwiki to always point to https? How do I achieve this? Thanks! Charles -- View this message in context: http://n2.nabble.com/SSL-to-Apache--%3E-Reverse-proxy--%3E-Non-SSL-Xwiki-tp2527127p2527127.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] User editon detection
Hi all, Is it possible with XWiki API to know with Web 2.0 the list of users that are editing the same page? Also is it possible to know how is connected to a specific workspace? Another question, are there any synchroneous tchatche system that can be integrated in XWiki? I'm asking this question because often poeple want to collaborate on same tasks and need help from connected users on the same page or space...direct access and tchacthe can help so much. Thanks in advances. y. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Error while parsing velocity page
Hello again, Here's my info: Xwiki Enterprise 1.7.2 with multiple spaces. I just migrated this wiki from another organization that was using version 1.4.2 (in case that makes a difference in my question). Environment: centos 5.2/apache 2.2/tomcat 6/mysql 5.1 Yesterday, we encountered errors on various pages (though not all) like the following: Error number 4001 in 4: Error while parsing velocity page /templates/ xwikivars.vm Wrapped Exception: Failed to evaluate content with id [/ templates/xwikivars.vm] Error number 4001 in 4: Error while parsing velocity page /templates/ htmlheader.vm Wrapped Exception: Failed to evaluate content with id [/ templates/htmlheader.vm] All the errors had some mention in the stack trace of trying to do an operation on the database after it's been disconnected. So we changed the JDBC url specified in the xwiki hibernate config file (/usr/local/ tomcat/webapps/xwiki/WEB-INF/hibernate.cfg.xml) to add the autoReconnect=true attribute and restarted Tomcat. That did away with the errors and we thought it was fixed. Well it happened again today. Looks like xwiki is getting into some state in which things start failing, after being up for some period of time or getting some number of user requests or something. But we are having severe personnel issues - so don't have anyone who knows much about tomcat to help us debug. If anyone else has come across this it would be a big help. One possible thing I can think of - since it mentioned velocity templates - when i migrated the wiki, i installed the default XAR - then I imported the mysql dump - could this have overwritten the new templates? If so, is re-importing the default XAR advisable on a live wiki? Thanks for any help, Cristina The following is a paste of the first error encountered (very long): Error number 4001 in 4: Error while parsing velocity page /templates/ menuview.vm Wrapped Exception: Failed to evaluate content with id [/ templates/menuview.vm] A problem occured while trying to service your request. Please contact the support if this happens again. Detailed information: Error number 3202 in 3: Exception while reading document BIRN-OTF-Public. NDAR-Autism-Modeling-Meetings-Minutes Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#-763803479] com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document BIRN-OTF-Public. NDAR-Autism-Modeli Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#-763803479] at com .xpn .xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java: 744) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java: 209) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1335) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1375) at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4554) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) 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:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com .xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com .xpn .xwiki .wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java: 145) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com .xpn .xwiki .web .SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java: 287) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com .xpn .xwiki .web .SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java: 112) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org .apache