Re: [xwiki-users] watchlist daily notifier doesn't work

2010-11-09 Thread ccoreggioli

Hi Jean-Vincent,

it seems that, cleaning the bad objects, the error that i found in my logs
is a very little different. here's what i get now:

com.xpn.xwiki.XWikiException: Error number 3205 in 3: Version 7.1 does not
exist while reading document Technical Experience Center.X6 miglioramento
eliche girapacchetto versione in acciaio Test Specification
at
com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:220)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1491)
at
com.xpn.xwiki.plugin.watchlist.WatchListEvent.getPreviousVersion(WatchListEvent.java:386)
at
com.xpn.xwiki.plugin.watchlist.WatchListEvent.getHTMLDiff(WatchListEvent.java:531)
at sun.reflect.GeneratedMethodAccessor673.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.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.context.ProxyVMContext.get(ProxyVMContext.java:222)
at
org.apache.velocity.runtime.parser.node.ASTReference.getVariableValue(ASTReference.java:829)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:212)
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.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.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:196)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:806)
at
com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:133)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262)
at
com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
2010-11-09 15:15:13,267 [DefaultQuartzScheduler_Worker-9] ERROR
watchlist.WatchListPlugin   - Exception while running job
java.lang.NullPointerException
at
com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:84)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262)
at
com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
java.lang.NullPointerException
at
com.xpn.xwiki.plugin.watchlist.WatchListNotifier.sendEmailNotification(WatchListNotifier.java:84)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:262)
at
com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)


so it seems that the document "Technical Experience Center.X6 miglioramento
eliche girapacchetto versione in acciaio Test Specification" doesn't exists,
but it's not true, it exists and it's loadable from xwiki. version 7.1 too. 

i add that we swiched to XE2.5.321

Re: [xwiki-users] How to add a Dialog Box similar to Add New User Dialog using groovy or velocity

2010-11-09 Thread Raluca Stavro
Hello,

On Wed, Nov 10, 2010 at 5:52 AM, Abel Solórzano Astorga
 wrote:
> Hi All,
>
> I want to show a dialog window similar to the one that is shown when you
> want to add a user. A "Registration" window is shown. I was looking for
> documentation on how to do that but I couldn't find it. So I used the Modal
> Box component. But I want to keep the consistency on the look of my xwiki
> site. Could somebody point me some documentation on how to add a dialog
> window similar to the one that is shown when you want to add a user? I want
> to show the dialog window using groovy or velocity code, if possible.

You can use the ModalBox application:
http://code.xwiki.org/xwiki/bin/view/Applications/ModalBoxApplication
.

Raluca.

>
> Regards,
>
> Abel
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to add a Dialog Box similar to Add New User Dialog using groovy or velocity

2010-11-09 Thread Abel Solórzano Astorga
Hi All,

I want to show a dialog window similar to the one that is shown when you
want to add a user. A "Registration" window is shown. I was looking for
documentation on how to do that but I couldn't find it. So I used the Modal
Box component. But I want to keep the consistency on the look of my xwiki
site. Could somebody point me some documentation on how to add a dialog
window similar to the one that is shown when you want to add a user? I want
to show the dialog window using groovy or velocity code, if possible.

Regards,

Abel
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Heap memory errors when exporting workspace

2010-11-09 Thread Caleb James DeLisle
Attachments are currently stored in the database in a VARBINARY field called 
called XWA_CONTENT in a
table called xwikiattachment_content.

Caleb

On 11/09/2010 08:12 AM, Ziggy wrote:
> Ok one final silly question.
> Where or how are attachements saved?
> 
> 
> On Sun, Nov 7, 2010 at 6:38 PM, Ziggy  wrote:
> 
>> Thank you Sergiu.
>> You have been most helpfull.
>>
>>
>>
>> On Sun, Nov 7, 2010 at 6:33 PM, Sergiu Dumitriu  wrote:
>>
>>> On 11/07/2010 07:06 PM, Ziggy wrote:
 Hi Sergiu,

 I have not made any changes via the filesystems. All changes i have made
>>> are
 via the xwiki itself.  As an example,  i have edited and updated the
 "shortcuts" and "quick links" panels.

 Do you mean that any change that is done via the xwiki system is stored
>>> in
 the database and not on teh filesystem?  Does this mean that exporting
>>> and
 re-importing the database would restore the changes i made to the panels
>>> as
 well?

>>>
>>> Yes, and yes.
>>>


 On Sun, Nov 7, 2010 at 5:59 PM, Sergiu Dumitriu
>>>  wrote:

