Hello,
I wanted to know how to access the Xwiki workspace I created without downloading the package hsqldb (for the users of the workspace).
Thank you!
_________________________________________________________________
Hotmail: la nouvelle technologie anti-spam aide à bloquer les messages indésirables, ici vous pouvez régler votre filtre Spam.
http://mail.live.com/mail/options.aspx?subsection=4
Hello
i saw some posts here for defining page sections.
(http://n2.nabble.com/some-questions-concerning-editing-pages-more-specific-…)
what i did and fail apparently was: have some tables in a page and i wanted
to define each table as a section, so that when to edit, the user cand edit
just the specific table he wants to. not the hole part.
so i created for test 2 tables with titles:
1. section 1
..the actual table
1.1 section 2
..the actual table
but the sections weren't created.
Is there any documentation for this, please?
Thank you
--
View this message in context: http://n2.nabble.com/declare-sections-in-the-page-tp3973361p3973361.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello all!
There is a problem with a panel, which does not appear for a user. Here
is what I have done:
Xwiki Enterprise 2.0.3.24848
0. Login as User in Admingroup
1. Created a space "SpaceA" with several pages
2. Created a group "GroupA"
3. Created a user "UserA"
4. Put UserA in GroupA
5. Gave edit and view rights for SpaceA to GroupA
6. Changed Page Layout to Left column
7. Added only one panel PanelA which shows the documents of this page
8. All works fine
9. Login as UserA
10. Can only see documents in SpaceA but cannot see PanelA
Even if I give all rights to UserA for SpaceA I cannot see PanelA.
If I want to administrate SpaceA as UserA and choose the panels section
I became an error:
"Topic Panels.PanelWizard does not exist".
Sections Presentation and Rights are working fine.
Does someone know this behaviour? Can anybody give a hint or help me?
Greetings
Dirk
Hi,
I am having an interesting problem: content is getting duplicated in my
XWiki. This seems to affect only one page in my wiki (at least I have
noticed it only there). Parts of the content of the page get duplicated
on that same page, see:
https://e-research.cs.st-andrews.ac.uk/site/bin/view/Research+in+a+Connecte…
(I will leave this unmodified for a few days)
This is not just an artefact in the output. When I edit the content, the
duplication is there. I can remove it and it disappears but the problem
seems to re-occur. Any ideas what might be going on?
Best wishes,
Alex
--
Alexander Voss
SICSA Advanced Research Fellow
School of Computer Science
University of St Andrews
http://www.cs.st-andrews.ac.uk/~avoss
The University of St Andrews is a charity registered in Scotland : No
SC013532
Hi,
I was trying to build the XWiki Web project, version 1.8.1. At first, it looked for the smartgwt.jar. I downloaded it and manually installed it in the repository. Now, here is the error that I got:
[gwt:compile]
establishing classpath list (buildClaspathList - scope = COMPILE)
google.webtoolkit.home (gwtHome) *not* set, using project POM for GWT dependencies
The input line is too long.
I downloaded and installed gwt and set the GWT_HOME environment variable. The error still occurs. I'm not sure why.
Any ideas?
Thank you very much.
Regards,
J. Allen
Dear All,
We just updated to XWiki Enterprise 2.0.3.24848 for internal
documentation and are having difficulties with the display. We use the
toucan skin from version 1.9. When users log-in, they see the site
without our skin. When the admins log-in, the skin is there. What is the
problem? The login is also without the skin. Is the skin cached in the
browser?
greetings,
Steven Calkins
Hi
I get the errors below on my newly installed xwiki. I've followed the instructions in http://www.howtoforge.com/xwiki-tomcat-mysql-debian-etch (whith the exception of point 11, which I was trying to do now)
I've checked and re-checked my hibernate.cfg.xml and my MySQL-configuration and I'm unable to find the problem. Could you please help me solve this?
HTTP Status 500 -
________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: invalid configuration
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: invalid configuration
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:339)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:400)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
________________________________
Apache Tomcat/5.5
mvh
Linda Ursin
Brukersenteret
_____________________________________________________________________
Brukersenter ved HiST er brukerens første kontaktpunkt ved IKT-relaterte spørsmål og problemer. Vi har betjent telefon mellom 08:00 og 15:00.
Tlf: (73 5)5 99 00
E-post: brukersenter(a)hist.no <mailto:brukersenter@hist.no>
Du finner oss også på Ansattportalen og Studentportalen. Vennligst sjekk våre sider der (spesielt veiviserne) før du melder et problem til oss.
NB! Da vi kommuniserer med deg vedrørende en sak, trenger vi tilbakemelding fra deg også når det fungerer slik at vi kan avslutte saken.
Vi ber om at du, så langt som mulig, benytter den adressen du er blitt tildelt her ved HiST når du kontakter oss pr. e-post. Da vet vi hvem du er med en gang og slipper å finne deg frem, pluss at vi vet at du faktisk jobber/studerer ved HiST.
Hi Joshua,
(I apologize to all if this appears more than once; I haven't been
successful posting to the mailing list since before yesterday. Perhaps
attachments are prohibited? Trying again without.)
Thanks again, your explanation of spaces was very clear and helpful.
Now that I have a little better understanding of spaces, I'll present my
problem. For some reason when I create a FAQ entry, it's not going into
the FAQ space but instead into the Main space. Per the tutorial, I haven't
created a FAQ space explicitly this go round.
It seems to me this can only be happening as a result of the code that
adds a FAQ, or perhaps in the class definition code which specifies the
default space. Looks right to me and jibes with what you've said about
spaces. Here it is yanked directly out of my code .. which was simply a
copy/paste from the tutorial:
FAQClass code:
{{velocity}}
## Replace Main with the Space where you want your documents to be
created.
## Replace the default parent with the one of your choice and save the
document.
##
#set($className = $doc.name.substring(0, $doc.name.indexOf("Class")))
#set($defaultParent = 'FAQ.WebHome')
#set($defaultSpace = 'FAQ')
{{/velocity}}
{{include document="XWiki.ClassSheet"/}}
FAQTemplate code:
{{include document="FAQ.FAQSheet"/}}
FAQ WebHome code (http://localhost/xwiki/bin/edit/FAQ/WebHome?&editor=wiki
):
= Existing FAQ entries =
{{velocity}}
#set($sql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='FAQ.FAQClass' and obj.name<>'FAQ.FAQTemplate'")
#set($results = $xwiki.searchDocuments($sql))
#if($results.empty)
No FAQ has been created yet!
#else
#foreach ($item in $results)
#set($faq = $xwiki.getDocument($item))
* [[${faq.display("question").replace("<p>", "").replace("</p>",
"")}>>${item}]]
#end
#end
{{/velocity}}
{{velocity}}
#if("$!request.docName" != '')
## Request for creating a new instance
#set($targetDocName = "${request.spaceName}.${request.docName}")
#set($targetDocName = $targetDocName.replace("?", "").replace("#",
"").trim())
#if(!$xwiki.exists($targetDocName) && $xwiki.hasAccessLevel('edit',
$context.user, $targetDocName))
$response.sendRedirect($xwiki.getURL($targetDocName, 'inline',
"template=${request.template}&parent=${request.parent}"))
## Stop processing, since we already sent a redirect.
#stop
#end
#end
= Add a new question =
#if("$!targetDocName" != '' && $xwiki.exists($targetDocName))
{{warning}}The target document already exists. Please choose a different
name, or [[view the existing document>>$targetDocName]]{{/warning}}
#elseif("$!targetDocName" != '')
{{warning}}You don't have permission to create that document{{/warning}}
#end
{{html}}
<form action="" id="newdoc" method="post">
<div>
<input type="hidden" name="parent" value="${doc.fullName}"/>
<input type="hidden" name="template" value="FAQ.FAQTemplate"/>
<input type="hidden" name="sheet" value="1"/>
<input type="hidden" name="spaceName" value="FAQ"/>
Document: <input type="text" name="docName" value="Enter your
question here" class="withTip" size="50"/>
<span class="buttonwrapper"><input type="submit" value="Create this
FAQ" class="button"/></span>
</div>
</form>
{{/html}}
{{/velocity}}
So what am I missing?
Thanks,
Mark
"Rieken, Joshua" <Joshua_Rieken(a)reyrey.com>
Sent by: users-bounces(a)xwiki.org
11/10/2009 04:37 PM
Please respond to
XWiki Users <users(a)xwiki.org>
To
XWiki Users <users(a)xwiki.org>
cc
Subject
Re: [xwiki-users] problem with FAQ tutorial .. space assignment?
Mark,
You're very welcome. It's not necessary to explicitly create the WebHome
in FAQ until later in the tutorial. Question/Answer documents that are
created from the FAQ Class page will go into the FAQ space, which "comes
into existence" the instant any document is placed in it.
For example, if you add a question/answer page called
"FAQ.Howtoeditapage", you can still get to it regardless of whether
"FAQ.WebHome" exists.
A space "disappears" when every document that is part of the space is
deleted. So a space is just a collection of documents and doesn't really
exist outside of those documents. It's really just a convenient way to
organize your documents.
Good luck, and if you have any more questions, please don't hesitate to
ask.
-Joshua-
> -----Original Message-----
> From: users-bounces(a)xwiki.org
> [mailto:users-bounces@xwiki.org] On Behalf Of Mark_Marziale(a)BCBSIL.COM
> Sent: Tuesday, November 10, 2009 3:31 PM
> To: XWiki Users
> Cc: XWiki Users; users-bounces(a)xwiki.org
> Subject: Re: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
>
> Hi Joshua,
>
> Thanks very much for your prompt reply. It helps a lot to
> know the history and what WebHome means!
>
> Am I correct then in first creating the FAQ space explicitly,
> even though that's not called for in the tutorial? Like so:
>
> "I've first created the FAQ Space, then built the FAQ Class,
> etc, then put the code into the 'home' page for the space, ie
> http://localhost/xwiki/bin/view/FAQ/"
>
>
> Thanks,
> Mark
>
> BCBS-IL
> ph 312-653-4293
> mark_marziale(a)bcbsil.com
>
>
>
>
>
> "Rieken, Joshua" <Joshua_Rieken(a)reyrey.com>
> Sent by: users-bounces(a)xwiki.org
> 11/10/2009 03:18 PM
> Please respond to
> XWiki Users <users(a)xwiki.org>
>
>
> To
> XWiki Users <users(a)xwiki.org>
> cc
>
> Subject
> Re: [xwiki-users] problem with FAQ tutorial .. space assignment?
>
>
>
>
>
>
> Hi Mark,
>
> http://localhost/xwiki/bin/view/FAQ/ actually takes you to
> http://localhost/xwiki/bin/view/FAQ/WebHome. "WebHome" is the
> home page
> for any given space. The name "WebHome" came from earlier versions of
> XWiki, when a Space was called a Web.
>
> Hope this helps,
> -Joshua-
>
> > -----Original Message-----
> > From: users-bounces(a)xwiki.org
> > [mailto:users-bounces@xwiki.org] On Behalf Of
> Mark_Marziale(a)BCBSIL.COM
> > Sent: Tuesday, November 10, 2009 3:06 PM
> > To: users(a)xwiki.org
> > Subject: [xwiki-users] problem with FAQ tutorial .. space
> assignment?
> >
> > Hi,
> >
> > I've followed along in the tutorial in the dev guide for
> > creating a FAQ at
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
> >
> > Here's my first point of confusion: in section 'Create a
> > homepage for your application' it states 'Go to the
> > "FAQ.WebHome" page'. I do not see such a page. In the latest
> > iterations of building the FAQ I've first created the FAQ
> > Space, then built the FAQ Class, etc, then put the code into
> > the 'home' page for the space, ie
> http://localhost/xwiki/bin/view/FAQ/
> >
> > I'm sure my problems stem from my weak understanding of this
> > step and how spaces are created and referenced.
> >
> > Thanks,
> > Mark
> >
> > BCBS-IL
> > ph 312-653-4293
> > mark_marziale(a)bcbsil.com
> >
> >
> >
> > HCSC Company Disclaimer
> >
> > The information contained in this communication is
> > confidential, private,
> > proprietary, or otherwise privileged and is intended only for
> > the use of
> > the addressee. Unauthorized use, disclosure, distribution or
> > copying is
> > strictly prohibited and may be unlawful. If you have received this
> > communication in error, please notify the sender
> immediately at (312)
> > 653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
> > Oklahoma; or (972)766-6900 in Texas.
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Dear Sergiu,
The image I sent made the message to large. If you would like to see the rendering I would be glad to send it to you. Simply put, the code you supplied still doesn't work even though I copied and pasted your code directly into my wiki 2.0 page.
greetings,
Steven Calkins
E-Mail: steven.calkins(at)crossmediasolutions.de
> -----Ursprüngliche Nachricht-----
> Von: Steven Calkins
> Gesendet: Montag, 16. November 2009 10:50
> An: 'XWiki Users'
> Betreff: AW: [xwiki-users] Latex {cases} command doesn't work
> in default xwiki 2.0 formula macro
>
> Hi Sergiu,
>
> I tried your example after changing the line
> "macro.formula.renderer" in the properties file back to
> "native"and restarting xwiki. Sadly it still didn't work on
> my machine. So what is different on your machine compared to
> mine? (Do you perhaps have a developing environment which
> automatically finds the proper TeX parts?) I just copied and
> pasted your example. The rendered results are seen in the
> attached screenshot. I'm not sure that attachments get
> through to you, but if you can view it, you can see that the
> formulae are rendered, just the cases command is not
> executed. I'm still using a SKIN from 1.9. on XWiki
> Enterprise 2.0.3.24848, running on postgres but I believe
> that should be irrelevant. Here's my code:
>
> ================START XWIKI CODE ==================================
>
> === Continuation and cases===
> This example from wikipedia doesn't seem to work:
> {{formula fontSize="normal"}}
> f(x) = \begin{cases}1 & \mbox{-1 \le x < 0\par} \\
> \frac{1}{2} & \mbox{x = 0} \\ 1 - x^2 &
> \mbox{otherwise\par}\end{cases} {{/formula}}
>
> Example from Sergiu
> {{formula}}
> f(x) =
> \begin{cases}
> 1 & -1 \le x \le 0 \\
> \frac{1}{2} & x = 0 \\
> 1 - x^2 & \mbox{otherwise}
> \end{cases}
> {{/formula}}
>
>
> Case definitions
>
> Used when a definition has two or more cases. Use the case
> statement. Notice that the spaces after the instances of if
> were included inside the mbox declarations.
>
> {{formula fontSize="normal"}}f(n) = \begin{cases} n/2, &
> \mbox{if } n\mbox{ is even} \\ 3n+1, & \mbox{if } n\mbox{ is
> odd} \end{cases}{{/formula}}
>
> Third try
> {{formula fontSize="normal"}}f(n) = \left\{ \begin{array}{l l}
> n/2 & \quad \text{if $n$ is even}\\
> -(n+1)/2 & \quad \text{if $n$ is odd}\\ \end{array}
> \right.{{/formula}}
>
> ======================END XWIKI CODE==================
>
> Cheers,
>
> Steven Calkins
> E-Mail: steven.calkins(at)crossmediasolutions.de (in the
> event you want to see my image and can't)
>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]
> Im Auftrag von Sergiu Dumitriu
> Gesendet: Freitag, 13. November 2009 19:16
> An: XWiki Users
> Betreff: Re: [xwiki-users] Latex {cases} command doesn't work
> in default xwiki 2.0 formula macro
>
> On 11/13/2009 02:56 PM, Steven Calkins wrote:
> > Hi Sergiu,
> >
> > I tried what you said, adding the line
> "macro.formula.renderer = native" to WEB-INF/xwiki.properties
> and saving it. Then I restarted Xwiki but it didn't work. It
> still rendered the formula in a single line. Then I tried
> "the line "macro.formula.renderer=mathtran", saved it, and
> restarted xwiki. It still didn't work. Is there some part of
> the the TeX package still missing? I just installed XWiki
> Enterprise 2.0.3.24848, it runs on postgres.
>
> OK, it seems that the default renderer is the native one, so
> there was no need to change it.
>
> I tried your example, and actually there's a problem with the
> formula.
> The code from your mail causes the native renderer to fail
> because there's a syntax error, specifically the first mbox
> contains \le, which is only valid in math mode. This works fine:
>
> {{formula}}
> f(x) =
> \begin{cases}
> 1 & -1 \le x \le 0 \\
> \frac{1}{2} & x = 0 \\
> 1 - x^2 & \mbox{otherwise}
> \end{cases}
> {{/formula}}
>
> > I was a little surprised that I had to add a line in the
> WEB-INF/xwiki.properties file and not uncomment a line and
> change its value, as you do in most cases. Could it be that I
> have an older config file or is the line in
> WEB-INF/xwiki.properties not available yet in the newest
> version? I used the config from the download, and changed
> only those values that pertained to my earlier system settings.
>
> My fault, I forgot to add this setting in the template that
> generates xwiki.cfg.
>
> > Greetings,
> >
> > Steven Calkins
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Im
> > Auftrag von Sergiu Dumitriu
> > Gesendet: Freitag, 13. November 2009 12:31
> > An: XWiki Users
> > Betreff: Re: [xwiki-users] Latex {cases} command doesn't work in
> > default xwiki 2.0 formula macro
> >
> > On 11/13/2009 11:45 AM, Steven Calkins wrote:
> >> Dear all,
> >>
> >> The LaTeX {case} macro doesn't seem to work in Xwiki
> 2.0 with the
> >> default LaTeX renderer.
> >>
> >> Try these two examples to reproduce it and compare with
> >> http://en.wikipedia.org/wiki/Math_markup#Examples_2:
> >> [XWIKI CODE STARTS HERE]
> >>
> >> === Continuation and cases===
> >> This example from wikipedia doesn't seem to work:
> >> {{formula fontSize="normal"}}f(x) = \begin{cases}1&
> \mbox{-1 \le x<
> >> 0\par} \\
> >> \frac{1}{2} \;\;\;& \mbox{x = 0\par} \\ 1 - x^2&
> >> \mbox{otherwise\par}\end{cases}{{/formula}}
> >>
> >> ===Case definitions===
> >>
> >> {{formula fontSize="normal"}}f(n) = \begin{cases} n/2,&
> \mbox{if }
> >> n\mbox{ is even} \\ 3n+1,& \mbox{if } n\mbox{ is odd}
> >> \end{cases}{{/formula}}
> >>
> >> [XWIKI CODE ENDS HERE]
> >>
> >> Any suggestions?
> >
> > The cases environment is not standard TeX, it belongs to
> the amsmath
> > package. This means that it is not supposed to work using
> the default
> > backend. It should work with the native one, which uses the amsmath
> > package, and you could try using the mathtran one. If you decide to
> > change the backend, you'll find instructions in the last
> paragraph on
> >
> http://code.xwiki.org/xwiki/bin/view/Macros/FormulaMacro#HTechnicalinf
> > ormation
>
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Hi there,
This morning, I attended a meeting with a group of interest about FLOSS in
our area (South West of France).
We all want to start collaborating, but we definitely need a good wiki with
features like WISIWYG editor and Templates.
This group is totally not for profit, and is not even an established
organisation by now.
So I request to create a new wiki named gtllmipy on your farm so that I can
push Xwiki as the collaboration solution for our group.
Regards,
=======================================================
Gaël Blondelle
CTO of Petals Link
VP Technology of OW2
4 Rue Amélie
FR - 31000 Toulouse
Phone: +33 (0)5 62 73 43 82
Fax: +33 (0)5 62 24 40 90
Mobile: +33 (0)6 88 34 67 02
Email: <mailto:gael.blondelle@petalslink.com> gael.blondelle(a)petalslink.com
Website: <http://www.petalslink.com> www.petalslink.com
Petals Link is member of the OW2 Consortium( <http://www.ow2.org/>
www.ow2.org).
Please visit the site dedicated to our flagship product PEtALS ESB:
<http://petals.ow2.org/> http://petals.ow2.org
Hello :)
I belong to an association of statistics and history of Spanish football. It's a non-profit, rather it's a hobby.
I need a wiki, it's a free encyclopaedia statistical Spanish League football, with lots of data. The wiki has between 3,000 and 6,000 pages.
User name: arf
Server name: arfpedia
Thank you very much, get a bear hug
:)
Dear all,
The LaTeX {case} macro doesn't seem to work in Xwiki 2.0 with
the default LaTeX renderer.
Try these two examples to reproduce it and compare with
http://en.wikipedia.org/wiki/Math_markup#Examples_2:
[XWIKI CODE STARTS HERE]
=== Continuation and cases===
This example from wikipedia doesn't seem to work:
{{formula fontSize="normal"}}f(x) = \begin{cases}1 & \mbox{-1 \le x <
0\par} \\
\frac{1}{2} \;\;\;& \mbox{x = 0\par} \\ 1 - x^2 &
\mbox{otherwise\par}\end{cases}{{/formula}}
===Case definitions===
{{formula fontSize="normal"}}f(n) = \begin{cases} n/2, & \mbox{if }
n\mbox{ is even} \\ 3n+1, & \mbox{if } n\mbox{ is odd}
\end{cases}{{/formula}}
[XWIKI CODE ENDS HERE]
Any suggestions?
Greetings,
Steven Calkins
Dear xwiki-list,
I have a problem with the OpenOffice converter.
XE is 2.0.1.24472, OpenOffice 3, Ubuntu 9.04 server.
OpenOffice server is running & connected.
But when I try to import even a very simple .odt test file, I get the
error message:
"could not complete task".
xwiki.log (attached) shows the following problem:
com.sun.star.lang.IllegalArgumentException: URL seems to be an
unsupported one.
Any suggestions ?
Thanks!
Ralf.
/var/lib/tomcat6/webapps/xwiki/WEB-INF/xwiki.properties
#-# Default port is
8100
openoffice.serverPort=8100
#-# [Since 1.9M2]
#-# If the openoffice server should be started / connected upon XE start.
#-# Default value is false
openoffice.autoStart=true
#-# [Since 1.8RC3]
#-# Path to openoffice installation (serverType:0 only).
#-# If no path is provided, a default value will be calculated based on
the operating environment.
openoffice.homePath=/usr/lib/openoffice/
#-# [Since 1.8RC3]
#-# Path to openoffice execution profile (serverType:0 only).
#-# If no path is provided, a default value will be calculated based on
the operating environment.
openoffice.profilePath=/home/OOo/.openoffice.org/3
#-# [Since 1.8RC3]
#-# Maximum number of simultaneous conversion tasks to be handled by a
single openoffice process (serverType:0 only).
#-# Default value is
50
#
openoffice.maxTasksPerProcess=50
#-# [Since 1.8RC3]
#-# Timeout for conversion tasks (in miliseconds) (serverType:0 only).
#-# Default value is 30 seconds
# openoffice.taskExecutionTimeout=30000
#-------------------------------------------------------------------------------------
#
Velocity
#-------------------------------------------------------------------------------------
#-# [Since 2.0M1]
/tmp/tomcat6-temp
2009-11-12 11:23:33,936 [] [main] INFO ffice.DefaultOpenOfficeManager
- Open Office instance started.
2009-11-12 11:23:40,649
[http://mswiki.scripps.edu:8080/xwiki/bin/admin/XWiki/XWikiPreferences]
[http://mswiki.scripps.edu:8080/xwiki/bin/admin/XWiki/XWikiPreferences]
INFO .AbstractXWikiMigrationManager - No storage migration required
since current version is
[15429]
2009-11-12 11:24:06,717
[http://mswiki.scripps.edu:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
[http://mswiki.scripps.edu:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
ERROR rterVelocityContextInitializer - could not complete
task
org.xwiki.officeimporter.OfficeImporterException: could not complete
task
at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:175)
at
org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.importDocument(OfficeImporterVelocityBridge.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:554)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at
com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at
com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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.doPost(ActionServlet.java:432)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
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.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at
java.lang.Thread.run(Thread.java:636)
Caused by: net.sf.jodconverter.office.OfficeException: could not
complete
task
at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:95)
at
net.sf.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:71)
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeDocumentConverter.convert(DefaultOpenOfficeDocumentConverter.java:99)
at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:151)
... 109
more
Caused by: java.util.concurrent.ExecutionException:
net.sf.jodconverter.office.OfficeException: conversion
failed
at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:262)
at
java.util.concurrent.FutureTask.get(FutureTask.java:119)
at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:90)
... 112
more
Caused by: net.sf.jodconverter.office.OfficeException: conversion
failed
at
net.sf.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:71)
at
net.sf.jodconverter.office.ManagedProcessOfficeManager$2.run(ManagedProcessOfficeManager.java:85)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at
java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
... 1
more
Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be
an unsupported
one.
at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
at
com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
at $Proxy27.loadComponentFromURL(Unknown
Source)
at
net.sf.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:58)
... 7
more
2009-11-12 11:26:42,876
[http://mswiki.scripps.edu:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
[http://mswiki.scripps.edu:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
ERROR rterVelocityContextInitializer - could not complete
task
org.xwiki.officeimporter.OfficeImporterException: could not complete
task
at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:175)
at
org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.importDocument(OfficeImporterVelocityBridge.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:554)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at
com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at
com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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.doPost(ActionServlet.java:432)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
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.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
Caused by: net.sf.jodconverter.office.OfficeException: could not
complete task
at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:95)
at
net.sf.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:71)
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeDocumentConverter.convert(DefaultOpenOfficeDocumentConverter.java:99)
at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:151)
... 109 more
Caused by: java.util.concurrent.ExecutionException:
net.sf.jodconverter.office.OfficeException: conversion failed
at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:262)
at java.util.concurrent.FutureTask.get(FutureTask.java:119)
at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:90)
... 112 more
Caused by: net.sf.jodconverter.office.OfficeException: conversion failed
at
net.sf.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:71)
at
net.sf.jodconverter.office.ManagedProcessOfficeManager$2.run(ManagedProcessOfficeManager.java:85)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
... 1 more
Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be
an unsupported one.
at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
at
com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
at $Proxy27.loadComponentFromURL(Unknown Source)
at
net.sf.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:58)
... 7 more
Hello,
I've tried to add toolbar buttons for fonts and colours to the Syntax 2.0 WYSIWYG toolbar in XWiki 1.9.3 by following the online guide at: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor .
First, in "macros.vm" (or anywhere else) I didn't find any lines that looked like these:
plugins: '$xwiki.getXWikiPreference("wysiwyg.plugins", "submit line separator text list indent history format symbol link image table macro importer#if($full && $request.sync) sync#end")',
toolbar: '$xwiki.getXWikiPreference("wysiwyg.toolbar", "bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | hr symbol")',
they looked like this:
plugins: 'submit line separator text valign list indent history format symbol link image table macro importer#if($full && $request.sync) sync#end',
toolbar: 'bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol | link unlink | importer',
I changed the two lines to this:
plugins: 'submit line separator text font color valign list indent history format symbol link image table macro importer#if($full && $request.sync) sync#end',
toolbar: 'bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format fontname fontsize forecolor backcolor | hr symbol | link unlink | importer',
According to the documentation: "You can reload your web container." and "You don't have to restart the server.". By reloading the web container do you mean refreshing the browser page? Or exiting and re-entering the WYSIWYG editor? I have not tried restarting the server but the buttons are not showing up.
Thanks,
Trevor
Hello,
categories are part of XWiki Workspaces. However, I cannot find this feature in XWiki Enterprise (neither in the software itself nor the documentation). In general, I consider categories a useful extension to spaces and tags and, thus, would like to have them at my disposal. Is there a way to include categories into XWiki Enterprise?
Kind regards,
Gerhard
Festo AG & Co. KG
Gerhard Peter
Abteilung IS-KM
Methoden und Prozesse
Plieninger Stra?e 50
73760 Ostfildern-Scharnhausen
Deutschland
Telefon +49(711)347-4530
Telefax +49(711)34754-4530
http://www.festo.com
Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls Sie nicht der Adressat dieses E-Mails sind und das Material von Ihrem Computer zu loeschen.
This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this e-mail, please delete it and immediately notify the sender.
Rechtsform: Kommanditgesellschaft
Sitz: Esslingen a.N., Registergericht Stuttgart HRA 211583, Umsatzsteuerident-Nummer: DE 145339206
Persoenlich haftende Gesellschafterin: Festo Management Aktiengesellschaft
Sitz: Wien/Oesterreich, Firmenbuchgericht: Handelsgericht Wien, Firmenbuch Nr. FN 303027 d
Vorstand:
Dr. Ekkehard Gericke
Dipl.-Kfm. Alfred Goll
Dr. Ansgar Kriwet
Dr. Thomas Rubbe
Dr. Eberhard Veit (Vorsitzender)
Dr. Ulrich Walker
Aufsichtsratsvorsitzender:
Dr. Wilfried Stoll
Hello
isn't this suppose to get the content of the each page?
#foreach($sourceDoc in $xwiki.getSpaceDocsName($sourceSpace))
$contents = $xwiki.getDocument($sourceSpace.$sourceDoc)
contents = $contents
#end
so that latter on i can set that content to another
page.($pageclass.setContent($contents)) it's about copying one document from
one space to another space.
--
View this message in context: http://n2.nabble.com/get-content-of-page-tp3992676p3992676.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'm currently evaluating xwiki.
My goal is to develop a data maintenance system for books and authors data.
Two entities, BOOK and AUTHOR, have a many-to-many relationship.
The new system should provide an ability to maintain the attributes of
each entity as well as the relationship between them using forms.
There are a large number of existing data, which are sourced from
other systems and I'm considering to store them using custom mapping
in XWiki.
Now I wonder how I should store the many-to-many relationship in XWiki
database. Is it a right approach for XWiki to introduce the
traditional intersection table?
Also, I'd like to know the subsequent steps to follow.
I need to create a .hbm file and define a many-to-many mapping, right?
And next...?
Any hint would be greatly appreciated.
Thanks,
ebi
I've made sure that the xwiki syntax is set to Xwiki 1.0 for the page but when I type "[]" or "$xwiki." as per the screenshots in the XWiki Page Editor section of the XEclipse user guide (http://xeclipse.xwiki.org/xwiki/bin/view/Main/UserGuide) no autocompletion popup boxes appear.
I'm using XEclipse 1.2.0 RC1
Radek
----- Original Message -----
From: Vincent Massol <vincent(a)massol.net>
Sent: Tue, 10/11/2009 6:30pm
To: XWiki Users <users(a)xwiki.org>
Subject: Re: [xwiki-users] XEclipse syntax highlighting and code completion
Hi Radek,
On Nov 10, 2009, at 7:23 AM, Radek Rekas wrote:
> Hi,
>
> I can't seem to get the syntax highlighting and code completion
> working in XEclipse, is there anything that needs to be done to get
> this working or should it work out of the box?
It'll work OOB but only for the XWiki 1.0 syntax for now. We need
someone to make it work for the 2.0 syntax.
Thanks
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
On Nov 11, 2009, at 11:44 PM, Radek Rekas wrote:
> Whoops, that was it, i feel silly now.
Np
-Vincent
> Thank you very much for the help.
>
>
> Radek
>
> ----- Original Message -----
> From: Vincent Massol <vincent(a)massol.net>
> Sent: Wed, 11/11/2009 6:09pm
> To: XWiki Users <users(a)xwiki.org>
> Subject: Re: [xwiki-users] XEclipse syntax highlighting and code
> completion
>
>
> On Nov 11, 2009, at 12:10 AM, Radek Rekas wrote:
>
>> I've made sure that the xwiki syntax is set to Xwiki 1.0 for the
>> page but when I type "[]" or "$xwiki." as per the screenshots in the
>> XWiki Page Editor section of the XEclipse user guide (http://xeclipse.xwiki.org/xwiki/bin/view/Main/UserGuide
>> ) no autocompletion popup boxes appear.
>
> Have you pressed ctrl+space too?
>
> Thanks
> -Vincent
>
>>
>> I'm using XEclipse 1.2.0 RC1
>>
>>
>> Radek
>>
>> ----- Original Message -----
>> From: Vincent Massol <vincent(a)massol.net>
>> Sent: Tue, 10/11/2009 6:30pm
>> To: XWiki Users <users(a)xwiki.org>
>> Subject: Re: [xwiki-users] XEclipse syntax highlighting and code
>> completion
>>
>> Hi Radek,
>>
>> On Nov 10, 2009, at 7:23 AM, Radek Rekas wrote:
>>
>>> Hi,
>>>
>>> I can't seem to get the syntax highlighting and code completion
>>> working in XEclipse, is there anything that needs to be done to get
>>> this working or should it work out of the box?
>>
>> It'll work OOB but only for the XWiki 1.0 syntax for now. We need
>> someone to make it work for the 2.0 syntax.
>>
>> Thanks
>> -Vincent
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Is there a limit to the number of files that can be attached to an XWiki
page? If a page has 199 attachments, would it cause any problems or
issues?
** Mary Ellen
Hello,
I found this link :
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule. It is an
useful one, but if i wanna edit more than one html element(in this case
textarea that has the id="demo") then it does now what to do.
i tried making an array of "hookedIds" but that does not help either.
my case scenario is something like this:
"i have a table with multiple <input type="text" .. or textarea . they are
grouped in a table(which had an id..thinking that if all elements are
integrated in an table that has an id i am doing a step forward..quess not).
each field has an id because when i press Edit i wanna edit all those
elements from the table, except some labels lets say. So, folowing the
example from the link above i tried, made a table, created input types and
labels. just like a normal table. i gave ids to all the elements that i
wanna edit later on. then when i call the editor on load in javascript, i
have this variable there:hookId. this one can receive only one id?. my scope
is to add as many ids as i need to so that when i press the edit button to
be ablet to edit those "
this is a long shot, but it's my best idea yet. if you think there is
something wrong in the logic, please tell me. did anybody ran into such
stuff?
thank you
--
View this message in context: http://n2.nabble.com/how-to-declare-in-a-js-script-that-the-editor-can-have…
Sent from the XWiki- Users mailing list archive at Nabble.com.
hello
i am trying to understand how the "edit a page" works, how does it
know(where is sending the request) to preload the data of the page in the
editor(wysiwyg). If the developers take a look on this topic, please give me
a trail to follow. the flow at least . thank you
--
View this message in context: http://n2.nabble.com/editor-with-preloaded-data-tp3979819p3979819.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I am out of the office until 11/12/2009.
I will not have access to email. For wiki assistance, please contact Kim
Dillon.
Note: This is an automated response to your message "users Digest, Vol 28,
Issue 16" sent on 11/11/09 2:10:10.
This is the only notification you will receive while this person is away.
What I have discovered is that this is happening when I try to use an Oracle
user other than "xwiki". Somehow the code to run the initialization oracle
script has been bound to this user. It is a problem cause you can never have
two different xwiki installations working with the same oracle SID (i.e. on
the same instance of oracle XE).
anyone that can look in the code and try to verify this?
Hi,
I've followed along in the tutorial in the dev guide for creating a FAQ at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
Here's my first point of confusion: in section 'Create a homepage for your
application' it states 'Go to the "FAQ.WebHome" page'. I do not see such a
page. In the latest iterations of building the FAQ I've first created the
FAQ Space, then built the FAQ Class, etc, then put the code into the
'home' page for the space, ie http://localhost/xwiki/bin/view/FAQ/
I'm sure my problems stem from my weak understanding of this step and how
spaces are created and referenced.
Thanks,
Mark
BCBS-IL
ph 312-653-4293
mark_marziale(a)bcbsil.com
HCSC Company Disclaimer
The information contained in this communication is confidential, private,
proprietary, or otherwise privileged and is intended only for the use of
the addressee. Unauthorized use, disclosure, distribution or copying is
strictly prohibited and may be unlawful. If you have received this
communication in error, please notify the sender immediately at (312)
653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
Oklahoma; or (972)766-6900 in Texas.
I'm following the instructions for installing xwiki into the eXo portal
(GateIn is based on eXo) but I'm getting a casting exception
Nov 10, 2009 11:59:33 AM
org.exoplatform.portal.application.ResourceRequestFilter afterInit
INFO: Cache eXo Resource at client: true
10.11.2009 11:59:35 *ERROR* [main] LifeCycle: Cannot start object
(LifeCycle.java, line 101)
org.gatein.pc.portlet.container.PortletInitializationException: The portlet
xwiki threw a runtime exception during init
Caused by: java.lang.ClassCastException: com.xpn.xwiki.web.XWikiPortlet
cannot be cast to javax.portlet.Portlet
at
org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:254)
Any ideas where to start?
Thanks.
--
View this message in context: http://n2.nabble.com/install-xwiki-into-GateIn-portal-tp3981710p3981710.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
This wiki will be used for a place put documentation on how to use our new
ILS. My user name for myxwiki.org is weather15, I would like the server name
to be glfln.myxwiki.org.
--
Thanks,
Ryan
President: Greater Laverdiere Family Library Network
Hi,
I can't seem to get the syntax highlighting and code completion working in XEclipse, is there anything that needs to be done to get this working or should it work out of the box?
Thanks,
Radek
Hello
I apologize if this is a stupid question, but I haven't been able to figure
it out yet. I want to write a javascript function that can trigger the
"save and continue" button on the edit page. Can anybody show me some
sample code or explain how to do this? Thanks
Jeremy
Hello all,
We are happy to inform you a new Top Level Project as been created :
XWiki Contrib. (see http://www.xwiki.org/xwiki/bin/view/Main/Forge for a
list of all Top Level Projects).
As its name state, The *XWiki Contrib Project* provides hosting for
projects related to XWiki. These projects are not part of the official
XWiki distributions and are not maintained by the XWiki development team.
The idea is that anyone with a project can be hosted in the XWiki
Contrib project. XWiki Contrib can provide projects with:
* A SVN directory in the XWiki repository
* Issue tracking on XWiki's JIRA instance
* Documentation pages on xwiki.org websites.
To find out more about it and get the all the details, we encourage you
to read the XWiki Contrib introduction at http://contrib.xwiki.org/
Now don't hesitate to request hosting for your project on the dev list
or to bother us with any question related to this project.
Thanks,
Jerome, on behalf of the XWiki Development Team.
Hi Fabio & Guillame,
It was fairly simple after all. J
My bad that I confused XWiki authorization with tomcat basic authorization
which we would configure in the tomcat-users.xml.
Also, if I am not wrong, I could set the host, port to null & authscope to
"ANY_REALM" in the following snippet (apache httpclient authentication
methods):
Credentials defaultcreds = new UsernamePasswordCredentials("username",
"password");
client.getState().setCredentials(new AuthScope("myhost", 80,
AuthScope.ANY_REALM), defaultcreds);
As always, thank you for your detailed & timely response Fabio & Guillame.
Regards,
Dilipkumar Jadhav
I figured it out:
On a new page include the following code (XWiki 1.0 syntax) and
replace the string passed to getDocument with the space.page
containing you blog posts:
#includeMacros("Blog.RssCode")
##
##
##
#set ($blogDoc = $xwiki.getDocument("Marketing.Marketing-Blog"))
##getTargetBlog($blogDoc)
#getBlogEntries($blogDoc $entries)
#set($entries = $xwiki.wrapDocs($entries))
#displayBlogRss($blogDoc $entries)
Best regards
Philipp
Hello folks,
XWiki REST authentication can be BASIC authentication or XWiki browser
sessions. Found XWIKI-3268 (http://jira.xwiki.org/jira/browse/XWIKI-3268)
which stated the same. However is there a possibility to add
username/password used by the XWiki users into the HTTPClient authentication
methods.
At present, BASIC authentication would mean creating a username/password
again for the users. And relying on cookies mechanism requires that the
XWiki user should be logged into XWiki through a browser before s/he can
make REST requests. Either ways, an http client won't be able to
authenticate users without making them put an extra effort to login manually
somewhere.
Please let me know your views on this one & If there is a work around to
this.
Thank you guys.
Regards,
Dilipkumar Jadhav
First post here, so hello!
I would get the forums views on a feature I worked on in TikiWiki and
would like to see in XWiki.
The concept is that Wiki pages can be added to a binder.
A binder:
* Is a special Wiki page that defines its page references and hierarchy.
* Defines page order and hierarchy as a list of indented page links.
* Navigation icons/links that follow the order of the binder
* Non-existant pages are created in the Space and in the binder.
* will be exported in its entirety; in the format selected.
Each page in a binder:
* Can be referenced by multiple binders
* References a version of the page from the history or the latest
version (can this be done with page links?)
* Can have a pseudonym
If viewing a Wiki page, the list of binders its referenced from is
shown in the pages Information tab. Selecting a binder from the
Information tab shows the page in the context of the binder.
If a page is being viewed as part of a binder, navigation icons are displayed.
Having used this is TikiWiki, I really miss this feature in other
Wiki's I'm use at work (i.e. XWiki).
Any thoughts?
Regards,
Chris
Hi all,
Page Loading time is a very important criteria when developing a web site.
According to a recent
survey<http://www.webdesignerwall.com/general/users-place-more-weight-on-design/>more
than half people would drive away from a site with slow loading pages.
There are several interesting issues that could be implemented to
substantially improve page loading time in XWiki.
Number one is aggreation of CSS and JS files in order to reduce HTTP
requests. (For info, we have a total of 25 external CSS and JS files on a
basic XWiki install when in the best world we would have just 2 - 1 CSS and
1 JS)
Someone interrested in working on this with me ?
--
Thibaut Camberlin
Project Manager XWiki
Hi,
I just notized, that i get an error, when i open the Lucene Search Page. (XE
2.0.2)
Error number 4001 in 4: Error while parsing velocity page Main.LuceneSearch
Wrapped Exception: Failed to evaluate content with id Lucene Search
Error number 4001 in 4: Error while parsing velocity page Main.LuceneSearch
Wrapped Exception: Failed to evaluate content with id Lucene Search
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page Main.LuceneSearch
Wrapped Exception: Failed to evaluate content with id Lucene Search
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:554)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor623.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
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.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getQueueSize' in class com.xpn.xwiki.plugin.lucene.LucenePluginApi
threw exception java.lang.NullPointerException at Main.LuceneSearchline 239,
column 40? at
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:554)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475) at
sun.reflect.GeneratedMethodAccessor623.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657) at
sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642) at
com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224) 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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
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.ActionFilter.doFilter(ActionFilter.java:117) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636) Caused by:
java.lang.NullPointerException at
com.xpn.xwiki.plugin.lucene.LucenePlugin.getQueueSize(LucenePlugin.java:609)
at
com.xpn.xwiki.plugin.lucene.LucenePluginApi.getQueueSize(LucenePluginApi.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
… 100 more
Thanks
hel.
-----
semantic-web.hel.at
hel(a)hel.at
--
View this message in context: http://n2.nabble.com/Lucene-Search-Problem-tp3957570p3957570.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Fabio,
Thank you so much for your time & response. I really appreciate your gesture
of sending over the maven project files. I was able to build the xwiki rest
.jar & use it successfully in my project :)
"Your code is correct (except the method getPageSummary() which doesn't
exist in my generated JAXB model classes, but this could be due to the
fact that you are generating them without the simple bindings)"
I think the problem is from where you get your JAXB generated model
classes (which is not clear from the code you posted).
Anyway I tried your code and it works perfectly (modulo a renaming of
getPageSummary() to getPageSummaries())."
I generated the model classes from the .xsd file mentioned in the XWiki
Restful API tutorial at
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rest/src/main/r
esources/xwiki.rest.model.xsd
I've used XJC which was bundled with the JAXB 2.1 distribution. Surprisingly
despite using the .xsd that you provided in your project, the XJC still
created a very small Pages.java file. It barely had one method which was the
getPageSummary() method.
However, when I checked the Pages.class file in the jar from your project,
it contained quite a few methods (including the one that I was longing to
see). The difference in technique that I see here is that the jar was built
using mvn while my class files were created using XJC through command
prompt.
Not sure if there are version differences in any of the dependencies whilst
using the two methods. Will have to look into that.
"Since I am not able to spot the problem from your mail, I attach to
this reply the project I used to do the test. You can look at it and
find where are the differences wrt what you wrote. You could also use
it as a template for writing JAXB-clients for the XWiki RESTful API.
Hope this help.
-Fabio"
It is help that arrived just in time Fabio. We have an internal
trouble-ticketing application. The XWiki instance is projected to be our
knowledge base & went live just today. We wanted our application to extract
tags & pass on to XWiki which in turn would return trouble-shooting
articles. Probably, once the search feature is successful, we would like to
be able to "push" new articles/pages to XWiki from our internal application
at the click of a button.
Your work is a great starting point. This will give XWiki a lot more
portability in today's times when applications "interacting" with each other
is becoming a must.
Thanks Fabio...
Hello friends,
I am really stuck on retrieving a list of pages based on tags associated to
them using the XWiki RESTful service.
The regular page fetch works fine & so do some other API calls. However,
when I retrieve a list of pages based on tags the code returns an empty
result. But when I lookup the same URL in a browser I can see number of
pages listed for that tag.
Any Tags object is a complex type which returns Pages & PageSummary objects
as output.
Could someone please help me out with just the few crucial lines that I am
missing here. I would have to write an XML parser if this does not work out.
However, I was really hoping that I would be able to implement this in JAXB
itself. Thank you for your time guys.
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBContext.*;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.GetMethod;
import java.io.IOException;
import javax.xml.bind.JAXBElement;
import javax.xml.transform.stream.StreamSource;
import org.xwiki.Pages;
import org.xwiki.Space;
public class Main{
public static void main(String[] args) throws JAXBException, IOException {
HttpClient httpClient = new HttpClient();
JAXBContext context = JAXBContext.newInstance("org.xwiki");
Unmarshaller un = context.createUnmarshaller();
GetMethod getMethod = new
GetMethod("http://localhost:8080/xwiki/rest/wikis/xwiki/tags/admin");
getMethod.addRequestHeader("Accept", "application/xml");
httpClient.executeMethod(getMethod);
JAXBElement<Pages> pages = un.unmarshal(new
StreamSource(getMethod.getResponseBodyAsStream()),Pages.class);
Pages pg = pages.getValue();
System.out.println(pg.getPageSummary().size());
}
}
Regards,
Dilipkumar Jadhav
It was stock except the threshold for spam I think was 217.
On 11/4/09 5:00 AM, "users-request(a)xwiki.org" <users-request(a)xwiki.org>
wrote:
> Send users mailing list submissions to
> users(a)xwiki.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xwiki.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)xwiki.org
>
> You can reach the person managing the list at
> users-owner(a)xwiki.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
> 1. Re: Problem editing pages (Sergiu Dumitriu)
> 2. Re: Problem editing pages (Marius Dumitru Florea)
> 3. AUTO: MaryEllen Coleman/Poughkeepsie/IBM is out of the
> office. (returning 11/04/2009) (MaryEllen Coleman)
> 4. [ANN] XWiki Enterprise 2.0.3 and XWiki Enterprise Manager
> 2.0.3 Released (Thomas Mortagne)
> 5. Re: [myxwiki] new wiki request (Thomas Mortagne)
> 6. Problem Editing Pages (Mike Ruocco)
> 7. First contact question (coriscow)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 03 Nov 2009 14:51:15 +0100
> From: Sergiu Dumitriu <sergiu(a)xwiki.com>
> Subject: Re: [xwiki-users] Problem editing pages
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4AF03553.1050308(a)xwiki.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> On 11/03/2009 09:41 AM, Guillaume Lerouge wrote:
>> By the way Marius, I also experienced that issue a couple times while
>> testing and it's pretty frustrating because when it happens the user gets
>> "stuck" on the page -> clicking on "cancel" also returns the "Exception
>> while parsing HTML" issue.
>>
>> Is there a way we could at least make the "Cancel" button work in such
>> cases? So that the user can return to the pre-breakage situation?
>
> This should already be the case, since the editor button improvements.
> Now Cancel simply cancels, doesn't send the data back to the server.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 03 Nov 2009 15:51:16 +0200
> From: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
> Subject: Re: [xwiki-users] Problem editing pages
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4AF03554.3000809(a)xwiki.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Guillaume,
>
> Guillaume Lerouge wrote:
>> Hi,
>>
>> On Tue, Nov 3, 2009 at 8:31 AM, Marius Dumitru Florea <
>> mariusdumitru.florea(a)xwiki.com> wrote:
>>
>>> Hi Mike,
>>>
>>> Mike Ruocco wrote:
>>>> Hello,
>>>>
>>>> We are having a problem with Xwiki 2.0.2. Everything was working for a
>>> few days but now when people go to edit their pages they do not get a drop
>>> down for the Edit button. You can only click edit and it brings you to the
>>> Wysiwyg editor. If there are links to other pages in the page we are editing
>>> and when we try to save you get the below error. When you try to switch to
>>> Wiki edit mode on the right hand side you get the same error. How can we
>>> fix this?? Really need some help here. Let me know if you need more info.
>>>
>>
>> Try looking at your pages in wiki edition mode and see whether there are
>> links in titles or links otherwise mixed with content. This has trigerred
>> issues in the past and we need to know what exactly is failing in order to
>> fix it.
>>
>> Thanks for the report.
>>
>>
>>> Check if the user profile is set to simple edit mode. Try switching to
>>> advanced edit mode instead. See
>>>
>>> http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HSimpleandAdva
>>> ncededitionmodes
>>>
>>> Even in simple edit mode you can force the Edit button to load the wiki
>>> editor by going to Administration > General and setting "Default Editor
>>> to use" to Text.
>>>
>>> Also, it's good to know that you can also force the wiki editor by using
>>> a URL like edit/Space/Page?editor=wiki .
>>>
>>>> Thanks
>>>>
>>>> content: Exception while parsing HTML
>>
>> By the way Marius, I also experienced that issue a couple times while
>> testing and it's pretty frustrating because when it happens the user gets
>> "stuck" on the page -> clicking on "cancel" also returns the "Exception
>> while parsing HTML" issue.
>
> Does it? See http://jira.xwiki.org/jira/browse/XWIKI-3150 . Can you
> still reproduce it? I couldn't.
>
>>
>> Is there a way we could at least make the "Cancel" button work in such
>> cases? So that the user can return to the pre-breakage situation?
>
> The cancel button currently returns to the last saved version, event
> when changes can't be saved. Isn't this the right behavior?
>
> The reason for keeping the user on the WYSIWYG editor when the content
> can't be saved because of a conversion error is to allow the user to fix
> the issue or at least to backup its changes by copying them somewhere else.
>
> Marius
>
>>
>> Guillaume
>>
>>
>>> Regarding the WYSIWYG issue, can you tell me what browser are you using
>>> and, if the issue is easily reproducible, can you give me an example of
>>> wiki text that fails to be saved by the WYSIWYG editor?
>>>
>>> Thanks,
>>> Marius
>>>
>>>> Mike Ruocco
>>>> Network Engineer
>>>> INPUT
>>>> 11720 Plaza America Drive, Suite 1200, Reston, Virginia 20190
>>>> Direct: 703+707+3506; Fax 703-707-6201
>>>> mruocco(a)input.com
>>>> http://www.input.com
>>>>
>>>> This email and any files transmitted with it are confidential and are
>>> intended solely for the use of the individual or entity to which they are
>>> addressed. If you are not the intended recipient or the person responsible
>>> for delivering the email to the intended recipient, be advised that you have
>>> received this email and any such files in error and that any use,
>>> dissemination, forwarding, printing or copying of this email and/or any such
>>> files is strictly prohibited. If you have received this email in error
>>> please immediately notify postmaster(a)input.com<mailto:postmaster@input.com>
>>> and destroy the original message and any such files.
>>>> {*}
>>>> _______________________________________________
>>>> users mailing list
>>>> users(a)xwiki.org
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>> _______________________________________________
>>> users mailing list
>>> users(a)xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
>>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 3 Nov 2009 10:13:24 -0500
> From: MaryEllen Coleman <mea(a)us.ibm.com>
> Subject: [xwiki-users] AUTO: MaryEllen Coleman/Poughkeepsie/IBM is out
> of the office. (returning 11/04/2009)
> To: users(a)xwiki.org
> Message-ID:
> <OFA5A4CC94.C48E73BD-ON85257663.0053A00C-85257663.0053A00E(a)us.ibm.com>
> Content-Type: text/plain; charset=US-ASCII
>
>
>
> I am out of the office until 11/04/2009.
>
> I will not have access to email. For wiki assistance, please contact Kim
> Dillon.
>
>
> Note: This is an automated response to your message "users Digest, Vol 28,
> Issue 5" sent on 11/3/09 6:00:12.
>
> This is the only notification you will receive while this person is away.
>
> ------------------------------
>
> Message: 4
> Date: Tue, 3 Nov 2009 17:07:44 +0100
> From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> Subject: [xwiki-users] [ANN] XWiki Enterprise 2.0.3 and XWiki
> Enterprise Manager 2.0.3 Released
> To: XWiki Developers <devs(a)xwiki.org>, XWiki Users <users(a)xwiki.org>
> Message-ID:
> <a8e97d9c0911030807k63c2c348td64b80d7afdc002c(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> The XWiki development team is pleased to announce the release of XWiki
> Enterprise 2.0.3 and XWiki Enterprise Manager 2.0.3.
>
> Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
>
> This release fix one important regressions (broken statistics) and add
> many Watchlist improvements and bufixes.
>
> For more informations see the Release notes at:
> http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise203
> and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM203.
>
> Thanks
> - The XWiki dev team
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 3 Nov 2009 17:46:15 +0100
> From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> Subject: Re: [xwiki-users] [myxwiki] new wiki request
> To: XWiki Users <users(a)xwiki.org>
> Message-ID:
> <a8e97d9c0911030846l9a9b4d5qe84731fd13076ad3(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Mon, Nov 2, 2009 at 22:22, thomas doucedame
> <thomasdoucedame(a)gmail.com> wrote:
>> Hello,
>>
>>
>> I'm fulfilling a request as seen on :
>> http://www.myxwiki.org/xwiki/bin/view/Main/
>>
>> I'd like to use xwiki as a personal/family blog.
>>
>> My user name at myxwiki.org : Thomas
>> The server name I'd like to use : fnd
>>
>> Please let me know if it still possible.
>
> Here is you new wiki http://fnd.myxwiki.org/xwiki/bin/view/Main/
>
> Enjoy :)
>
>>
>>
>> Best regards
>> Thomas DOUCEDAME
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 3 Nov 2009 15:01:58 -0500
> From: Mike Ruocco <mruocco(a)input.com>
> Subject: [xwiki-users] Problem Editing Pages
> To: "users(a)xwiki.org" <users(a)xwiki.org>
> Message-ID:
> <CF69662CDA81024A8212AD91043B77C49A9B2532ED(a)mail2.input.local>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello Guillaume,
>
> Yes the problem does seem to be when links are in titles. Other links in the
> body do not seem to cause an issue. Please advise.
>
> Thanks
>
> Message: 6
> Date: Tue, 3 Nov 2009 09:41:40 +0100
> From: Guillaume Lerouge <guillaume(a)xwiki.com>
> Subject: Re: [xwiki-users] Problem editing pages
> To: XWiki Users <users(a)xwiki.org>
> Message-ID:
> <1c35d2320911030041s6eef152ahee1da76f8a694925(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> On Tue, Nov 3, 2009 at 8:31 AM, Marius Dumitru Florea <
> mariusdumitru.florea(a)xwiki.com> wrote:
>
>> Hi Mike,
>>
>> Mike Ruocco wrote:
>>> Hello,
>>>
>>
>>> We are having a problem with Xwiki 2.0.2. Everything was working for
>>> a
>> few days but now when people go to edit their pages they do not get a
>> drop down for the Edit button. You can only click edit and it brings
>> you to the Wysiwyg editor. If there are links to other pages in the
>> page we are editing and when we try to save you get the below error.
>> When you try to switch to Wiki edit mode on the right hand side you
>> get the same error. How can we fix this?? Really need some help here. Let me
>> know if you need more info.
>>
>
> Try looking at your pages in wiki edition mode and see whether there are links
> in titles or links otherwise mixed with content. This has trigerred issues in
> the past and we need to know what exactly is failing in order to fix it.
>
> Thanks for the report.
>
>
>> Check if the user profile is set to simple edit mode. Try switching to
>> advanced edit mode instead. See
>>
>> http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HSimplea
>> ndAdvancededitionmodes
>>
>> Even in simple edit mode you can force the Edit button to load the
>> wiki editor by going to Administration > General and setting "Default
>> Editor to use" to Text.
>>
>> Also, it's good to know that you can also force the wiki editor by
>> using a URL like edit/Space/Page?editor=wiki .
>>
>>>
>>> Thanks
>>>
>>
>>> content: Exception while parsing HTML
>>
>
> By the way Marius, I also experienced that issue a couple times while testing
> and it's pretty frustrating because when it happens the user gets "stuck" on
> the page -> clicking on "cancel" also returns the "Exception while parsing
> HTML" issue.
>
> Is there a way we could at least make the "Cancel" button work in such cases?
> So that the user can return to the pre-breakage situation?
>
> Guillaume
>
>
>> Regarding the WYSIWYG issue, can you tell me what browser are you
>> using and, if the issue is easily reproducible, can you give me an
>> example of wiki text that fails to be saved by the WYSIWYG editor?
>>
>> Thanks,
>> Marius
>>
>>>
>>> Mike Ruocco
>>> Network Engineer
>>> INPUT
>>> 11720 Plaza America Drive, Suite 1200, Reston, Virginia 20190
>>> Direct: 703+707+3506; Fax 703-707-6201 mruocco(a)input.com
>>> http://www.input.com
>
>
> Mike Ruocco
> Network Engineer
> INPUT
> 11720 Plaza America Drive, Suite 1200, Reston, Virginia 20190
> Direct: 703+707+3506; Fax 703-707-6201
> mruocco(a)input.com
> http://www.input.com
>
>
> This email and any files transmitted with it are confidential and are intended
> solely for the use of the individual or entity to which they are addressed. If
> you are not the intended recipient or the person responsible for delivering
> the email to the intended recipient, be advised that you have received this
> email and any such files in error and that any use, dissemination, forwarding,
> printing or copying of this email and/or any such files is strictly
> prohibited. If you have received this email in error please immediately notify
> postmaster(a)input.com and destroy the original message and any such files.{*}
>
>
> ------------------------------
>
> Message: 7
> Date: Tue, 3 Nov 2009 20:33:31 -0800 (PST)
> From: coriscow <alberto.corisco(a)gmail.com>
> Subject: [xwiki-users] First contact question
> To: users(a)xwiki.org
> Message-ID: <1257309211023-3943146.post(a)n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi all!
>
> I have to make a project for college and, as a first thought, I think that
> an application wiki would fit perfectlly as a basis for it. Therefore, I
> have spent the last two days going over all the documentation I've found.
> However, I'm still not sure if I will be able to use xwiki to fullfil my
> needs. Those are:
>
> - there has to be four types of documents: public, protected (shared among a
> workgroup members), private and shareable (a private page whose owner can
> share with some contacts)
> - some panels or even panel contents should depend on group policies
> - every user should be able to personalize some of its panels contents,
> order, visibility, etc
> - can a page be added/edited only through a form like page (some users with
> programming rights design the form through class/object/wiki/wysiwyg/inline
> modes so others can fill the contents easily without being able to modify
> the form definition)
> - can a panel be used as a toolbar menu? (I think the answer to this one is
> skining, right?)
>
> Can it be done without involving me writting a XWiki 3.0 version?? If so,
> any trace would be highly appreciated.
>
> Thanks!!!
> --
> View this message in context:
> http://n2.nabble.com/First-contact-question-tp3943146p3943146.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> End of users Digest, Vol 28, Issue 6
> ************************************
>
Hi all!
I have to make a project for college and, as a first thought, I think that
an application wiki would fit perfectlly as a basis for it. Therefore, I
have spent the last two days going over all the documentation I've found.
However, I'm still not sure if I will be able to use xwiki to fullfil my
needs. Those are:
- there has to be four types of documents: public, protected (shared among a
workgroup members), private and shareable (a private page whose owner can
share with some contacts)
- some panels or even panel contents should depend on group policies
- every user should be able to personalize some of its panels contents,
order, visibility, etc
- can a page be added/edited only through a form like page (some users with
programming rights design the form through class/object/wiki/wysiwyg/inline
modes so others can fill the contents easily without being able to modify
the form definition)
- can a panel be used as a toolbar menu? (I think the answer to this one is
skining, right?)
Can it be done without involving me writting a XWiki 3.0 version?? If so,
any trace would be highly appreciated.
Thanks!!!
--
View this message in context: http://n2.nabble.com/First-contact-question-tp3943146p3943146.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello Guillaume,
Yes the problem does seem to be when links are in titles. Other links in the body do not seem to cause an issue. Please advise.
Thanks
Message: 6
Date: Tue, 3 Nov 2009 09:41:40 +0100
From: Guillaume Lerouge <guillaume(a)xwiki.com>
Subject: Re: [xwiki-users] Problem editing pages
To: XWiki Users <users(a)xwiki.org>
Message-ID:
<1c35d2320911030041s6eef152ahee1da76f8a694925(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi,
On Tue, Nov 3, 2009 at 8:31 AM, Marius Dumitru Florea < mariusdumitru.florea(a)xwiki.com> wrote:
> Hi Mike,
>
> Mike Ruocco wrote:
> > Hello,
> >
>
> > We are having a problem with Xwiki 2.0.2. Everything was working for
> > a
> few days but now when people go to edit their pages they do not get a
> drop down for the Edit button. You can only click edit and it brings
> you to the Wysiwyg editor. If there are links to other pages in the
> page we are editing and when we try to save you get the below error.
> When you try to switch to Wiki edit mode on the right hand side you
> get the same error. How can we fix this?? Really need some help here. Let me know if you need more info.
>
Try looking at your pages in wiki edition mode and see whether there are links in titles or links otherwise mixed with content. This has trigerred issues in the past and we need to know what exactly is failing in order to fix it.
Thanks for the report.
> Check if the user profile is set to simple edit mode. Try switching to
> advanced edit mode instead. See
>
> http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HSimplea
> ndAdvancededitionmodes
>
> Even in simple edit mode you can force the Edit button to load the
> wiki editor by going to Administration > General and setting "Default
> Editor to use" to Text.
>
> Also, it's good to know that you can also force the wiki editor by
> using a URL like edit/Space/Page?editor=wiki .
>
> >
> > Thanks
> >
>
> > content: Exception while parsing HTML
>
By the way Marius, I also experienced that issue a couple times while testing and it's pretty frustrating because when it happens the user gets "stuck" on the page -> clicking on "cancel" also returns the "Exception while parsing HTML" issue.
Is there a way we could at least make the "Cancel" button work in such cases? So that the user can return to the pre-breakage situation?
Guillaume
> Regarding the WYSIWYG issue, can you tell me what browser are you
> using and, if the issue is easily reproducible, can you give me an
> example of wiki text that fails to be saved by the WYSIWYG editor?
>
> Thanks,
> Marius
>
> >
> > Mike Ruocco
> > Network Engineer
> > INPUT
> > 11720 Plaza America Drive, Suite 1200, Reston, Virginia 20190
> > Direct: 703+707+3506; Fax 703-707-6201 mruocco(a)input.com
> > http://www.input.com
Mike Ruocco
Network Engineer
INPUT
11720 Plaza America Drive, Suite 1200, Reston, Virginia 20190
Direct: 703+707+3506; Fax 703-707-6201
mruocco(a)input.com
http://www.input.com
This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email and any such files in error and that any use, dissemination, forwarding, printing or copying of this email and/or any such files is strictly prohibited. If you have received this email in error please immediately notify postmaster(a)input.com and destroy the original message and any such files.{*}
I am out of the office until 11/04/2009.
I will not have access to email. For wiki assistance, please contact Kim
Dillon.
Note: This is an automated response to your message "users Digest, Vol 28,
Issue 5" sent on 11/3/09 6:00:12.
This is the only notification you will receive while this person is away.
Hello,
We are having a problem with Xwiki 2.0.2. Everything was working for a few days but now when people go to edit their pages they do not get a drop down for the Edit button. You can only click edit and it brings you to the Wysiwyg editor. If there are links to other pages in the page we are editing and when we try to save you get the below error. When you try to switch to Wiki edit mode on the right hand side you get the same error. How can we fix this?? Really need some help here. Let me know if you need more info.
Thanks
content: Exception while parsing HTML
Mike Ruocco
Network Engineer
INPUT
11720 Plaza America Drive, Suite 1200, Reston, Virginia 20190
Direct: 703+707+3506; Fax 703-707-6201
mruocco(a)input.com
http://www.input.com
This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email and any such files in error and that any use, dissemination, forwarding, printing or copying of this email and/or any such files is strictly prohibited. If you have received this email in error please immediately notify postmaster(a)input.com<mailto:postmaster@input.com> and destroy the original message and any such files.
{*}
Hello,
I had activated the statistics in xwiki.cfg :
xwiki.stats=1
xwiki.stats.default=1
But in the Stats space, no statistics are registered.
In the config file, we can read : "storage can be enabled/disabled by wiki
using the XWikiPreference property "statistics". What does it mean ? I don't
have any "statistics" attribute in the XWikiPreferences object.
XWiki initially installed in 1.9.2 and upgraded to 2.0.2.
Thank you for your help.
Maxime
Finally, I have a working version of the code to access the Xwiki RESTful
API.
It worked smooth on a Tomcat 6.0.14 + JDK 1.5 machine. But had to make
certain changes to the bootstrap files for JDK 1.6 as I mentioned in the
previous post. I have used the Apache HTTP HTTPClient 3.1 jar files here but
soon will upgrade that to Apache HTTPClient 4.0. The only change in the code
from the one posted at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI are the
lines Unmarshaller un = context.createUnmarshaller(); and the line Page page
= (Page) ((JAXBElement)
un.unmarshal(getMethod.getResponseBodyAsStream())).getValue();
The default object that getMethod returns turned out to be a JAXBElement
rather than a Page object. Hence, had to do some class casting.
A big thanks to Fabio Mancinelli & Sergiu Dumitriu for helping me out on
this one.
Just one more request though. Do we cast the
getMethod.getResponseBodyAsStream() to Tags class (if we want to retrieve a
list of pages based on their tags) or the SearchResults class (if we want to
retrieve pages returned through a page search). Even though, I cast the
getMethod.getResponseBodyAsStream to the tags class, my compiler still
throws an error for class cast exception : org.xwiki.Pages. Could someone
please post a snippet to access pages with specific tags or any other
complex querying using classes in the org.xwiki classes. Any help on this
would be greatly appreciated friends.
/*
JDK: 1.5
Tomcat: 6.0.14 (Xwiki server)
Libraries: Apache HTTPClient 3.1, JAXB 2.1, Apache Commons Logging 1.1.1 &
Apache Commons Codec 1.4
Class File Dependencies: org.xwiki package of class files generated from the
XSD file at
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rest/src/main/r
esources/xwiki.rest.model.xsd with the help of the XJC compiler available in
the JAXB 2.1 distribution
*/
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.methods.GetMethod;
import org.xwiki.Page;
public class Main {
public static void main(String[] args) throws JAXBException,
HttpException, IOException {
HttpClient httpClient = new HttpClient();
JAXBContext context = JAXBContext.newInstance("org.xwiki");
Unmarshaller un = context.createUnmarshaller();
GetMethod getMethod = new
GetMethod("http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/We
bHome");
getMethod.addRequestHeader("Accept", "application/xml");
httpClient.executeMethod(getMethod);
Page page = (Page) ((JAXBElement)
un.unmarshal(getMethod.getResponseBodyAsStream())).getValue();
System.out.println(page.getCreator());
System.out.println(page.getCreated());
System.out.println(page.getFullName());
System.out.println(page.getXwikiAbsoluteUrl());
}
}
Hello,
I'm a very keen and happy user of xwiki. We use it for our corporate
intranet and our users love it! I generally move directly between major
versions as soon as convenient. The factor that has the most bearing on
when we upgrade is the ease with which we can move between new versions.
I remember seeing an items relating to simpler installation. I'd like to
ask when that is scheduled to be worked on, and perhaps share some of my
experiences in upgrading and some suggestions.
I'd like to give you an idea of what has to be done to move between
versions. It's a bit long, so bear with me, but here it is:
* Download the latest xwiki xar to your local machine
* Download the latest xwiki war to the machine which will run xwiki.
* Backup the entire xwiki installation directory (the one that contains
the directories database, jetty, lucene etc), and move the old directory
aside (rename to xwiki.old)
* //We do this to easily be able to get the jetty, hsql, etc dirs back
in place//: Restore the backed up xwiki directory, thus putting the
xwiki dir back in place
* Delete the directory xwiki/webapps/xwiki
* In xwiki/webapps, create an xwiki directory
* Unzip the xwiki war in the xwiki/webapps/xwiki directory
* //Getting our corp logo back//: Copy
xwiki.old/webapps/xwiki/skins/toucan/mywiki.jpg to
xwiki/webapps/xwiki/skins/toucan/mywiki.jpg
* //Next few steps: need to merge old config with new config//: Do a
diff between xwiki.old/webapps/xwiki/WEB-INF/xwiki.cfg and
xwiki/webapps/xwiki/WEB-INF/xwiki.cfg. Update
xwiki/webapps/xwiki/WEB-INF/xwiki.cfg as needed.
* Do a diff between xwiki.old/webapps/xwiki/WEB-INF/xwiki.properties and
xwiki/webapps/xwiki/WEB-INF/xwiki.properties. Update
xwiki/webapps/xwiki/WEB-INF/xwiki.properties as needed.
* Do a diff between xwiki.old/webapps/xwiki/WEB-INF/hibernate.cfg.xml
and xwiki/webapps/xwiki/WEB-INF/hibernate.cfg.xml. Update
xwiki/webapps/xwiki/WEB-INF/hibernate.cfg.xml as needed.
* //This is the part we fear the most, for we might accidentally delete
some configuration that we need and we would need to start the whole
process again//: Start XWiki and import the default wiki xar. Be careful
of what you import - read the instructions at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgrading…
.
** The normally excluded pages from import are:
*** XWiki.XWikiPreferences
*** XWiki.XWikiGroups
*** XWiki.XWikiAdminGroup
*** XWiki.WebPreferences
*** XWiki.WebHome
*** XWiki.XWikiUsers
*** XWiki.XWikiAllGroup
*** XWiki.DefaultSkin
*** Main.WebHome
*** Panels.QuickLinks
*** Panels.Search
* //We customise the PDF cover//: The PDF covers files has been manually
modified. Do a diff between
xwiki.old/webapps/xwiki/templates/pdfcover.vm and
xwiki/webapps/xwiki/templates/pdfcover.vm. Merge the differences.
* //We customise the PDF footer//: The PDF footers file has been
modified by hand. Do a diff between
xwiki.old/webapps/xwiki/templates/pdffooter.vm and
xwiki/webapps/xwiki/templates/pdffooter.vm. Merge the differences.
* //We do this to be able to specify the PDF template to use in "Export
as PDF"//: The Menuitems have to be edited by hand, so that PDFs are
exported using the correct stylesheet. Do a diff between
xwiki.old/webapps/xwiki/templates/menuview.vm and
xwiki/webapps/xwiki/templates/menuview.vm. Merge the differences (there
should only be one line).As you can see, there are quite a few steps,
and it normally takes 1/2hr - 1hr to complete. Note that we will move to
MySQL eventually, but the performance of HSQL is OK ATM.
This may not be the most optimal upgrade path, so if there are any clear
improvements you can see, please let me know.
The part that needs to be improved upon the most, in my opinion, is the
"import default XAR" step because it is easy to overwrite an important
page. I would like to put in a big vote for separating information that
can be modified by the user from information that xwiki needs to be able
to operate, that comes with default xwiki. Perhaps making certain pages
"system" pages so that it is clear that if a page is modified it may
interrupt the operation of the wiki, and may be difficult to upgrade.
The next most important thing to be improved is the storage of
configuration that now sits in xwiki.cfg and xwiki.properties. This is
difficult to migrate between versions. If this was automatically
migrated between versions like the pages are, this would be much easier
to manage. At our office we have a large system written in Java and we
solved a similar problem using the Java Preferences API.
Being able to fully customise the PDF layout (not just the stylesheet)
inside xwiki, and also specify a default PDF style sheet to use during
export would be #3 on my list.
I'm interested in hearing some thoughts.
Regards,
Nigel
Hi,
I'd like to use the Grid/LiveTable components to list data and create links to edit pages for that data. I would also like to add restrictions so that only users who created that data can edit it.
>From my understanding it is not possible to restrict edits for individual xwiki class objects to only users who created that object (along with an administrator user) as edit permissions can only be set at the page level and not at the individual object level.
The solution I was thinking about was to create a new page for each record then restrict edit permissions at the page level.
This would however require me to aggregate all of the xwiki class objects on a single page so that they could be used with the grid/LiveTable component. I can't however see a way of doing this. Is this possible or is there a better way of doing this?
Thanks in advance,
Radek
Hi,
I am currently trying to set up XWiki Enterprise 1.6.1 to use JBossCache in
REPL_ASYNC mode, but I am current experiencing a few issues.
I discovered that the directory structure WEB-INF/cache/jbosscache is not
correct, so I renamed the folder jbosscache to jboss. The default.xml file
had an incorrect tag EvictionConfig instead of the correct
EvictionPolicyConfig.
After fixing the 2 minor issues (tested in LOCAL mode) mentioned above,
nothing can be stored in the cache due to serializable issue, the stack
traces:
With UseLazyDeserialization = true
2009-07-13 12:30:05,080 ERROR [STDERR] org.jboss.cache.CacheException:
java.io.NotSerializableException: Marshalled values can only wrap Objects
that are serializable! Instance of class com.xpn.xwiki.doc.XWikiD
ocument won't Serialize.
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:227)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:480)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCache.set(JBossCacheCache.java:146)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:143)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1271)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1233)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1228)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:84)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:335)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:155)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:92)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:120)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1008)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:727)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.<init>(XWiki.java:655)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:315)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:386)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.xmlrpc.XWikiReflectiveXmlRpcHandler.execute(XWikiReflectiveXmlRpcHandler.java:85)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:182)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:103)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:120)
2009-07-13 12:30:05,081 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
..............
And with UseLazyDeserialization = false
2009-07-13 12:38:57,160 ERROR [STDERR] org.jboss.cache.CacheException:
Unable to invoke method public void org.jboss.cache.RPCManagerImpl.start()
on object instance org.jboss.cache.RPCManagerImpl@1938222
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:127)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:932)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:718)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:582)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:279)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:95)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:79)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCache.initialize(JBossCacheCache.java:101)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCacheFactory.newCache(JBossCacheCacheFactory.java:78)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:99)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:84)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.<init>(XWikiCacheStore.java:64)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:679)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.<init>(XWiki.java:655)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:315)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:386)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
2009-07-13 12:38:57,162 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
2009-07-13 12:38:57,162 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-07-13 12:38:57,162 ERROR [STDERR] at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:94)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
Has anyone ever managed to get XWiki running with a replicated cache (JBoss
or OSCache) ????
Any help is greatly appreciated.
Cheers,
Andy
Hello XWiki users,
I have worked a lot with XWiki Skins on the top of XWiki Enterprise
instances and I wanted to share my experience with you all. This is why
I created a new XWiki Skins tutorial that you can find it here:
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiNewSkin . It would be
great if you could give me your feedback about this tutorial.
Enjoy customizing your XWiki Enterprise instances!
Raluca Stavro.
Hi Sergiu,
Thanks for taking the time out to look into the issue.
I reinstalled the XWiki instance & now have a clean XWiki instance. I
checked the xwiki/WEB-INF/lib folder and I see that the JAXB library shipped
with XWiki is JAXB2.1 (jaxb-api-2.1, jaxb-fluent-api-2.1.8,
jaxb-impl-2.1.10,jaxb-xjc-2.1.8,jaxrpc-api-1.1 & activation-1.1).
Tried accessing the URL
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome
directly from the browser.
Following is the java.lang.Linkage error that I get:
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
classloader, but this RI (from
jar:file:/C:/Tomcat6.0/webapps/xwiki/WEB-INF/lib/jaxb-impl-2.1.10.jar!/com/s
un/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the
endorsed directory mechanism to place jaxb-api.jar in the bootstrap
classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j
ava:431)
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:288)
com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBCon
textImpl.java:1111)
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
javax.xml.bind.ContextFinder.newInstance(Unknown Source)
javax.xml.bind.ContextFinder.find(Unknown Source)
javax.xml.bind.JAXBContext.newInstance(Unknown Source)
javax.xml.bind.JAXBContext.newInstance(Unknown Source)
org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider.getJaxbContext(
AbstractJaxbProvider.java:63)
org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider.marshal(Abstrac
tJaxbProvider.java:84)
org.restlet.ext.jaxrs.internal.provider.JaxbProvider.writeTo(JaxbProvider.ja
va:106)
org.restlet.ext.jaxrs.internal.wrappers.provider.SingletonProvider.writeTo(S
ingletonProvider.java:335)
org.restlet.ext.jaxrs.internal.util.JaxRsOutputRepresentation.write(JaxRsOut
putRepresentation.java:105)
com.noelios.restlet.http.HttpServerCall.writeResponseBody(HttpServerCall.jav
a:492)
com.noelios.restlet.http.HttpServerCall.sendResponse(HttpServerCall.java:428
)
com.noelios.restlet.ext.servlet.ServletCall.sendResponse(ServletCall.java:40
7)
com.noelios.restlet.http.HttpServerConverter.commit(HttpServerConverter.java
:391)
com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:148)
com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881
)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFi
lter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFi
lter.java:112)
Hello folks,
The REST example at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI seems to
be working fine to quite some extent.
I retrieved the xwiki.org Main.WebHome page in the XML format. However, the
same code returns empty result if I look for the Main.WebHome on
localhost:8080/xwiki.
Is there something that I need to enable on my localhost XWiki instance. I
see that xwiki.org has been upgraded to version 2.0.2 which is the same
version on my machine.
I am using tomcat 6.0.18 with MySql 5.
Also, the URL
http://www.xwiki.org/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome
returns a well formed XML document.
However, the URL
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome
returns an error : XML Parsing Error: no element foundLocation:
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome Line
Number 1, Column 1: in Mozilla FF
& the error : XML document must have a top level element. Error processing
resource 'http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/... in IE8
I am retrieving XML info through the following code:
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBContext.*;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.GetMethod;
import java.io.IOException;
import java.io.InputStream;
public class Main{
public static void main(String[] args) throws JAXBException, IOException {
HttpClient httpClient = new HttpClient();
JAXBContext context = JAXBContext.newInstance("org.xwiki");
Unmarshaller un = context.createUnmarshaller();
GetMethod getMethod = new
GetMethod("http://xwiki.org/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome
");
getMethod.addRequestHeader("Accept", "application/xml");
httpClient.executeMethod(getMethod);
InputStream is = getMethod.getResponseBodyAsStream();
System.out.println(getMethod.getResponseBodyAsString());
//Page page = (Page) un.unmarshal(getMethod.getResponseBodyAsStream());
}
}
Any help would be greatly appreciated. Thank you.
Regards,
Dilipkumar Jadhav
When we try to search this is what we get. What am I missing?
Thanks for any help!
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content [$xwiki.jsfx.use("uicomponents/search/search.js",
false)##
$xwiki.ssfx.use("uicomponents/search/search.css", true)##
## Disable the document extra data: comments, attachments, history...
#set($docextras = [])
#set ($rssmode = ("$!request.xpage" == 'plain'))
## ---------------
## Space filtering
## ---------------
#set($spaces = $xwiki.spaces)
#set($selectedSpace = "$!request.space")
## ---------------
## Space macros
## ---------------
#macro(spaceoption $space $selectedSpace)
<option value="${space}" #if($selectedSpace ==
$space)selected="selected"#end>$space</option>
#end
#macro(spaceselect $selectedSpace $spaces)
<select name="space" title="$msg.get('xe.search.bar.spaces.title')">
<option value="" #if($selectedSpace ==
'')selected="selected"#end>$msg.get('xe.search.bar.spaces.all')</option>
#foreach($space in $spaces)
#if (!$blacklistedSpaces.contains($space))
#spaceoption($space $selectedSpace)
#end
#end
</select>
#end
##
##
#set($text = "$!request.getParameter('text')")
#set($utext = $util.encodeURI($text))
##
{{html}}
<form action="" id="searchBar">
<div class="centered">
<input type="text" name="text" class="searchQuery #if($text == '')
defaultText#end" #if($text == '')
value="$msg.get('xe.search.bar.query.tip')" #else
value="$xwiki.getXMLEncoded(${text})" #end
title="$msg.get('xe.search.bar.query.title')"/>
#spaceselect($selectedSpace $spaces)
<input type="submit" class="searchButton"
value="$msg.get('xe.search.bar.submit')"
title="$msg.get('xe.search.bar.submit.title')"/>
</div>
</form>
{{/html}}
##
#set($space = $selectedSpace)
#set($datedlist = $util.arrayList)
#if("$!text" == '')
## No search
#else
#set($text = $text.replaceAll("'", "''").replaceAll("%", "\\%"))
#set($nbitems = 50)
## ----------------------------------------------------------------------
## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm)
## Also exclude WebPreferences.
## ----------------------------------------------------------------------
#set ($webClause = '')
#foreach ($blacklistedSpace in $blacklistedSpaces)
#set ($webClause = "${webClause} doc.space <> '$blacklistedSpace' and")
#end
#if(!$hasAdmin && !$isAdvancedUser)
#set ($webClause = "${webClause} doc.name<>'WebPreferences' and")
#end
## -----------------------------------------------------------
## Display only a given space if $request.space is defined
## -----------------------------------------------------------
#if("$!space" != '')
#set ($webClause = "${webClause} doc.space='$space' and")
#end
#macro(addelement $item $list)
#if($xwiki.hasAccessLevel('view', $context.user,
"${context.database}:${item}"))
#set($itemdoc = $xwiki.getDocument($item))
## All items will be sorted by the date; since the list is obtained
from several queries, we can't order in the HQL.
## Prefix all item names with the date for sorting the combined
results.
#set($sdate = $xwiki.formatDate($itemdoc.date, 'yyyyMMddHHmmss'))
#set($sitem = "${sdate}${item}")
#if(!$list.contains($sitem))
#set($discard = $list.add($sitem))
#end
#end
#end
## -----------------------------------------------------------
## Search in the page names
## -----------------------------------------------------------
#set ($sql = "where $webClause upper(doc.fullName) like upper('%$!text%')
order by doc.date desc")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in page content
## -----------------------------------------------------------
#set ($sql = "where $webClause upper(doc.content) like upper('%$!text%')
order by doc.date desc")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in text fields (simple String properties)
## -----------------------------------------------------------
#set($sql= ", BaseObject as obj, StringProperty as prop where $webClause
obj.name=doc.fullName and prop.id.id = obj.id and upper(prop.value) like
upper('%$!text%')")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in big text fields (textarea properties)
## -----------------------------------------------------------
#set($sql= ", BaseObject as obj, LargeStringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%')")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
#end
#set($list = $util.arrayList)
#foreach($item in $util.sort($datedlist))
## datedlist contains items prefixed with the date; strip the date from
the actual item name:
#set($ok = $list.add(0, $item.substring(14)))
#end
#if ("$!utext" != '')
#if($rssmode)
#set ($feed = $xwiki.feed.getDocumentFeed($list, $util.getHashMap()))
#set ($feedURI = $doc.getExternalURL("view"))
#set ($discard = $feed.setLink($feedURI))
#set ($discard = $feed.setUri($feedURI))
#set ($discard = $feed.setAuthor('XWiki'))
#set ($discard = $feed.setTitle($msg.get('xe.search.rss', [$text])))
#set ($discard = $feed.setDescription($msg.get('xe.search.rss',
[$text])))
#set ($discard = $feed.setLanguage($context.language))
#set ($discard =
$feed.setCopyright($xwiki.getXWikiPreference('copyright')))
$xwiki.feed.getFeedOutput($feed, $xwiki.getXWikiPreference('feed_type',
'rss_2.0'))
#else
{{include document="XWiki.Results"/}}
#if($selectedSpace == '')
#set($rssURL = $xwiki.getURL($doc.fullName, 'view',
"xpage=plain&outputSyntax=plain&text=${utext}" ))
#else
#set($rssURL = $xwiki.getURL($doc.fullName, 'view',
"xpage=plain&outputSyntax=plain&space=${selectedSpace}&text=${utext}"))
#end
{{html}}
${rssURL} $xwiki.getSkinFile( $msg.get("xe.search.rss", ["[$text]"])
{{/html}}
#set($luceneSearch = "[[Main.LuceneSearch?text=$!utext]]")
{{info}}$msg.get('xe.search.lucene.try', [$luceneSearch]){{/info}}
#end
#end
{{velocity}}]
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:118)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:44)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:190)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:52)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:176)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5569)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5544)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:550)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor289.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
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:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate
content with id [velocity macro]
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:200)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:110)
... 91 more
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'searchDocuments' in class com.xpn.xwiki.api.XWiki
threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3:
Exception while searching documents with SQL [select distinct doc.space,
doc.name, doc.date from XWikiDocument as doc where (doc.hidden <> true or
doc.hidden is null) and upper(doc.content) like upper('%search...%') order
by doc.date desc]
Wrapped Exception: could not execute query at velocity macro[line 89, column
27]
at
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:282)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
... 93 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception
while searching documents with SQL [select distinct doc.space, doc.name,
doc.date from XWikiDocument as doc where (doc.hidden <> true or doc.hidden
is null) and upper(doc.content) like upper('%search...%') order by doc.date
desc]
Wrapped Exception: could not execute query
at
com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal(XWikiHibernateStore.java:2306)
at
com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHibernateStore.java:2270)
at
com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHibernateStore.java:2751)
at
com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheStore.java:346)
at com.xpn.xwiki.api.XWiki.searchDocuments(XWiki.java:408)
at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 102 more
--
View this message in context: http://n2.nabble.com/Error-in-Xwiki-2-0-when-searching-tp3879029p3879029.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Fabio,
>The semantics of the "query" parameter of the search method is just a
>free text that is matched agains document names or content.
>
>You cannot execute arbitrary HQL queries using the search method, nor
>there exist a method for doing so in the current XMLRPC api.
>
>-Fabio
You were absolutely right. This method only takes "free text" and searches
it through document names & content.
The results varied greatly if I changed the order of the words being passed
into the "query" parameter.
Also, I wasn't able to retrieve the URL from the search results. Only the
title could be accessed. As a result, I had to pass the top 10 results
iteratively to the getPage method to obtain the URL. The objective here was
to display search results from the XWiki into another application. The
application would pass certain query parameters to XWiki & XWiki would then
return document URLs which might be of help in the other application.
I also began fiddling with the REST api a little bit. I see that a lot of
methods in the examples at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI were based
on HttpClient 3.x api & the latest one is 4.0. Also, the JAXB I happen to
use is 2.1 (available in Netbeans as a default plugin). Since, I am new to
this, it will take a lot of time, effort & of course help from friends at
XWiki community to get up to date with the latest api :)
Just a question though - will the REST getMethod call for the
/wikis/{wikiName}/spaces/{spaceName}/search?q={keywords}[[&scope={name,conte
nt,title,objects}...]&number=n] resource result in the same search result as
does the internal wiki default/lucene search. My belief is it will return
the same result since we are fetching the same page.
Thanks for your help & timely response Fabio.
Hello. I'm Eduardo from Barcelona (Spain)
New wiki: "Magia a cascoporro Wiki"
Content/Motivation: To gather secret info (tricks, variations, etc.) between
a group of spanish magicians (illusionists)
And to share another kind of free info
with everybody (about magic also)
My user is : dodonpachi
Server name: magiaacascoporro.myxwiki.org (Yes, there are two "a" in a
row)
Thanks in advance. And see you soon ^_^
Eduardo.
Hi,
some questions:
1) section editing
Edit button is also displayed for unregistered users (when nobody is logged
in and has edit rights).
disabled section editing in xwiki.cfg
Edit button is still there
2) Title handling
tryed to disable it in xwiki.cfg
Get Title and Heading always but was awaiting old behavior.
Also had a problem with a long heading:
Entwicklung der empirischen Sozialforschung in Deutschland seit 1945 -
Aufgaben für die Zukunft
Head it as Title and as heading 1 (also tried heading 2).
Was always displayed twice (title + heading). Is there a length restriction
for the title.
Thanks
hel.
-----
semantic-web.hel.at
hel(a)hel.at
--
View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3729506.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello friends,
I need a little help here with the XWiki XmlRpc API. I am able to connect to
my xwiki instance using the Swizzle Confluence.
However, I am currently able to only view contents of a particular page
which I supply to the getPage() method.
I would like to build a client which could fetch a list of pages based on
hql queries (which XWiki supports internally).
Could someone please guide me to a search method that could be used here
(eg. search(query, maxinterval) ).
I've tried pushing queries such as search("where doc.creator='XWiki.Admin",
10) but this results into an empty result list.
It was mentioned on the
http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC that XWiki
implements the most important part of the Confluence
<http://confluence.atlassian.com/display/DOC/Remote+API+Specification>
XML-RPC API including Pages: retrieval, rendering, creation, history,
update, search and removal. Could someone please please guide me as to what
I might be doing wrong here. As always, any help would be much appreciated.
import org.codehaus.swizzle.confluence.SpaceSummary;
import org.codehaus.swizzle.confluence.Confluence;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
public class ConfluenceExample {
public static void main(String[] args) throws Exception {
String username = "Admin";
String password = "admin";
String endpoint = "http://127.0.0.1:8080/xwiki/xmlrpc/confluence";
Confluence confluence = new Confluence(endpoint);
confluence.login(username, password);
String sql = "where doc.creator='XWiki.Admin'";
List searches = confluence.search(sql, 10);
System.out.println(searches.size());
}
}
Regards,
Dilipkumar Jadhav
Hi
I just realized that I have a bunch of new users all created with the
same first and last name. I saw one with the same name 'Kunstkamera'
being created also on the XWiki.org (or at least I thought so).
Any idea what is going on.
Is there someone trying to spam XWiki's and is there anything to be of
concern as an administrator?
Which leads me to another concern:
Every Import of the Enterprise XAR file is reseting the Admin
password to the default.
Is there anyway to prevent that because in the heat of the upgrade
procedure that gets easily overlooked ?
Cheers - Andy
Hi Everyone,
New to XWiki and we're trying to come up with a migration strategy. Our old
wiki is an ancient version of moinmoin.
We can develop a file parser for the old moinmoin documents on the
filesystem quite easily. The syntax to XWiki is similar, so a couple of
regexes will have the conversion process underway. We're not really
concerned with preserving the wiki history, although that would be nice.
The big problem is, how do we load the pages into XWiki? Is there a
webservice or some sort of API for XAR files available?
Thank you!
--
View this message in context: http://n2.nabble.com/Trying-to-create-migration-path-from-moinmoin-to-xwiki…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi
I upgraded to 2.0.2 without a problem (http://madplanet.com/xwiki).
The only issue I encountered so far is that I am not able to change
the 'Color Theme' in the Administration -> Presentation even though I
use the Colibri skin as my default skin.
This does not work for the entire Wiki nor for a particular Space.
That said I can access the Color Themes in the ColorThemes space and
the look and feel looks right.
Any idea why?
Thanks - Andy
Thanks for your response Guillaume & Sergiu.
I changed the ColorTheme space to be viewable by Guests. That did resolve
the original issue.
And it happened just in time :)
I recently transitioned not only from MediaWiki to XWiki, but an older
computer running Windows Vista (Ultimate x64) to my present PC, operating on
Windows 7 (Ultimate x64). The reasons for the change and system specs
should, I believe, be irrelevant in this case for the following reasons:
* I was able to install XWiki for All Users without a hitch
* XWiki runs perfectly while logged into the Administrator (aka, the hidden
"Super Administrator") account
Therein, however, is the problem: XWiki runs only in the Administrator
account. The MS-DOS Prompt reads as such while in the Admin-account...
------------------------------------------------------------------------------------------
2009-10-27 14:41:20.279: :INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2009-10-27 14:41:20.419: :INFO: jetty-6.1.21
2009-10-27 14:41:20.450: :INFO: Deploy C:\Program Files (x86)\XWiki
Enterprise\jetty\contexts\root.xml ->
org.mortbay.jetty.webapp.WebAppContext@7546c1d4(/,C:\Program Files
(x86)\XWiki Enterprise\jetty/../webapps/root)
2009-10-27 14:41:20.466: :INFO: Deploy C:\Program Files (x86)\XWiki
Enterprise\jetty\contexts\xwiki.xml ->
org.mortbay.jetty.webapp.WebAppContext@785f8172</xwiki,C:\Program Files
(x86)\XWiki Enterprise\jetty/../webapps/xwiki)
2009-10-27 14:41:23.196: :INFO: Opened C:\Program Files (x86)\XWiki
Enterprise\jetty\logs\2009_10_27.request.log
2009-10-27 14:41:23.211: :INFO: Started SelectChannelConnector@0.0.0.0:8080
2009-10-27 14:41:23.084 [http://lochalhost:8080/xwiki/bin/view/Main/WebHome]
INFO .AbstractXWikiMigrationManager - No storage migration required since
current version is [15429]
------------------------------------------------------------------------------------------
...yet, when I switch to my personal account (the only other one on the
system, having been that which was created during the OS-installation and
thus, also listed in the Administrator user-group), it reads...
------------------------------------------------------------------------------------------
2009-10-27 14:41:38.512: :INFO: Logging to STDERR via
org.morbay.log.StdErrLog
2009-10-27 14:51:38.673: :INFO: jetty-6.1.21
2009-10-27 14:51:38.718: :INFO: Deploy C:\Program Files (x86)\XWiki
Enterprise\jetty\contexts\root.xml ->
org.mortbay.jetty.webapp.WebAppContext@5492bbba(/,C:\Program Files
(x86)\XWiki Enterprise\jetty/../webapps/root)
2009-10-27 14:51:38.725: :INFO: Deploy C:\Program Files (x86)\XWiki
Enterprise\jetty\contexts\xwiki.xml ->
org.mortbay.jetty.webapp.WebAppContext@6d62dbb6(/xwiki,C:\Program Files
(x86)\XWiki Enterprise\jetty/../webapps/xwiki)
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: xwiki.log (Access is denied)
at java.io.FileOutputStream.openAppend(Native Method)
at.java.io.FileOutputStream.<init>(Unkown Source)
at.java.io.FileOutputStream.<init>(Unkown Source)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at
org.apache.log4j.config.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at
org.apache.log4j.config.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at
org.apache.log4j.config.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at
org.apache.log4j.config.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at
org.apache.log4j.config.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4Logger.java:289)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
at org.apache.commons.logging.impl.LogFactory.getLog(LogFactory.java:685)
at
org.xwiki.component.logging.CommonsLoggingLogger.<init>(CommonsLoggingLogger.java:38)
at
org.xwiki.component.embed.EmbedableComponentManager.initialize(EmbedableComponentManager.java:67)
at
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:52)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
2009-10-27 14:51:41.849: :WARN: failed
org.mortbay.jetty.NCSARequestLog@75c45731: java.io.FileNotFoundException:
C:\Program Files (x86)\XWiki Enterprise\jetty\logs\2009_10_27.request.log
(Access is denied)
2009-10-27 14:51:41.850: :WARN: failed RequestLogHandler@2d388e5e:
java.io.FileNotFoundException: C:\Program Files (x86)\XWiki
Enterprise\jetty\logs\2009_10_27.request.log (Access is denied)
2009-10-27 14:51:41.854: :WARN: failed HandlerCollection@5c0ad483:
java.io.FileNotFoundException: C:\Program Files (x86)\XWiki
Enterprise\jetty\logs\2009_10_27.request.log (Access is denied)
2009-10-27 14:51:41.854: :WARN: Error starting handlers
java.io.FileNotFoundException: C:\Program Files (x86)\XWiki
Enterprise\jetty\logs\2009_10_27.request.log (Access is denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at
org.mortbay.util.RolloverFileOutputStream.setFile(RolloverFileOutputStream.java:243)
at
org.mortbay.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:164)
at org.mortbay.jetty.NCSARequestLog.doStart(NCSARequestLog.java:428)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:117)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
2009-10-27 14:41:41.897: :INFO: Started SelectChannelConnector@0.0.0.0:8080
------------------------------------------------------------------------------------------
...whereas attempting to run the start_wiki.bat file via the "Run as
Administrator" right-click option leads to...
------------------------------------------------------------------------------------------
Unable to access jarfile jetty/start.jar
------------------------------------------------------------------------------------------
...directing my browser (Firefox 3.5.3) to the appropriate page leads to:
ACTUAL WEBPAGE (http://lochalhost:8080/xwiki/bin/view/Main/WebHome) DISPLAY:
HTTP ERROR: 404
Problem accessing /xwiki/bin/view/Main/WebHome. Reason:
NOT_FOUND
Powered by Jetty://
To the best of my knowledge, this is clearly an issue of account
permissions, however, given that my knowledge of Java is (at best) cursory,
I am appealing to anyone who can lend a hand. I'm quite willing to supply
any other information that is dubbed necessary.
NOTE: The same results are obtained whether UAC is on or off. The same also
applies after having switched the program ownership permission to my
personal account.
--
View this message in context: http://n2.nabble.com/Windows-7-Account-Renders-XWiki-Inoperable-tp3903667p3…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello all,
Background: We're trying to build a searchable user directory of XWiki users
where people can be searched by specialty. The deal here is that each user
who contributes to the wiki is good at something and we wanted other users
to be able to find contributors by their specialty in case they need some
help.
XWiki Feature: We are using the livetable user directory example provided on
the xwiki.org website & it works great. However, users are adding their
specialty through the tags on their own profile pages. This too is
searchable using the livetable macro option to enable a tagcloud.
Concern/Issue: Our user base is currently a few hundred and is expected to
grow rapidly soon. Each user has some tags to add to his profile which leads
to a lot of tags in the tagcloud right above the livetable. Also, the page
loading has become very slow since the entire tag cloud is loading along
with the livetable.
Possible Solution: Could it be possible to use the ajax suggest to type in
these "specialty" tags rather than display an entire tag cloud on the
livetable page. The single tag textbox would provide the search criteria to
the livetable document filtering process. Alternatively, could someone
please help me with the search query for pulling up pages with
XWiki.XWikiUsers objects by using values of XWiki.Tags objects on the same
document. I've looked up queries for hql searches & unable to find one which
crosses multiple classes . Most queries are searches based on objects of one
class only. (Can we have 2 BaseObjects, let's say obj1 & obj2 to represent
the two different object types embedded in the same document).
Any help would be greatly appreciated.
Regards,
Dilipkumar Jadhav
Hello all,
We've been trying to setup wiki access rights in a manner that only
registered users can access pages. As a result, we blocked any unregistered
user from either viewing or editing pages without a login. This was due to
the fact that we were trying to setup a feedback mechanism where it was
important to know who gives the feedback. However, due to these access right
changes, the Colibri skin themes applied from the presentation control panel
no longer work. The default Colibri theme (with the gray background) is what
comes up. I am assuming this is due to the fact that the themes too are
pages in the wiki (with the Colibri skin & ColorTheme space being
introduced) & blocking everyone out from viewing/editing pages will apply
the same access rights to the ColorTheme space.
The strange part is when a user does login, still the skin remains the
default one and doesn't change to the theme set in the presentation panel.
Could anyone please recommend a workaround to this. Thank you for your time
& consideration.
Regards,
Dilipkumar Jadhav
Hi,
I am using xwiki fro my organization.
In some cases the date format is appearing wrong, like the month filed is displaying "36".
How can it be possible and what should i do to correct this.
Regards
Jasvent
Eperium Business Soln. Pvt. Ltd.
eperium. e-commerceunlimited
Yahoo! India has a new look. Take a sneak peek http://in.yahoo.com/trynew
Hi!
XWiki SAS is interestred to gather testimonials about XWiki Enterprise
and propose an original way to get them. Tell us why you love this
solution, why you find it interesting, innovating... in less than 140
characters on Twitter (by sending a tweet to @xwiki
<http://www.twitter.com/xwiki>). All the tweets will be listed on
http://xwiki.com and http://www.xwiki.org
"You can also help the project by creating a page on
http://www.xwiki.org/xwiki/bin/view/References/ that explains how you
use XWiki."
Many Thanks, in advance, for your participation.
Emilie Ogez
--
Marketing & Communication Manager
Mob. : +33( 0)623414368
Email : Emilie.Ogez(a)xwiki.com
http://www.xwiki.comhttp://www.twitter.com/eogez
Hi,
Like to change 'Welcome to your Wiki' on WebHome to something else.
Sorry, just can't see how to do it. Editing the page doesn't bring up
anything obvious. Poked around in header.vm and other templates. Not
seeing it.
Do I have to wade into building or modifying the skin for this sort of a
change?
Thanks,
Mark
HCSC Company Disclaimer
The information contained in this communication is confidential, private,
proprietary, or otherwise privileged and is intended only for the use of
the addressee. Unauthorized use, disclosure, distribution or copying is
strictly prohibited and may be unlawful. If you have received this
communication in error, please notify the sender immediately at (312)
653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
Oklahoma; or (972)766-6900 in Texas.
Hi -
I am using XEM 1.7.1/XE 2.0 milestone 1
I am managing my users and groups in one main wiki, and they have access
to one or more virtual wikis. However, the user image/avatar does not
appear in the virtual wikis if uploaded in the main wiki. Instead of
the default avatar image or the image that was uploaded to the main
wiki, all that is displayed is: "xwiki:XWiki.klakas"
Is there any way to have the user images work across virtual wikis?
Kelly
Kelly Lakas
Project Manager
next wave logistics inc.
28377 davis parkway, suite 607a
warrenville, il 60555
________________________
[office] 847.798.8897
[mobile] 312.307.2079
[web] www.nwlinc.com <http://www.nwlinc.com>
Hello,
I've started work on the Contribution draft:
http://dev.xwiki.org/xwiki/bin/view/Drafts/XEContribute
Any help/feedback would be very appreciated. Especially as my English
skills are not good enough to produce high quality texts.
@Vincent: I have seen your improvements, thanks :) First I sent this e-mail on Sunday, but unfortunately from a wrong e-mail... :(
Thanks,
Roman
Hello!
I'm experimenting with xeclipse to perform global xwiki content
refactoring.
Idea is following: get local xwiki copy in files on disk, then perform
find/replace using regular expressions on files
and upload back to xwiki.
(It could be possible using simple import/export though it is more error
prone and it cant be done at once due to maximum importing file limit.)
Though I couldn't do that. It seems after refreshing local content is
overwritten from xwiki, if file changes are not performed in editor.
Can anybody explain how it could/should be done?
Thanks,
Valdis
Hello.
I'm using XWiki Enterprise 2.0.
Today I'm trying to get the Watchlist notification work.
I've set these settings:
host: smtp.gmail.com
port: 465
user: vostrets(a)gmail.com
password: ***
javaMail props: mail.smtp.starttls.enable=true
Am I right?
Now I go to the Sandbox and watch the "Training Zone" page.
Then I go to my Watchlist management and set e-mail notification frequency
to "1" (i have no idea what does this mean, there are only these values:
"0", "1", "2", "3", "4", "Scheduler.WatchListDailyNotifier",
"Scheduler.WatchListHourlyNotifier", "Scheduler.WatchListWeeklyNotifier").
Then I log in as another user and play with the Sandbox.
And then wait for the notification e-mail.
But nothing is being sent to me...
No errors on "mail" or "smtp" in the log either..
Am I doing something wrong?
Or should I try it some other way?
--
View this message in context: http://n2.nabble.com/How-to-check-that-SMTP-mailing-is-working-correctly-tp…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi -
I am trying to use XWord with Office 2007 and XEM 1.7.1/XE 2.0 milestone
1.
I've installed Xword on my computer, I have Office 2007 sp2 installed,
and I've imported the xar with the Admin user, which has programming
rights.
I can only connect via Velocity Services, and when I do, the spaces do
not appear correctly. Instead I see in the Wiki explorer: ") else
eraseCookie, {type:Keypress, disable_in_input, and other non-space
things.
I cannot connect via XML-RPC at all, despite using the same
url/login/password that I use for Velocity Services.
I've tried this on the master wiki and on one of the virtual wikis, and
the same issue with both
I've dug through the bugs, but can't seem to find anything relating to
this specific issue.
Can anyone help?
Kelly
Kelly Lakas
Project Manager
next wave logistics inc.
28377 davis parkway, suite 607a
warrenville, il 60555
________________________
[office] 847.798.8897
[mobile] 312.307.2079
[web] www.nwlinc.com <http://www.nwlinc.com>
This one's for the hard-core XWiki gurus...
My group is interested in going heavily into using XWiki to manage
(semi) structured information that will be partially shared with other
applications (non-wikis, possibly desktop apps). We figured since XWiki
has an extensible object-model and accompanying persistence layer, we
might let it be the authoritative keeper of all data in the distributed
system.
After playing with XWiki for a couple of weeks and prototyping some
pages/objects plus a component to package and exchange data with another
Java application, we're starting to wonder if there couldn't be a more
efficient way to access/distribute object data, and even to define a
common data model across applications and wiki:
- Regarding access/distribution: As an example, we're prototyping a
graphical tool that would want to get a whole graph of objects at
start-up to build a node/link picture of some situation (where each node
or link would also be a page/object in the wiki). Given the existing DB
schema, we feel like we're struggling at this point to imagine a DB
query that would pull all relevant object data for a given graph at one
go, and even if we could pull the data efficiently, we're not sure how
best to package it up for transmission.
- Regarding more efficient object class definition: We're imagining a
system with maybe 25 classes (and growing), and it would be nice to
define them once and have them exist both as Java POJOs (for the other
application bits) and XWiki classes (for XWiki to generate page views).
We've been using the Eclipse Modeling Framework (EMF) quite a bit lately
to do that kind of thing--e.g. to define a model in a UML-ish way, and
generate different artifacts, including Java class code. I drag EMF
into this because I like the idea of having one modeling point for all
parts of the system, and because its native generated POJO object
implementations are pretty efficient (it also provides freebie
object-graph serialization to XML, which we've used successfully for the
"distribution" issue above in other systems, and it even allows for
dynamic runtime class definitions).
One thought we had was to create modified EMF generator templates to
generate code that would invoke XWiki APIs to build needed XWiki object
class structures, as well as packer/unpacker routines to convert between
XWiki objects and EMF-POJO objects. This approach has some challenges:
(1) I don't know if there's an exposed XWiki API for defining object
classes, (2) if there is, I don't know how tricky it might be to use it
correctly, and (3) hacking the EMF generator would be a pretty daunting
task too.
Another thought we had was to totally replace the underlying XWiki
object model. This approach is likely even more challenging, but could
produce a better (more efficient) overall implementation. We checked
out the XWiki source from the public SVN and on first glance it appear
com/xpn/xwiki/objects and com/xpn/xwiki/objects/classes are the packages
to look at. It seems like it might be possible to use EMF-POJOs as our
data model, by either wrapping or extending them to satisfy
ObjectInterface and ClassInterface. If we could do that, it might also
make sense to also replace the persistence layer (com/xpn/xwiki/store ?)
by using EMF's ability to generate DB-persistence through Teneo and
Hibernate (if we do our own persistence, we can perhaps set up
schema/indexing that better supports key high-volume queries in our
application).
So here's the question part of this question:
1- Do the overall goals of using XWiki in this kind of
distributed/multi-application system make sense and fit within the
envisioned envelope of what XWiki is reasonably intended to support?
2- Has anyone worked on pulling large sets of objects from the XWiki DB
in one go, and packaging them for transmission over the wire to some
other Java application?
3- Is there a programmatic/API way to drive XWiki to define new object
classes, and if so, is there any documentation on how to use it?
4- Is replacing the data and/or persistence models underlying XWiki
something that is supposed to be doable? How hard/complicated should we
expect it to be? Is that the kind of thing we could get help with on
this list?
5- Do you have any other comments or advice on how to think about this
kind of problem?
Hope this strikes someone as interesting and worthy of comment. Thanks
for any guidance you can offer.
--Eric
=========================================================================
Eric Domeshek Phone: 617-902-2223
AI Project Manager Fax: 617-902-2225
Stottler Henke Associates, Inc. EMail: domeshek(a)stottlerhenke.com
86 Sherman St., Cambridge, MA 02140 Web: www.stottlerhenke.com
=========================================================================
Hallo,
while using XWiki 2.0.1 I have had problems with content pasted from web
pages with tables to XWiki. The formatting of tables was destroyed;
nevertheless reformatting manually solved the problem. After the upgrade
to XWiki Enterprise 2.0.1.1, pages can not be saved anymore; XWiki is
throwing the following exception:
2009-10-21 21:21:09,089
[http://localhost:8080/xwiki/bin/preview/Sandbox/TestPage1] ERROR
doc.XWikiDocument - Failed to parse document content to XDOM
com.xpn.xwiki.XWikiException: Error number 0 in 4: Failed to parse
content of syntax [xwiki/2.0]
Wrapped Exception: Failed to parse input source
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5628)
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5618)
at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:5534)
at
com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedPages(XWikiDocument.java:3268)
at
com.xpn.xwiki.doc.XWikiDocument.getUniqueWikiLinkedPages(XWikiDocument.java:3147)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1859)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:587)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1312)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
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:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Wrapped Exception:
org.wikimodel.wem.WikiParserException:
org.wikimodel.wem.xwiki.javacc.ParseException: Encountered "
<D_BLOCK_PARAMS> "\n(% align=\"center\" %) "" at line 12, column 1.
Was expecting one of:
<I_HEADER_END> ...
<I_TABLE_CELL> ...
<I_REFERENCE> ...
<I_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<I_MACRO_START> ...
<I_FORMAT_SYMBOL> ...
<I_IMAGE> ...
<I_ATTACH> ...
<I_BR> ...
<I_INLINE_PARAMS> ...
<I_XWIKI_URI> ...
<I_XWIKI_SPACE> ...
<I_WORD> ...
<I_SPECIAL_SYMBOL> ...
<D_HEADER_END> ...
<D_TABLE_CELL> ...
<D_REFERENCE> ...
<D_VERBATIM_START> ...
<D_MACRO_EMPTY> ...
<D_MACRO_START> ...
<D_FORMAT_SYMBOL> ...
<D_IMAGE> ...
<D_ATTACH> ...
<D_BR> ...
<D_INLINE_PARAMS> ...
<D_XWIKI_URI> ...
<D_XWIKI_SPACE> ...
<D_WORD> ...
<D_SPECIAL_SYMBOL> ...
<I_INLINE_PARAMS> ...
<D_INLINE_PARAMS> ...
<I_WORD> ...
<D_WORD> ...
<I_XWIKI_SPACE> ...
<D_XWIKI_SPACE> ...
<I_SPECIAL_SYMBOL> ...
<D_SPECIAL_SYMBOL> ...
<I_FORMAT_SYMBOL> ...
<D_FORMAT_SYMBOL> ...
<I_VERBATIM_START> ...
<D_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<D_MACRO_EMPTY> ...
<I_MACRO_START> ...
<D_MACRO_START> ...
<I_BR> ...
<D_BR> ...
<I_XWIKI_URI> ...
<D_XWIKI_URI> ...
<I_IMAGE> ...
<D_IMAGE> ...
<I_ATTACH> ...
<D_ATTACH> ...
<I_REFERENCE> ...
<D_REFERENCE> ...
<I_TABLE_CELL> ...
<D_TABLE_CELL> ...
<I_HEADER_END> ...
<D_HEADER_END> ...
at org.wikimodel.wem.xwiki.XWikiParser.parse(XWikiParser.java:45)
at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:93)
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5626)
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5618)
at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:5534)
at
com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedPages(XWikiDocument.java:3268)
at
com.xpn.xwiki.doc.XWikiDocument.getUniqueWikiLinkedPages(XWikiDocument.java:3147)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1859)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:587)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1312)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
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:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.wikimodel.wem.xwiki.javacc.ParseException: Encountered "
<D_BLOCK_PARAMS> "\n(% align=\"center\" %) "" at line 12, column 1.
Was expecting one of:
<I_HEADER_END> ...
<I_TABLE_CELL> ...
<I_REFERENCE> ...
<I_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<I_MACRO_START> ...
<I_FORMAT_SYMBOL> ...
<I_IMAGE> ...
<I_ATTACH> ...
<I_BR> ...
<I_INLINE_PARAMS> ...
<I_XWIKI_URI> ...
<I_XWIKI_SPACE> ...
<I_WORD> ...
<I_SPECIAL_SYMBOL> ...
<D_HEADER_END> ...
<D_TABLE_CELL> ...
<D_REFERENCE> ...
<D_VERBATIM_START> ...
<D_MACRO_EMPTY> ...
<D_MACRO_START> ...
<D_FORMAT_SYMBOL> ...
<D_IMAGE> ...
<D_ATTACH> ...
<D_BR> ...
<D_INLINE_PARAMS> ...
<D_XWIKI_URI> ...
<D_XWIKI_SPACE> ...
<D_WORD> ...
<D_SPECIAL_SYMBOL> ...
<I_INLINE_PARAMS> ...
<D_INLINE_PARAMS> ...
<I_WORD> ...
<D_WORD> ...
<I_XWIKI_SPACE> ...
<D_XWIKI_SPACE> ...
<I_SPECIAL_SYMBOL> ...
<D_SPECIAL_SYMBOL> ...
<I_FORMAT_SYMBOL> ...
<D_FORMAT_SYMBOL> ...
<I_VERBATIM_START> ...
<D_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<D_MACRO_EMPTY> ...
<I_MACRO_START> ...
<D_MACRO_START> ...
<I_BR> ...
<D_BR> ...
<I_XWIKI_URI> ...
<D_XWIKI_URI> ...
<I_IMAGE> ...
<D_IMAGE> ...
<I_ATTACH> ...
<D_ATTACH> ...
<I_REFERENCE> ...
<D_REFERENCE> ...
<I_TABLE_CELL> ...
<D_TABLE_CELL> ...
<I_HEADER_END> ...
<D_HEADER_END> ...
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.generateParseException(XWikiScanner.java:3430)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.jj_consume_token(XWikiScanner.java:3306)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.block(XWikiScanner.java:1533)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.tableRow(XWikiScanner.java:964)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.table(XWikiScanner.java:923)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.docElements(XWikiScanner.java:662)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.doParse(XWikiScanner.java:641)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.parse(XWikiScanner.java:49)
at org.wikimodel.wem.xwiki.XWikiParser.parse(XWikiParser.java:43)
... 60 more
2009-10-21 21:21:09,102
[http://localhost:8080/xwiki/bin/preview/Sandbox/TestPage1] WARN
web.XWikiAction - Uncaught exception: Error number 3201
in 3: Exception while saving document Sandbox.TestPage1
Wrapped Exception: Error number 13012 in 3: Exception while saving links
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
saving document Sandbox.TestPage1
Wrapped Exception: Error number 13012 in 3: Exception while saving links
Wrapped Exception: null
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:601)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1312)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
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:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 13012 in 3: Exception while
saving links
Wrapped Exception: null
at
com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1865)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:587)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1312)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
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:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Wrapped Exception:
java.lang.NullPointerException
at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:5540)
at
com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedPages(XWikiDocument.java:3268)
at
com.xpn.xwiki.doc.XWikiDocument.getUniqueWikiLinkedPages(XWikiDocument.java:3147)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1859)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:587)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1312)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
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:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Please fix this bug!
Thank You
Best wishes
rainer
Hi all,
I've installed xwiki 2.0.1 on several systems. I've got the error below on a few of them just opening the wiki for the "Recent Changes" - "Failed to execute macro: velocity". I've solved it for one wiki (solved it by accident) exporting and importing that wiki. The second one is to big to do so. The error rises for a farm wiki and a standard wiki.
I am switching back to the 2.0 wiki ".war" using the 2.0.1 ".xar" pages.
Kind regards
mb
This is the < 100KB version of that Mail
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [##
## Recent changes.
##
## Optional parameters :
##
## Parameters which can be set in velocity before including this page or can be passed as HTTP parameters.
## Note that HTTP parameters supercede velocity set variables.
##
## - rcShowMinor (String set to "true" or "false"): show minor edits.
## - rcShowDiff (String set to "true" or "false"): show diff in items.
## - rcShowRss (String set to "true" or "false"): show RSS at the bottom of the list.
## - rcChangesNb (String set to a numerical value): number of recent changes to display.
## - rcSpace (List of string[s]): restrict recent changes retrieval to pages within the given space.
## - rcTag (List of string[s]): restrict recent changes retrieval to pages with the given tag.
## - rcAuthor (List of string[s]): restrict recent changes retrieval to pages with the given author.
##
## Parameters which can be set before including this page only.
##
## - rcDocumentNames (Collection): The list of recentlyChanged documents, to reuse a previous search query.
##
$xwiki.jsx.use("Main.RecentChanges")##
$xwiki.ssx.use("Main.RecentChanges")##
#set($action = "$!request.getParameter('action')")
##
## Start execution timer
##
#set($execStart = $util.getDate())
##
## Go to diff URL service.
##
#if($action == "goToDiffURL")
#set($page = "$!request.getParameter('page')")
#set($author = "$!request.getParameter('author')")
#set($date = "$!request.getParameter('date')")
#set($period = $xwiki.criteriaService.getPeriodFactory().createDayPeriod($date))
#set($criterion = $xwiki.criteriaService.getRevisionCriteriaFactory().createRevisionCriteria($author, $period))
#if("$!request.getParameter('rcShowMinor')" == "true")
#set($discard = $criterion.setIncludeMinorVersions(true))
#end
#set($diffDoc = $xwiki.getDocument($page))
#set($revisions = $diffDoc.getRevisions($criterion))
#set($rev1 = $listtool.get($revisions, 0))
#set($revMax = $revisions.size() - 1)
#set($rev2 = $listtool.get($revisions, $revMax))
#if($rev2 != "1.1")
#set($rev2 = $xwiki.getDocument($diffDoc, $rev2).getPreviousVersion())
#end
$response.sendRedirect($diffDoc.getURL("view", "viewer=changes&rev1=${rev1}&rev2=${rev2}"))
#end
## We have to use the HTML macro to avoid prints of multiple   on macro calls.
{{html}}
## Manage minor edits.
#setVariableFromRequest($rcShowMinor "rcShowMinor" false)
## Manage show diff in items.
#setVariableFromRequest($rcShowDiff "rcShowDiff" true)
## Manage show RSS links.
#setVariableFromRequest($rcShowRss "rcShowRss" true)
## Manage number of changes to display.
#setVariableFromRequest($rcChangesNb "rcChangesNb" 30)
## Manage tag criterion
#setVariableFromRequest($rcTag "rcTag" [])
## Manage space criterion
#setVariableFromRequest($rcSpace "rcSpace" [])
## Manage author criterion
#setVariableFromRequest($rcAuthor "rcAuthor" [])
{{/html}}
##
## Create a string containing one or more ? given the number of values in the passed list.
##
#macro(createQueryParameters $values $parameters)
#foreach($value in $values)
#if($parameters == "")
#set($parameters = "?")
#else
#set($parameters = "${parameters}, ?")
#end
#end
#end
##
## Retrieve recently changed documents.
##
#set($criteria = $util.getHashMap())
#if("$!rcDocumentNames" == "")
#if(!$xwiki.hasMinorEdit() || $rcShowMinor)
#set ($hqlQuery = "where 1=1 order by doc.date desc")
#else
#set ($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and ni.id.version2=1 #if(!$isAdvancedUser)and doc.author != 'superadmin'#end group by doc.space, doc.name order by max(ni.date) desc")
#end
## Create space criterion.
#if($rcSpace.size() > 0)
#set($spaceParameters = "")
#createQueryParameters($rcSpace $spaceParameters)
#set($discard = $criteria.put("doc.space in (${spaceParameters})", $rcSpace))
#end
## Create tag criterion.
#if("$!xwiki.getPlugin('tag')" != "" && $rcTag.size() > 0)
#set($docsWithTag = $util.getArrayList())
#foreach($item in $rcTag)
#set($discard = $docsWithTag.addAll($xwiki.tag.getDocumentsWithTag($item)))
#end
#set($docsWithTagParameters = "")
#createQueryParameters($docsWithTag $docsWithTagParameters)
#set($discard = $criteria.put("doc.fullName in (${docsWithTagParameters})", $docsWithTag))
#end
#if($rcAuthor.size() > 0)
#set($authorParameters = "")
#createQueryParameters($rcAuthor $authorParameters)
#set($discard = $criteria.put("doc.author in (${authorParameters})", $rcAuthor))
#end
#if($criteria.size() > 0)
## If any, loop over criterias to add them to the query, then perform the query.
#set($values = $util.getArrayList())
#foreach($criterion in $criteria.keySet())
#if($criteria.get($criterion).size() > 0)
#set($hqlQuery = $hqlQuery.replaceAll("where", "where ${criterion} and"))
#set($discard = $values.addAll($criteria.get($criterion)))
#end
#end
#set($rcDocumentNames = $xwiki.searchDocuments($hqlQuery, $rcChangesNb, 0, $values))
#else
## No query criterion, perform the query as is.
#set($rcDocumentNames = $xwiki.searchDocuments($hqlQuery, $rcChangesNb, 0))
#end
#end
##
## Prepare comments handling
#set($commentsOrder = false)
#if($xwiki.getWebPreferenceAsInt("commentsorder",1) == 0)
#set($commentsOrder = true)
#end
##
## Comment handling macro.
## Retreive page's last comment if any and
## overwrite variables if this comment is the last modification on the page.
##
#macro(handleComment $rcDoc $rcType $rcDt $commentsOrder)
## Retrieve comments from last to first.
#set($rcComments = $rcDoc.getComments($commentsOrder))
#if($rcComments.size() > 0)
## Retrieve last comment.
#set($lastComment = $listtool.get($rcComments, 0))
#set($lastCommentDate = $lastComment.getProperty("date").getValue())
## If the last modification on the page is the comment, overwrite values.
## We don't test compareTo() == 0 since the comment date and the save date may vary a little bit.
#if($lastCommentDate.compareTo($rcDt.toDate()) > -1 && $lastCommentDate.compareTo($rcDt.toDate()) <= 1)
#set($rcType = "comment")
#end
#end
#end
##
## Attachments handling macro.
## Retrieve page's attachments and put those which upload matches the modification entry (author and timeframe)
## in the $rcAttachments List.
##
#macro(handleAttachments $rcDoc $rcAuthor $rcDt)
#set($attachments = $rcDoc.getAttachmentList())
#foreach($attachment in $attachments)
#set($attachmentDt = $xwiki.jodatime.getDateTime($attachment.getDate().getTime()))
#if($rcAuthor == $attachment.getAuthor() && $rcDt.getYear() == $attachmentDt.getYear() && $rcDt.getDayOfYear() == $attachmentDt.getDayOfYear())
#set($discard = $rcAttachments.add($attachment))
#end
#end
#end
##
##
##
#macro(displayRcAuthor $author)
#useravatar($author)
<br/><span class="recentChangesAuthor">
#if($author == "XWikiGuest")
Guest
#else
#set($localUserName = $xwiki.getLocalUserName($author))
#if($localUserName == "")
## localUserName can be empty when the page has been saved without specifying the author.
## We're printing a non-breaking space to ensure xhtml validity (ie: avoid empty paragraph).
#else
$localUserName
#end
#end
</span>
#end
#macro(displayRcVersion $version)
#if($version == "1.1")
<span class="rcVersion">(<span class="newVersion">$msg.get("xe.recentchanges.entry.new")</span>)</span>
#end
#end
##
## Display the recent changes list.
##
#set($previousDt = $xwiki.jodatime.getDateTime(0))
#set($discard = $previousDate.setTime(0))
#set($previousAuthor = "")
## Get this very doc, useful when it is included from another one.
#set($recentChangesDoc = $xwiki.getDocument("Main.RecentChanges"))
{{html}}
<table class="recentChanges">
<tr class="recentChangesHeader"><th>$msg.get("xe.recentchanges.column.authoranddate")</th><th>$msg.get("xe.recentchanges.column.changes")</th></tr>
#foreach ($rcDocName in $rcDocumentNames)
#set($row = "")
#set($rcAttachments = $util.arrayList)
## Verify user access level on the document
#if ($xwiki.hasAccessLevel("view", $context.user, "${context.database}:${rcDocName}"))
#set($rcDoc = $xwiki.getDocument($rcDocName))
#set($rcType = "page")
#set($rcAuthor = $rcDoc.getAuthor()) ## TODO : check comments
#set($rcDt = $xwiki.jodatime.getDateTime($rcDoc.getDate().getTime()))
## The handleComment macro overwrites rcType variable if the last modification is a comment.
#handleComment($rcDoc $rcType $rcDt $commentsOrder)
## The handleAttachments macro put a list of attachments uploaded during the day by the author in $rcAttachments.
#handleAttachments($rcDoc $rcAuthor $rcDt)
#if($rcAuthor == $previousAuthor && $rcDt.getYear() == $previousDt.getYear() && $rcDt.getDayOfYear() == $previousDt.getDayOfYear())
## Same day and author, continue in the same row.
#else
## Different day or author, end previous row and start a new one.
#if($velocityCount > 1)</ul></td></tr>#end ## close previous row if needed
<tr><td class="recentChangesLeft">#displayRcAuthor($rcAuthor)<br/>
<span class="recentChangesDate">$xwiki.formatDate($rcDt.toDate(), "MMMM d")</span></td>
<td class="recentChangesRight"><ul class="xlist"> ## open next cell
#end
## Compute a GUID for this modification with page name, modification date and author.
#set($modGUID = "${rcDoc.fullName}_${xwiki.formatDate($rcDt.toDate(), 'yyyyMMdd')}_${rcAuthor}")
## Build the URL used to retreive the diff viewer URL
#set($goToDiffURL = $recentChangesDoc.getURL("view", "xpage=plain&action=goToDiffURL&page=${rcDoc.getFullName()}&author=${rcAuthor}&date=${xwiki.formatDate($rcDt.toDate(), 'yyyyMMdd')}&rcShowMinor=${rcShowMinor}"))
<li class="xitem xunderline xhighlight ${rcType}">
<div class="xitemcontainer">
#if($rcType == "comment")
<div class="modifiedPage"><a href="$rcDoc.getURL()" title="$msg.get("xe.recentchanges.entry.comment.tooltip", [$xwiki.formatDate($rcDt.toDate(), "HH:mm")]) ">$xwiki.getXMLEncoded($rcDoc.getDisplayTitle())</a></div>
#if($rcShowDiff)
<div class="xshowonhover modifiedPageActions"><a class="ajax" href="$rcDoc.getURL("vire", "viewer=comments")" onclick="toggleClass(document.getElementById('$modGUID'), 'hidden'); toggleClass(document.getElementById('${modGUID}_comShow'), 'hidden'); toggleClass(document.getElementById('${modGUID}_comHide'), 'hidden'); return false;"><span id="${modGUID}_comShow">[+] $msg.get("xe.recentchanges.entry.comment.show")</span><span id="${modGUID}_comHide" class="hidden">[-] $msg.get("xe.recentchanges.entry.comment.hide")</span> $msg.get("xe.recentchanges.entry.comment")</a></div>
<div class="commentContainer hidden" id="$modGUID">
<div class="commentQuote lQuo"> </div>
<div class="commentQuote rQuo"> </div>
<div class="comment">
$lastComment.get("comment")
</div>
## Display discussion link, this link point to the comments anchor.
<div class="commentAdd"><img src="$xwiki.getSkinFile("icons/silk/comment.gif")" alt="Reply icon" /> <a href="${rcDoc.getURL("view")}#Comments">$msg.get("xe.recentchanges.entry.comment.seediscussion")</a></div>
</div>
#end
#else
<div class="modifiedPage"><a href="$rcDoc.getURL()" title="$msg.get("xe.recentchanges.entry.page.tooltip", [$rcDoc.getVersion(), $xwiki.formatDate($rcDt.toDate())])">$xwiki.getXMLEncoded($rcDoc.getDisplayTitle())</a> #displayRcVersion($rcDoc.getVersion())</div>
#if($rcShowDiff)
<div class="xshowonhover modifiedPageActions"><a href="$goToDiffURL">$msg.get("xe.recentchanges.entry.page.seemodifications")</a></div>
## If the author has uploaded attachments during the day in this page, display them.
#if($rcAttachments.size() > 0)
<div class="attachmentContainer" id="$modGUID">
<ul>
#foreach($rcAttachment in $rcAttachments)
<li class="attachment"><a href="$rcDoc.getAttachmentURL($rcAttachment.filename)">$rcAttachment.filename</a> #displayRcVersion($rcAttachment.getVersion())</li>
#end
</ul>
</div>
#end
#end
#end
<div class="xspacer"> </div>
</div>
</li>
#end
#set($previousAuthor = $rcAuthor)
#set($previousDt = $rcDt)
#end
## Close last row if any.
#if($rcDocumentNames.size() > 1)</ul></td></tr>#end
</table>
{{/html}}
##
## Rebuild URL query string
## Workaround until we fix $request.getQueryString()
##
#set($queryString = "")
#set($paramMap = $request.getParameterMap())
#foreach($key in $paramMap.keySet())
#foreach($value in $paramMap.get($key))
#set($queryString = "${queryString}&${key}=${value}")
#end
#end
##
## Provide links to display minor edits and RSS feed.
##
#if($xwiki.hasMinorEdit())
{{html}}
<p class="recentChangesMoreActions">
#if($rcShowMinor)
<a href="$xwiki.getURL($tdoc.getFullName(), "view", $queryString.replaceAll('rcShowMinor=true', ''))"><img src="$xwiki.getSkinFile("icons/silk/zoom_out.gif")" alt="Hide minor icon"/>$msg.get("xe.recentchanges.hideminor")</a>
#else
<a href="$xwiki.getURL($tdoc.getFullName(), "view", "${queryString}&rcShowMinor=true")"><img src="$xwiki.getSkinFile("icons/silk/zoom_in.gif")" alt="Show minor icon"/>$msg.get("xe.recentchanges.showminor")</a>
#end
#if($rcShowRss)
#set($rssURL = "")
#if($rcTag.size() > 0)
## Temporary harcoded URL until we refactor our RSS feeds.
#set($rssURL = $xwiki.getURL("Main.TagsRss", "view", "xpage=plain&outputSyntax=plain&tag=$listtool.get($rcTag, 0)"))
#else
#set($rssURL = $xwiki.getURL('Main.WebRss', 'view', 'xpage=plain'))
#end
<a href="${rssURL}"><img src="$xwiki.getSkinFile("icons/silk/feed.gif")" alt="RSS icon"/>$msg.get("xe.recentchanges.rssfeed")</a>
#end
</p>
{{/html}}
#end]
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:118)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:44)
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:200)
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:52)
at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:176)
at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5584)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5559)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:557)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
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.ActionFilter.doFilter(ActionFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [velocity macro]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:200)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:110)
... 91 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayTitle' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException at velocity macro[line 243, column 195]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:155)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:366)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
... 93 more
Caused by: java.lang.NullPointerException
at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:5540)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContentTitle(XWikiDocument.java:780)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedTitle(XWikiDocument.java:838)
at com.xpn.xwiki.doc.XWikiDocument.getDisplayTitle(XWikiDocument.java:725)
at com.xpn.xwiki.api.Document.getDisplayTitle(Document.java:254)
at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 108 more
Hi,
updated sucessfull to 2.0.1 but now some pages are displayed no more. There
is an error instead.
2009-10-20 10:45:35,805
[http://xwikidev/bin/view/Org/WebProjektUebersicht0708]
[http://xwikidev/bin/view/Org/WebProjektUebersicht0708] ERROR
doc.XWikiDocument - Failed to parse document content to XDOM
com.xpn.xwiki.XWikiException: Error number 0 in 4: Failed to parse content
of syntax [xwiki/2.0]
Wrapped Exception: Failed to parse input source
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5628)
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5618)
at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:5534)
at
com.xpn.xwiki.doc.XWikiDocument.getDefaultEditMode(XWikiDocument.java:4404)
at com.xpn.xwiki.api.Document.getDefaultEditMode(Document.java:1595)
at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
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.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
Wrapped Exception:
org.wikimodel.wem.WikiParserException:
org.wikimodel.wem.xwiki.javacc.ParseException: Encountered "
<D_BLOCK_PARAMS> "\n(% class=\"western\" lang=\"de-AT\"
style=\"MARGIN-BOTTOM: 0.35cm\" %) "" at line 7, column 1.
Was expecting one of:
<I_HEADER_END> ...
<I_TABLE_CELL> ...
<I_REFERENCE> ...
<I_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<I_MACRO_START> ...
<I_FORMAT_SYMBOL> ...
<I_IMAGE> ...
<I_ATTACH> ...
<I_BR> ...
<I_INLINE_PARAMS> ...
<I_XWIKI_URI> ...
<I_XWIKI_SPACE> ...
<I_WORD> ...
<I_SPECIAL_SYMBOL> ...
<D_HEADER_END> ...
<D_TABLE_CELL> ...
<D_REFERENCE> ...
<D_VERBATIM_START> ...
<D_MACRO_EMPTY> ...
<D_MACRO_START> ...
<D_FORMAT_SYMBOL> ...
<D_IMAGE> ...
<D_ATTACH> ...
<D_BR> ...
<D_INLINE_PARAMS> ...
<D_XWIKI_URI> ...
<D_XWIKI_SPACE> ...
<D_WORD> ...
<D_SPECIAL_SYMBOL> ...
<I_INLINE_PARAMS> ...
<D_INLINE_PARAMS> ...
<I_WORD> ...
<D_WORD> ...
<I_XWIKI_SPACE> ...
<D_XWIKI_SPACE> ...
<I_SPECIAL_SYMBOL> ...
<D_SPECIAL_SYMBOL> ...
<I_FORMAT_SYMBOL> ...
<D_FORMAT_SYMBOL> ...
<I_VERBATIM_START> ...
<D_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<D_MACRO_EMPTY> ...
<I_MACRO_START> ...
<D_MACRO_START> ...
<I_BR> ...
<D_BR> ...
<I_XWIKI_URI> ...
<D_XWIKI_URI> ...
<I_IMAGE> ...
<D_IMAGE> ...
<I_ATTACH> ...
<D_ATTACH> ...
<I_REFERENCE> ...
<D_REFERENCE> ...
<I_TABLE_CELL> ...
<D_TABLE_CELL> ...
<I_HEADER_END> ...
<D_HEADER_END> ...
at org.wikimodel.wem.xwiki.XWikiParser.parse(XWikiParser.java:45)
at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:93)
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5626)
at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5618)
at com.xpn.xwiki.doc.XWikiDocument.getXDOM(XWikiDocument.java:5534)
at
com.xpn.xwiki.doc.XWikiDocument.getDefaultEditMode(XWikiDocument.java:4404)
at com.xpn.xwiki.api.Document.getDefaultEditMode(Document.java:1595)
at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1697)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1618)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1642)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
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.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.wikimodel.wem.xwiki.javacc.ParseException: Encountered "
<D_BLOCK_PARAMS> "\n(% class=\"western\" lang=\"de-AT\"
style=\"MARGIN-BOTTOM: 0.35cm\" %) "" at line 7, column 1.
Was expecting one of:
<I_HEADER_END> ...
<I_TABLE_CELL> ...
<I_REFERENCE> ...
<I_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<I_MACRO_START> ...
<I_FORMAT_SYMBOL> ...
<I_IMAGE> ...
<I_ATTACH> ...
<I_BR> ...
<I_INLINE_PARAMS> ...
<I_XWIKI_URI> ...
<I_XWIKI_SPACE> ...
<I_WORD> ...
<I_SPECIAL_SYMBOL> ...
<D_HEADER_END> ...
<D_TABLE_CELL> ...
<D_REFERENCE> ...
<D_VERBATIM_START> ...
<D_MACRO_EMPTY> ...
<D_MACRO_START> ...
<D_FORMAT_SYMBOL> ...
<D_IMAGE> ...
<D_ATTACH> ...
<D_BR> ...
<D_INLINE_PARAMS> ...
<D_XWIKI_URI> ...
<D_XWIKI_SPACE> ...
<D_WORD> ...
<D_SPECIAL_SYMBOL> ...
<I_INLINE_PARAMS> ...
<D_INLINE_PARAMS> ...
<I_WORD> ...
<D_WORD> ...
<I_XWIKI_SPACE> ...
<D_XWIKI_SPACE> ...
<I_SPECIAL_SYMBOL> ...
<D_SPECIAL_SYMBOL> ...
<I_FORMAT_SYMBOL> ...
<D_FORMAT_SYMBOL> ...
<I_VERBATIM_START> ...
<D_VERBATIM_START> ...
<I_MACRO_EMPTY> ...
<D_MACRO_EMPTY> ...
<I_MACRO_START> ...
<D_MACRO_START> ...
<I_BR> ...
<D_BR> ...
<I_XWIKI_URI> ...
<D_XWIKI_URI> ...
<I_IMAGE> ...
<D_IMAGE> ...
<I_ATTACH> ...
<D_ATTACH> ...
<I_REFERENCE> ...
<D_REFERENCE> ...
<I_TABLE_CELL> ...
<D_TABLE_CELL> ...
<I_HEADER_END> ...
<D_HEADER_END> ...
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.generateParseException(XWikiScanner.java:3430)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.jj_consume_token(XWikiScanner.java:3306)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.block(XWikiScanner.java:1533)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.tableRow(XWikiScanner.java:964)
at org.wikimodel.wem.xwiki.javacc.XWikiScanner.table(XWikiScanner.java:923)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.docElements(XWikiScanner.java:662)
at
org.wikimodel.wem.xwiki.javacc.XWikiScanner.doParse(XWikiScanner.java:641)
at org.wikimodel.wem.xwiki.javacc.XWikiScanner.parse(XWikiScanner.java:49)
at org.wikimodel.wem.xwiki.XWikiParser.parse(XWikiParser.java:43)
... 101 more
-----
semantic-web.hel.at
hel(a)hel.at
--
View this message in context: http://n2.nabble.com/XWiki-2-0-1-problem-after-update-tp3857463p3857463.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
This wiki will be used to demo a community project planning application I am
developing on the XWiki platform as a senior project for my B.S. in Computer
Science
Admin: jkeastburn
Domain Name: communityforum
Thanks!
OK I try again.
I would like to use this wiki as a personal/family
wiki/block/calendar/photo album
Login name: pulven
Domain prefix: pulven
Thanks
-Rune Hylleberg
Hi,
I will be from Nov2-Nov6 in San Francisco and in the Bay Area.
I will also be Nov 8-Nov 10 in Boston.
If there are any people that would like to meet at these times, let me know.
We could organize a meetup or I could come present XWiki in your company.
I would be a great time to exchange about how XWiki is used and what is
being done by other XWiki users.
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
I think I've just done something very silly. I upgraded to version
2.0.24043 and I then installed the corresponding xar and that's when
things went wrong! I now have the old seagull skin and I can't access
most of the admin options including the import section.
I suspect I must have accidentally imported pages from an old xar. How
can I get out this mess?
Help very gratefully received.
Hi,
I'm writing a component that accesses the XWiki data model when document
updates occur. I have a few questions, but will post distinct threads for
them. I apologize for the clutter.
I found the API for DocumentAccessBridge at
http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-core-bridge/2.0/.
My code looks like:
@Requirement
private DocumentAccessBridge _documentAccessBridge;
public void myFun(String documentName) {
String description = null;
try {
description = _documentAccessBridge.getProperty(documentName,
"Main.MyClass", "description").toString();
}
catch(Exception e) {
e.printStackTrace();
}
// ...
}
I expect this to get the description of the first object of type MyClass in
the given document, but instead I get a NoSuchMethodError for the call to
getProperty. I have xwiki-core-bridge-2.0.jar in my WEB-INF\lib directory;
why might this happen?
Thanks,
David Breeden
--
View this message in context: http://n2.nabble.com/NoSuchMethodError-for-injected-DocumentAccessBridge-tp…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello Users,
I am trying to import a 25 MB Xwiki 1.6.1 Export XAR file
into our new 2.0.1 instace.
I came trough all the memory issues and googled around but now I have ..
- MySQL max_allowed_packet set to 256M.
- Java Heap Size set to max 2G.
- No . files in the XAR
- no zro size files in the XAR
Attaching the XAR files in the Import app works.
The listing of the files therein does not ...
Error: No documents found in the selected archive
Archive is OK:
unzip -t a1.xar
No errors detected in compressed data of a1.xar.
I'm using a tomcat5.5 container, trying to import right
after restart of tomcat - so full memory for me ...,
no errors in the logs anymore, but still "No documents found...." message.
Any hints?
Thanks in advance
Matt
Hi experts,
I'm now planning a system that will store 15,000,000+ items of
structured data and provide a basic CRUD functionality for them.
While XWiki is the first condidate for me for the time being, I'm
worried about if XWiki can manage such a large amount of data.
Can anyone say the largest XWiki systems?
Also, I'd also like to know what kinds of considerations are needed to
build a large XWiki system.
Which database is recommended? MySQL is ok? Is it a good idea to
manually apply MySQL's partitioned table feature to large tables? And
others...
Any suggestion would be greatly appreciated.
Thanks in advance,
ebi
Hi all,
I've installed the multi page export on my wiki farm, finished the install page ... and added the jar. The WebHome looks quite fine; however the search doesn't return anything.
I am running xem 2.0.1.1, the wiki pages are based on 2.0.1.
Thanks
mb
Hi Ludovic,
I've imported the ToDo macro into one of my wikis, part of a path based wiki farm.
It fails: "Unknown macro: todo " / "The "todo" macro is not in the list of registered macros. Verify the spelling or contact your administrator."
Are there any restrictions / additional hints running it in a farm?
I am running xwiki 2.0.1, xem 2.0.1.1
Thanks
mb
Hi,
We have published the Meeting Manager application which has been
sponsored by "Groupe Glon".
The meeting manager is an XWiki 2.0 application which allows to plan and
manage meetings and meeting cycles. It's a very nice and complete
application.
You can plan your meeting by setting an agenda, adding participants and
propose a vote for meeting dates (a little like Doodle). You can then
write your meeting notes.
You can download the Meeting manager application here:
http://code.xwiki.org/xwiki/bin/view/Applications/MeetingManagerApplication
For developers, the source code is available here:
http://svn.xwiki.org/svnroot/xwiki/sandbox/applications/xwiki-application-m…
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost