Hi to everyone here,
I have been experimenting with XWiki and am impressed so far.
One question: editing by section ("sectional editing" in xwiki.cfg,
activated by setting xwiki.section.edit=1 there) does not appear to work
with a page written in XWiki syntax 2.0 whilst it does work in XWiki
syntax 1.0.
(Version: XWiki Enterprise 1.8.17790)
Is this by design?
Any thoughts appreciated. I only noticed this change after converting a
number of pages from syntax 1.0 to syntax 2.0
Thanks,
Chris Wood
You are my man Jerome !!!
The "$doc" & "parse=Yes" worked...Thank you so much.
Awesome !!!
I've got a nice working tree from a static ul-li list.
The idea was to have a "if-else" sort of troubleshooting guide for my
organization's helpdesk.
Would love to put this up on code.xwiki.org. Before that want to clean the
documents a bit.
Also, need to re-read the tutorial on packaging applications.
Once again, thanks Jerome...
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 10 May 2009 11:18:59 +0300
> From: Jerome Velociter <jerome(a)xwiki.com>
> Subject: Re: [xwiki-users] new application css+image
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4A068DF3.6010904(a)xwiki.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> If "minus.gif" is attached to the document that holds the SSX object,
> the right line is :
>
> ul.mktree li.liOpen .bullet { cursor: pointer; background:
> url($doc.getAttachmentURL("minus.gif")) center left no-repeat; }
>
> ($doc instead of $xwiki)
>
> Make sure you also said "Yes" to the parse content option of the SSX,
> and it should all work fine :)
>
> Cheers,
> Jerome
>
>
> Dilipkumar Jadhav wrote:
> > Hello friends,
> > I am trying to use the work of Mark Strauss (mktree) found at
> > http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin
> > that allows creation of collapsible tree from a static ul and lit list.
> > So far, I had it working through by adding the javascript and the css
> file
> > by adding the actual path of these files in the "presentation" section of
> > the admin dashboard.
> > However, I wanted it to be more organized and make it available on
> demand.
> > So i created the jsx and the ssx files in place of the javascript and the
> > css files.
> > So far so good.
> > However, there are images that were referred by the css file which worked
> > fine in the previous setup (basically they assign a plus and minus sign
> on
> > the right of the ul and li elements).
> > Now, I've attached these image files to the ssx. But I am not able to get
> > the ssx to work with the images. The Javascript works fine from the jsx.
> The
> > tree does collapse and expand as expected. However, the images from the
> > style sheet does not show up.
> > I've used the following line in the "object" edit mode of the ssx page:
> >
> > ul.mktree li.liOpen .bullet { cursor: pointer; background:
> > url($xwiki.getAttachmentURL("minus.gif")) center left no-repeat; }
> >
> > ...here minus.gif is attached to the ssx page. But no go.
> > I did go through the various resources on skin customizations and the
> > addsizes extension tutorial. I could not understand the "use velocity to
> > attach images" technique in the addsizes tutorial. Is there a simpler way
> to
> > make the ssx pick up the image files and behave just like a normal css
> > file?...
> > Any help would be appreciated.
> > Thank you all.
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 10 May 2009 11:22:44 +0300
> From: Jerome Velociter <jerome(a)xwiki.com>
> Subject: Re: [xwiki-users] new application css+image
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4A068ED4.4040506(a)xwiki.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dilipkumar Jadhav wrote:
> > Hello friends,
> > I am trying to use the work of Mark Strauss (mktree) found at
> > http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin
>
> Forgot to say BTW, this is cool :) You should publish it on
> code.xwiki.org once it's finished, I'm sure it can come handy to other
> application developers.
>
> Jerome.
> > that allows creation of collapsible tree from a static ul and lit list.
> > So far, I had it working through by adding the javascript and the css
> file
> > by adding the actual path of these files in the "presentation" section of
> > the admin dashboard.
> > However, I wanted it to be more organized and make it available on
> demand.
> > So i created the jsx and the ssx files in place of the javascript and the
> > css files.
> > So far so good.
> > However, there are images that were referred by the css file which worked
> > fine in the previous setup (basically they assign a plus and minus sign
> on
> > the right of the ul and li elements).
> > Now, I've attached these image files to the ssx. But I am not able to get
> > the ssx to work with the images. The Javascript works fine from the jsx.
> The
> > tree does collapse and expand as expected. However, the images from the
> > style sheet does not show up.
> > I've used the following line in the "object" edit mode of the ssx page:
> >
> > ul.mktree li.liOpen .bullet { cursor: pointer; background:
> > url($xwiki.getAttachmentURL("minus.gif")) center left no-repeat; }
> >
> > ...here minus.gif is attached to the ssx page. But no go.
> > I did go through the various resources on skin customizations and the
> > addsizes extension tutorial. I could not understand the "use velocity to
> > attach images" technique in the addsizes tutorial. Is there a simpler way
> to
> > make the ssx pick up the image files and behave just like a normal css
> > file?...
> > Any help would be appreciated.
> > Thank you all.
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
Hi,
by changing manullay the date attribute in table xwikilock I have found that
xwikilock lasts only about 30-45 minutes (approximatelly). Is there any way
how to increase this time? I haven't found it neither in xwiki.cfg nor
hibernate.cfg.xml...
And second question, if one user starts editing any page, then another user
can also edit this page at the same time just by confirming alert message
that is saying that other user is already editing this page. Is there any
way how to disable this option that 2 users can edit the same page at the
same time?
Thanks for help
--
View this message in context: http://n2.nabble.com/XWikiLock-and-it%27s-duration-time-tp2850310p2850310.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Env: Installed xwiki-enterprise-web-1.8.2.war on Pramati Appl Server
(www.pramati.com). Using HSQL database in server mode.
Create an user without any admin rights. Login from a browser (FF3, IE7,
Chrome1). When the login page loads the following error
is logged to the server console. The user can login and work properly but
the error should not happen. I am using XWiki for
critical business purpose. I need to resolve it asap.
[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:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
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: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)
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.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
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:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
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: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)
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.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
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:1605)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:72)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:255)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
com.pramati.web.servlet.core.ServiceAction.run(ServiceAction.java:83)
at
com.pramati.security.util.PramatiSecurityHelper._doAs(PramatiSecurityHelper.java:54)
at
com.pramati.security.util.AbstractSecurityHelper._doAs(AbstractSecurityHelper.java:195)
at
com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:146)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetWebResource(PramatiFilterChainImpl.java:317)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:168)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.startDoFilter(PramatiFilterChainImpl.java:120)
at
com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceInterceptor.java:114)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:70)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultProcessContainer.java:97)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:289)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:263)
at com.pramati.web.core.WorkerThread.run(WorkerThread.java:129)
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'checkAccess' in class
com.xpn.xwiki.api.XWiki threw exception java.lang.IllegalStateException:
Response is already committed @ /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)
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
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
... 86 more
Caused by: java.lang.IllegalStateException: Response is already committed
at
com.pramati.web.servlet.core.PramatiHttpServletResponseImpl.sendRedirect(PramatiHttpServletResponseImpl.java:1594)
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:332)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:179)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3628)
at com.xpn.xwiki.api.XWiki.checkAccess(XWiki.java:190)
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: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)
... 97 more
[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:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
at sun.reflect.GeneratedMethodAccessor203.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)
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.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
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:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
at sun.reflect.GeneratedMethodAccessor203.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)
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.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
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:1605)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:72)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:255)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
com.pramati.web.servlet.core.ServiceAction.run(ServiceAction.java:83)
at
com.pramati.security.util.PramatiSecurityHelper._doAs(PramatiSecurityHelper.java:54)
at
com.pramati.security.util.AbstractSecurityHelper._doAs(AbstractSecurityHelper.java:195)
at
com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:146)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetWebResource(PramatiFilterChainImpl.java:317)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:168)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.startDoFilter(PramatiFilterChainImpl.java:120)
at
com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceInterceptor.java:114)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:70)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultProcessContainer.java:97)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:289)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:263)
at com.pramati.web.core.WorkerThread.run(WorkerThread.java:129)
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'checkAccess' in class
com.xpn.xwiki.api.XWiki threw exception java.lang.IllegalStateException:
Response is already committed @ /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)
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
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
... 84 more
Caused by: java.lang.IllegalStateException: Response is already committed
at
com.pramati.web.servlet.core.PramatiHttpServletResponseImpl.sendRedirect(PramatiHttpServletResponseImpl.java:1594)
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:332)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:179)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3628)
at com.xpn.xwiki.api.XWiki.checkAccess(XWiki.java:190)
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: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)
--
View this message in context: http://n2.nabble.com/%27Response-is-already-committed%27-when-user-logs-in-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello friends,
I am trying to use the work of Mark Strauss (mktree) found at
http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin
that allows creation of collapsible tree from a static ul and lit list.
So far, I had it working through by adding the javascript and the css file
by adding the actual path of these files in the "presentation" section of
the admin dashboard.
However, I wanted it to be more organized and make it available on demand.
So i created the jsx and the ssx files in place of the javascript and the
css files.
So far so good.
However, there are images that were referred by the css file which worked
fine in the previous setup (basically they assign a plus and minus sign on
the right of the ul and li elements).
Now, I've attached these image files to the ssx. But I am not able to get
the ssx to work with the images. The Javascript works fine from the jsx. The
tree does collapse and expand as expected. However, the images from the
style sheet does not show up.
I've used the following line in the "object" edit mode of the ssx page:
ul.mktree li.liOpen .bullet { cursor: pointer; background:
url($xwiki.getAttachmentURL("minus.gif")) center left no-repeat; }
...here minus.gif is attached to the ssx page. But no go.
I did go through the various resources on skin customizations and the
addsizes extension tutorial. I could not understand the "use velocity to
attach images" technique in the addsizes tutorial. Is there a simpler way to
make the ssx pick up the image files and behave just like a normal css
file?...
Any help would be appreciated.
Thank you all.
Hi
I am not trying to deploy XWiki onto my public server but ran again
into the issue of having to change the JBoss Classloading prefences:
Edit $JBOSS_HOME/server/<server configuration>/jbossweb-tomcat55.sar/
META-INF/jboss-service.xml file and replace:
<attribute name="Java2ClassLoadingCompliance">false</attribute>
<attribute name="UseJBossWebLoader">false</attribute>
with:
<attribute name="Java2ClassLoadingCompliance">true</attribute>
<attribute name="UseJBossWebLoader">true</attribute>
According to your wiki. Because I already have other application
running on that server I am not quite sure if I want to proceed with
that and also was wondering why this is necessary in the first place.
Isn't there a way to use the default configuration of JBoss?
I rarely encounter any other web application that has a problem with it.
Cheers
Andreas Schaefer
CEO of Madplanet.com Inc.
Email: andreas.schaefer(a)madplanet.com
schaefera(a)me.com
Twitter; andy_mpc
AIM: schaefera(a)me.com
On Sat, May 9, 2009 at 10:04 AM, David Huynh <dfhuynh(a)alum.mit.edu> wrote:
> Looking at the HTML source, I see
> <div ex:role="coder" ex:coderClass="Color"
> id="party-colors">
> <span ex:color="red">Republican</span>
> <span ex:color="blue">Democratic</span><p/>
> <span ex:case="others" ex:color="#aaa">Other
> parties</span>
> <span ex:case="mixed" ex:color="#eee">Many
> parties</span>
> <span ex:case="missing" ex:color="#444">No party</span>
> </div>
> I think the <p/> is causing problem. Could you remove it and see if that
> helps?
That was exactly the problem! Thank you so much, as that's one I would have
never spotted myself!
FYI, here's what happened: Since I just cut/paste the HTML from view-source
on the presidents example on simile-widgets.org, the newlines got
interpreted as paragraphs by the wiki-engine in Xwiki. So, I removed the
extra newline in Exhibit.Presidents2, and it now works in IE! This is a
"gotcha" I frequently hit in Xwiki, although I find the ability to mashup
HTML and wikitext in an active document quite useful.
Now both the "standalone"
http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents2
and locally-hosted-exhibit
http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents
work in IE! Thanks again and also thanks for Exhibit which is just all
around great!
The updated XAR (zip format) of "Presidents2" example is here:
http://nielsmayer.com/xwiki/bin/download/Exhibit/Presidents2/Exhibit.Presid…
Length Date Time Name
-------- ---- ---- ----
94080 05-09-09 10:30 Exhibit/Presidents2.xml
2226 05-09-09 10:30 Exhibit/PresidentsSchemaJSON.xml
29379 05-09-09 10:30 Exhibit/PresidentsJSON.xml
544 05-09-09 10:30 package.xml
-------- -------
126229 4 files
Niels
http://nielsmayer.com
PS: After sending the announcement yesterday, I realized there was one issue
that makes this example not quite standalone. Exhibit.PresidentsPkg.xar
contains a hard-coded google-maps key that you receive when registering your
site <http://code.google.com/apis/maps/signup.html>. You'll need to change
"gmapkey" setting in object XWiki.JavaScriptExtension[2] on document
"Exhibit.Presidents2":
> params: { bundle: true, authenticated: false, autoCreate: false, safe:
> false, gmapkey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX", views: "timeline,map" }
Until this is changed, you'll get a dialog box from google saying you need
to register. When you click away the dialog box, it should load the
interface even if not correctly registered.
PPS: What does this Exhibit parameter setting do, and what is the correct
value:
namespace: "http://simile.mit.edu/2006/11/exhibit#",
(also in object XWiki.JavaScriptExtension[2] on document
"Exhibit.Presidents2)
Hi,
Does anyone know if its possible in XWiki to create a diagram (e.g. UML
diagram, organisational diagram, etc) where you can click on a box or some
text on the diagram and go to the relevant wiki page and maybe from that
page back to its associated diagram? This would be quite useful for
navigating from a diagram to its underlying references.
Regards,
Richrd
Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on sender's telephone number above
and delete it and all copies from your system. We accept no responsibility
for changes to any e-mail which occur after it has been sent. Attachments
to this e-mail may contain software viruses which could damage your system.
We therefore recommend you virus-check all attachments before opening.
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
I'm setting up a debugging environment in Eclipse, and Tomcat fails
startup with the following log:
May 7, 2009 8:31:02 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files
(x86)\Java\jdk1.5.0_16\bin;.;C:\Windows\system32;C:\Windows;C:\Program
Files (x86)\Java\jdk1.5.0_16\jre\bin;C:/Program Files
(x86)/Java/jdk1.5.0_16/bin/../jre/bin/client;C:/Program Files
(x86)/Java/jdk1.5.0_16/bin/../jre/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server
5.1\bin;C:\Windows\System32\WindowsPowerShell\v1.0\
May 7, 2009 8:31:02 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 7, 2009 8:31:02 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 624 ms
May 7, 2009 8:31:02 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 7, 2009 8:31:02 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
May 7, 2009 8:31:02 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2009-05-07 20:33:34,608 [] [main] ERROR
8.2] - Exception sending context
initialized event to listener instance of class
org.xwiki.container.servlet.XWikiPlexusServletContextListener
java.lang.RuntimeException: Failed to initialize application contextt
at
org.xwiki.container.servlet.XWikiPlexusServletContextListener.contextInitialized(XWikiPlexusServletContextListener.java:58)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.servlet.ServletException: could not lookup service
org.xwiki.container.servlet.ServletContainerInitializer
at
org.codehaus.plexus.servlet.PlexusServletUtils.lookup(PlexusServletUtils.java:94)
at
org.xwiki.container.servlet.XWikiPlexusServletContextListener.contextInitialized(XWikiPlexusServletContextListener.java:54)
... 15 more
May 7, 2009 8:33:39 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
org.xwiki.container.servlet.ServletContainerInitializer.class is present
in the published xwiki-core-container-servlet.jar.
What should I do next to troubleshoot?
Thanks,
Dan