> On 11/07/2010 06:47 PM, Ziggy wrote:
>> What happens to any macros or stylesheets that i made changes to? Are
> these
>> not stored as static files in the $WEBAPPS/xwiki folder?
>>
>> Are there any files that are stored in the webapps/xwiki folder that
>>> need
> to
>> be backed up as well? Or is backing the database sufficient for a full
>> restore?
>
> If you made changes to files on the filesystem, then you must take care
> of manually migrating those changes into the new version. This is why
>>> it
> is not recommended to touch the filesystem files, but to override them
> inside the wiki. Most templates can be overridden by attaching the
> modified versions to the skin document (XWiki.DefaultSkin by default).
>
>>
>> On Sun, Nov 7, 2010 at 5:31 PM, Sergiu Dumitriu
>   wrote:
>>
>>> On 11/07/2010 06:05 PM, Ziggy wrote:
 Hi Sergiu,

 I am trying to upgrade from 2.4 to 2.5.1

 Usually i export my workspace as a xar and then recreate everything
>>> by
 refreshing the mysql and tomcat installation. I do also get an
>>> export
>>> dump
 of the database for backup.

 I use the xar file to re-import the workspace back after
>>> re-installing
 tomcat and mysql. This gives me a fresh install.

 This time it is failing as it has probably become very large. I know
> that
>>> i
 can upgrade by just replacing the $TOMCAT/webapps/xwiki folder with
>>> the
>>> new
 war file but i am trying to get a clean installation and the xar
>>> export
>>> acts
 as a backup of the tomcat resources (jsps, css, javascript etc) as
> well.

 If i try the following will it it work?

 - Export the database using mysqldump
 - Re-install mysql
 - Re-install Tomcat
 - Re-import the database data
 - Re-install the 2.5 xwiki war file

 Using the above steps, would i be backing up everything in the wiki?
> This
>>> is
 where i get slightly confused. When i export as a xar file, what
> exactly
>>> am
 i exporting? is it just the contents of the database or does it
>>> include
>>> any
 jsp changes, css, javascript files etc.
>>>
>>> Only the contents of the database, this is why it's more efficient to
>>> just do the transfer at the database level. XAR export+import is
>>> useful
>>> when migrating between different systems.
>>>
 Thanks



 On Sun, Nov 7, 2010 at 4:50 PM, Sergiu Dumitriu
>>>wrote:

> On 11/07/2010 03:54 PM, Ziggy wrote:
>> Hi guys,
>>
>> I am trying to export my xwiki workspace so but every time i try
>>> it i
>>> get
>> the following error
>>
>> java.lang.OutOfMemoryError: Java heap space
>> at java.util.Arrays.copyOf(Arrays.java:2882)
>> at
>>
>
>>>
>
>>> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
>> at
>>
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
>> at java.lang.StringBuffer.append(StringBuffer.java:224)
>> at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719)
>> at
>>> org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
>>
>>
>> I know this is an error where the JVM has not enough memory. My
>>> JVM
> memory
>> settings are set as follows
>>
>> set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8
>>> -Duser.timezone=GMT
>> -Xmx1024m -XX:MaxPermSize=1024m"
>>
>> Everytime i try to increase it to anything

[xwiki-users] New releases

2010-11-09 Thread Ziggy
You guys are moving too fast for me.

I was busy trying to install release 2.5 and now i find out release 2.6 RC1
is already out.

I bet release 2.6 GA will be available when i finish installing release 2.5?
:)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Heap memory errors when exporting workspace

2010-11-09 Thread Ziggy
Ok one final silly question.
Where or how are attachements saved?


On Sun, Nov 7, 2010 at 6:38 PM, Ziggy  wrote:

