[xwiki-users] Create a new wiki with XWiki Enterprise Manager throws exception
Hi I'm trying to create a virtual wiki with XEM, but when I click on "Create" I get following exception. I installed xwiki-plugin-application-manager-1.0-milestone-1.jar xwiki-plugin-wiki-manager-1.0-milestone-1.jar xwiki-application-wiki-manager-1.0-milestone-1.xar All fields have value but wikimanager.wikitemplate and wikimanager.wikipackage have empty list. Is it right? This is the stack: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Invocation of method 'createNewWiki' in class com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception java.lang.NullPointerException @ WikiManager.CreateNewWiki25,31? com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Invocation of method 'createNewWiki' in class com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception java.lang.NullPointerException @ WikiManager.CreateNewWiki25,31? at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:148) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157) 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:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Wrapped Exception: java.lang.NullPointerException at com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWiki(WikiManager.java:267) at com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWiki(WikiManager.java:189) at com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createNewWiki(WikiManagerPluginApi.java:92) at com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createNewWiki(WikiManagerPluginApi.java:69) 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.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157) 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:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, In "xwiki.cfg" file, did you set the "xwiki.virtual" property to "xwiki.virtual=1" ? I forgot to add this in xwiki.org Code space documentation. 2007/10/3, Marco Polo <[email protected]>:
Hi I'm trying to create a virtual wiki with XEM, but when I click on "Create" I get following exception. I installed xwiki-plugin-application-manager-1.0-milestone-1.jar xwiki-plugin-wiki-manager-1.0-milestone-1.jar xwiki-application-wiki-manager-1.0-milestone-1.xar
All fields have value but wikimanager.wikitemplate and wikimanager.wikipackage have empty list. Is it right?
This is the stack:
Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Invocation of method 'createNewWiki' in class com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception java.lang.NullPointerException @ WikiManager.CreateNewWiki25,31? com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Invocation of method 'createNewWiki' in class com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception java.lang.NullPointerException @ WikiManager.CreateNewWiki25,31? at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:148) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157) 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:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Wrapped Exception:
java.lang.NullPointerException at com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWiki(WikiManager.java:267) at com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWiki(WikiManager.java:189) at com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createNewWiki(WikiManagerPluginApi.java:92) at com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createNewWiki(WikiManagerPluginApi.java:69) 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.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157) 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:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Thomas Mortagne wrote:
Hi,
In "xwiki.cfg" file, did you set the "xwiki.virtual" property to "xwiki.virtual=1" ?
I forgot to add this in xwiki.org Code space documentation.
Ok, now it works :-) Xwiki created virtual wiki and a new schema (with same name) in db. This schema is empty, which is next step? -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
By default WikiManager create empty wiki, but you can provide xar (wikimanager.wikipackage) file or set existing wiki as template (wikimanager.wikitemplate) wiki from which the new wiki will be created. You can now connect to this empty wiki and use the Administration Import feature to import the xar you want like XE one as you can do with any "normal" XWiki wiki. By the way you see "wikimanager.wikitemplate" and "wikimanager.wikipackage" because you did not load WikiManager translation documents. You can do that with application manager (http://www.xwiki.org/xwiki/bin/view/Code/ApplicationManagerApplication) 2007/10/3, Marco Polo <[email protected]>:
Thomas Mortagne wrote:
Hi,
In "xwiki.cfg" file, did you set the "xwiki.virtual" property to "xwiki.virtual=1" ?
I forgot to add this in xwiki.org Code space documentation.
Ok, now it works :-) Xwiki created virtual wiki and a new schema (with same name) in db. This schema is empty, which is next step?
-- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi, I've got a CVS repository with a web frontend. I can access the source codes (java) via URL. I found the "{code}" macro but it only displays "embedded" code. How can I include my remote code using HTTP ? Best regards. F.X.
Thomas Mortagne wrote:
By default WikiManager create empty wiki, but you can provide xar (wikimanager.wikipackage) file or set existing wiki as template (wikimanager.wikitemplate) wiki from which the new wiki will be created.
You can now connect to this empty wiki and use the Administration Import feature to import the xar you want like XE one as you can do with any "normal" XWiki wiki.
Sorry, I need more information: 1) Select field "From wiki template" is empty and so "From package" 2) How can I connect to the empty wiki? This is the error message: -------------------------------- HTTP ERROR: 500 Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758] RequestURI=/xwiki/bin/view/Main/WebHome -------------------------------- I suppose because the wiki is empty. -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
I think i did not understand correctly what you said, by empty will meant really empty with not any table in the new shema ? If so there is problem. Which database engine do you use ? For now just MySQL and Oracle are fully supported yet. 2007/10/3, Marco Polo <[email protected]>:
Thomas Mortagne wrote:
By default WikiManager create empty wiki, but you can provide xar (wikimanager.wikipackage) file or set existing wiki as template (wikimanager.wikitemplate) wiki from which the new wiki will be created.
You can now connect to this empty wiki and use the Administration Import feature to import the xar you want like XE one as you can do with any "normal" XWiki wiki.
Sorry, I need more information:
1) Select field "From wiki template" is empty and so "From package" 2) How can I connect to the empty wiki? This is the error message:
-------------------------------- HTTP ERROR: 500
Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
RequestURI=/xwiki/bin/view/Main/WebHome --------------------------------
I suppose because the wiki is empty. -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Thomas Mortagne wrote:
I think i did not understand correctly what you said, by empty will meant really empty with not any table in the new shema ? If so there is problem.
Which database engine do you use ? For now just MySQL and Oracle are fully supported yet.
Yes, in the new schema there are no table. I use XWiki 1.1.1 with HSQLDB. -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Oct 3, 2007, at 3:25 PM, Robin François-Xavier wrote:
Hi,
I've got a CVS repository with a web frontend. I can access the source codes (java) via URL.
I found the "{code}" macro but it only displays "embedded" code. How can I include my remote code using HTTP ?
See http://www.xwiki.org/xwiki/bin/view/DevGuide/APIGuide (I've started that page for you ;) So feel free to update it with other useful API you find out) Thanks -Vincent
Actually there is a not fully fixed problem (http://jira.xwiki.org/jira/browse/XWIKI-1740) about new wiki creation that makes at least HSQLDB and Derby almost unusable for WikiManager. 2007/10/3, Marco Polo <[email protected]>:
Thomas Mortagne wrote:
I think i did not understand correctly what you said, by empty will meant really empty with not any table in the new shema ? If so there is problem.
Which database engine do you use ? For now just MySQL and Oracle are fully supported yet.
Yes, in the new schema there are no table. I use XWiki 1.1.1 with HSQLDB. -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Thank you very much ! Using : {code} $xwiki.getURLContent("http://mycvs.mycompany.com/cvs/MyClass.java") {code} It perfectly produces what I wanted. Thank you ! -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Vincent Massol Envoyé : mercredi 3 octobre 2007 15:53 À : XWiki Users Objet : Re: [xwiki-users] How to include content from HTTP response Hi, On Oct 3, 2007, at 3:25 PM, Robin François-Xavier wrote:
Hi,
I've got a CVS repository with a web frontend. I can access the source codes (java) via URL.
I found the "{code}" macro but it only displays "embedded" code. How can I include my remote code using HTTP ?
See http://www.xwiki.org/xwiki/bin/view/DevGuide/APIGuide (I've started that page for you ;) So feel free to update it with other useful API you find out) Thanks -Vincent _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thomas Mortagne wrote:
Actually there is a not fully fixed problem (http://jira.xwiki.org/jira/browse/XWIKI-1740) about new wiki creation that makes at least HSQLDB and Derby almost unusable for WikiManager.
In fact, I use HSQDB for testing, but I really need PostgreSQL. What about PostgreSQL? -- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
PostgreSQL did not work as I know but PostgreSQL, HSQL and Derby are considered important support to get for virtual wikis and we work on this to have it at worst for XEM 1.0 M4 release planned for end of October. 2007/10/3, Marco Polo <[email protected]>:
Thomas Mortagne wrote:
Actually there is a not fully fixed problem (http://jira.xwiki.org/jira/browse/XWIKI-1740) about new wiki creation that makes at least HSQLDB and Derby almost unusable for WikiManager.
In fact, I use HSQDB for testing, but I really need PostgreSQL. What about PostgreSQL?
-- View this message in context: http://www.nabble.com/Create-a-new-wiki-with-XWiki-Enterprise-Manager-throws... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi Robin, On Oct 3, 2007, at 4:06 PM, Robin François-Xavier wrote:
Thank you very much !
Using :
{code} $xwiki.getURLContent("http://mycvs.mycompany.com/cvs/MyClass.java") {code}
It perfectly produces what I wanted.
I have some bad news for you :) This works in 1.0 but will fail in 1.1.1 since we've now "fixed" the code macro which escapes everything put into it... We currently have no way to tell the code macro that it shouldn't escape velocity. The good news is that there's a workaround and I've published it on http://www.xwiki.org/xwiki/bin/view/Code/ExternalPrettyCode -Vincent
-----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Vincent Massol Envoyé : mercredi 3 octobre 2007 15:53 À : XWiki Users Objet : Re: [xwiki-users] How to include content from HTTP response
Hi,
On Oct 3, 2007, at 3:25 PM, Robin François-Xavier wrote:
Hi,
I've got a CVS repository with a web frontend. I can access the source codes (java) via URL.
I found the "{code}" macro but it only displays "embedded" code. How can I include my remote code using HTTP ?
See http://www.xwiki.org/xwiki/bin/view/DevGuide/APIGuide (I've started that page for you ;) So feel free to update it with other useful API you find out)
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Marco Polo -
Robin François-Xavier -
Thomas Mortagne -
Vincent Massol