> Thank you Sergiu.
> You have been most helpfull.
>
>
>
> On Sun, Nov 7, 2010 at 6:33 PM, Sergiu Dumitriu  wrote:
>
>> On 11/07/2010 07:06 PM, Ziggy wrote:
>> > Hi Sergiu,
>> >
>> > I have not made any changes via the filesystems. All changes i have made
>> are
>> > via the xwiki itself.  As an example,  i have edited and updated the
>> > "shortcuts" and "quick links" panels.
>> >
>> > Do you mean that any change that is done via the xwiki system is stored
>> in
>> > the database and not on teh filesystem?  Does this mean that exporting
>> and
>> > re-importing the database would restore the changes i made to the panels
>> as
>> > well?
>> >
>>
>> Yes, and yes.
>>
>> >
>> >
>> > On Sun, Nov 7, 2010 at 5:59 PM, Sergiu Dumitriu
>>  wrote:
>> >
>> >> On 11/07/2010 06:47 PM, Ziggy wrote:
>> >>> What happens to any macros or stylesheets that i made changes to? Are
>> >> these
>> >>> not stored as static files in the $WEBAPPS/xwiki folder?
>> >>>
>> >>> Are there any files that are stored in the webapps/xwiki folder that
>> need
>> >> to
>> >>> be backed up as well? Or is backing the database sufficient for a full
>> >>> restore?
>> >>
>> >> If you made changes to files on the filesystem, then you must take care
>> >> of manually migrating those changes into the new version. This is why
>> it
>> >> is not recommended to touch the filesystem files, but to override them
>> >> inside the wiki. Most templates can be overridden by attaching the
>> >> modified versions to the skin document (XWiki.DefaultSkin by default).
>> >>
>> >>>
>> >>> On Sun, Nov 7, 2010 at 5:31 PM, Sergiu Dumitriu
>> >>   wrote:
>> >>>
>>  On 11/07/2010 06:05 PM, Ziggy wrote:
>> > Hi Sergiu,
>> >
>> > I am trying to upgrade from 2.4 to 2.5.1
>> >
>> > Usually i export my workspace as a xar and then recreate everything
>> by
>> > refreshing the mysql and tomcat installation. I do also get an
>> export
>>  dump
>> > of the database for backup.
>> >
>> > I use the xar file to re-import the workspace back after
>> re-installing
>> > tomcat and mysql. This gives me a fresh install.
>> >
>> > This time it is failing as it has probably become very large. I know
>> >> that
>>  i
>> > can upgrade by just replacing the $TOMCAT/webapps/xwiki folder with
>> the
>>  new
>> > war file but i am trying to get a clean installation and the xar
>> export
>>  acts
>> > as a backup of the tomcat resources (jsps, css, javascript etc) as
>> >> well.
>> >
>> > If i try the following will it it work?
>> >
>> > - Export the database using mysqldump
>> > - Re-install mysql
>> > - Re-install Tomcat
>> > - Re-import the database data
>> > - Re-install the 2.5 xwiki war file
>> >
>> > Using the above steps, would i be backing up everything in the wiki?
>> >> This
>>  is
>> > where i get slightly confused. When i export as a xar file, what
>> >> exactly
>>  am
>> > i exporting? is it just the contents of the database or does it
>> include
>>  any
>> > jsp changes, css, javascript files etc.
>> 
>>  Only the contents of the database, this is why it's more efficient to
>>  just do the transfer at the database level. XAR export+import is
>> useful
>>  when migrating between different systems.
>> 
>> > Thanks
>> >
>> >
>> >
>> > On Sun, Nov 7, 2010 at 4:50 PM, Sergiu Dumitriu
>> wrote:
>> >
>> >> On 11/07/2010 03:54 PM, Ziggy wrote:
>> >>> Hi guys,
>> >>>
>> >>> I am trying to export my xwiki workspace so but every time i try
>> it i
>>  get
>> >>> the following error
>> >>>
>> >>> java.lang.OutOfMemoryError: Java heap space
>> >>> at java.util.Arrays.copyOf(Arrays.java:2882)
>> >>> at
>> >>>
>> >>
>> 
>> >>
>> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
>> >>> at
>> >>>
>> >> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
>> >>> at java.lang.StringBuffer.append(StringBuffer.java:224)
>> >>> at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719)
>> >>> at
>> org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
>> >>>
>> >>>
>> >>> I know this is an error where the JVM has not enough memory. My
>> JVM
>> >> memory
>> >>> settings are set as follows
>> >>>
>> >>> set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8
>> -Duser.timezone=GMT
>> >>> -Xmx1024m -XX:MaxPermSize=1024m"
>> >>>
>> >>> Everytime i try to increase it to anything above the above values
>>  Tomact
>> >>> does not startup. Any clues as to how i can fix this?
>> >>>
>> >>> I am running xwiki on the following environment
>> >>>
>> >>> Tomcat 6.0.29
>> >>> Xwiki 

Re: [xwiki-users] New releases

2010-11-09 Thread Vincent Massol

On Nov 9, 2010, at 2:14 PM, Ziggy wrote:

> You guys are moving too fast for me.
> 
> I was busy trying to install release 2.5 and now i find out release 2.6 RC1
> is already out.

Just note that you don't have to. Also always make sure you read the release 
notes. There are known issues in 2.6RC1.

> I bet release 2.6 GA will be available when i finish installing release 2.5?

See http://enterprise.xwiki.org/xwiki/bin/view/Main/Roadmap
We have delayed 2.6RC2 to the 11th.

Thanks
-Vincent

> :)

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Activity macro and macros bundled with XWiki

2010-11-09 Thread Arnaud bourree
2010/11/9 Ecaterina Moraru (Valica) :
> The Activity Macro is bundled with XWiki 2.6RC1

Thanks.

I saw that you add comment to macro page.
But IMO that should be better to provide information in top right box
something like
>This is a XWiki macro, bundled with all the XWiki products by default since 
>2.6RC1.
>Macro developed by the XWiki Development Team.
>This macro cannot currently be downloaded separately.

Arnaud.

>
> On Tue, Nov 9, 2010 at 11:28, Arnaud bourree wrote:
>
>> Hello,
>>
>> I try to test Activity macro in my Wiki (XWiki 2.5) with the provided
>> sample:
>> {{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
>> and also
>> {{velocity}}
>> {{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
>> {{/velocity}}
>>
>> Test page returns:
>> > Unknown macro: recentactivity
>> > The "recentactivity" macro is not in the list of registered macros.
>> Verify the spelling or contact your administrator.
>>
>> So my questions are:
>> 1- Since which XWiki version Activity macro is bundled within XWiki?
>> 2- Could we update all pages of macros bundled with XWiki with the
>> minimal XWiki version there are bundled with or at least the last
>> XWiki version we made significant update on?
>>
>> Regards,
>>
>> Arnaud.
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Activity macro and macros bundled with XWiki

2010-11-09 Thread Ecaterina Moraru (Valica)
The Activity Macro is bundled with XWiki 2.6RC1

On Tue, Nov 9, 2010 at 11:28, Arnaud bourree wrote:

> Hello,
>
> I try to test Activity macro in my Wiki (XWiki 2.5) with the provided
> sample:
> {{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
> and also
> {{velocity}}
> {{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
> {{/velocity}}
>
> Test page returns:
> > Unknown macro: recentactivity
> > The "recentactivity" macro is not in the list of registered macros.
> Verify the spelling or contact your administrator.
>
> So my questions are:
> 1- Since which XWiki version Activity macro is bundled within XWiki?
> 2- Could we update all pages of macros bundled with XWiki with the
> minimal XWiki version there are bundled with or at least the last
> XWiki version we made significant update on?
>
> Regards,
>
> Arnaud.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Activity macro and macros bundled with XWiki

2010-11-09 Thread Arnaud bourree
Hello,

I try to test Activity macro in my Wiki (XWiki 2.5) with the provided sample:
{{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
and also
{{velocity}}
{{recentactivity space="$doc.space" author="XWiki.Admin" tag="xwiki" /}}
{{/velocity}}

Test page returns:
> Unknown macro: recentactivity
> The "recentactivity" macro is not in the list of registered macros. Verify 
> the spelling or contact your administrator.

So my questions are:
1- Since which XWiki version Activity macro is bundled within XWiki?
2- Could we update all pages of macros bundled with XWiki with the
minimal XWiki version there are bundled with or at least the last
XWiki version we made significant update on?

Regards,

Arnaud.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem with search textfield

2010-11-09 Thread Werner Greßhoff
Hi Ricardo,

I'v installed XEM 2.4.30467 and tested in XEM 2.5 as well. And yes,
colibri is the skin.
We're using a path based farm and, as I said, the main wiki is ok,
it's just thevirtual wikis with the problems. Perhaps I've misconfigured
the Apache server running in front of Tomcat?!
The browser is Firefox (Linux and Windows) but other browsers don't work
as well. What I'm just observing is, before I log in the click in the
search field works as expected! That's excluding Apache misconfiguration
but perhaps it's a rights problem? Already observed that when we changed
the colours...

Best wishes and thanks for the help

Werner

Am 04.11.2010 20:52, schrieb [Ricardo Rodriguez] eBioTIC.:
> Hi!
>
> Werner Greßhoff wrote:
>> Hello,
>>
>> I've installed a wiki farm and observed a minor problem:
>>
>> in the main wiki, when I click in the standard search textfield, the
>> text ("search...") vanishes. In my virtual wikis it doesn't.
>>
>> This is the tag (absolutely identical):
>>
>> > name="text" value="search..." size="15" type="text">
>>
>> The text field from the panel is working fine (everywhere).
>>
>>
>
> I guess you are using colibri as skin. Please, what XE/XEM release are
> you using?
>
> I'm only have a XE/XEM 2.4.30451 here and can't reproduce the error
> (Firefox, Safari and OmniWeb on Mac OS X 10.5 and 10.6 here)
>
> Same tag:
>
>  id="headerglobalsearchinput" class="globalsearchinput withTip">
>
> Cheers,
>
> Ricardo
>

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users