Re: [xwiki-users] WritingComponents, First Try

2009-02-17 Thread Hervé Agnoux
Le mardi 17 février 2009, Jerome Velociter a écrit :

 Right, 1.5-SNAPSHOT was the latest snapshot version at the moment the
 tutorial has been written. AFAIK our policy is to keep snapshot versions
 on the maven repository for trunk + the latest branch, being currently
 1.7 and 1.8 for the platform (would be too disk-hungry to keep them
 all). So 1.5-SNAPSHOT is definitely not available any longer. You can
 depend on more recent snapshots, like 1.7-SNAPSHOT or 1.8-SNAPSHOT. You
 can always check what snapshots are available visiting
 http://maven.xwiki.org

 The alternative is you depend on a released version. That's probably a
 better practice for components developed out of the XWiki project, since
 you can rely on the fact the artifacts behavior are not going to change
 without you noticing :) Recent released versions are 1.7.1 (stable
 branch) and 1.8-milestone-2 (bleeding edge).


Thanks. But nothing work.


I try 1.7.1, I get :

[INFO] Scanning for projects...
[INFO] 

[INFO] Building Unnamed - 
monGroupeID:monComponentArtifactID:jar:maComponentVersion
[INFO]task-segment: [install]   
   
[INFO] 

[INFO] [resources:resources]
   
[INFO] Using default encoding to copy filtered resources.   
   
Downloading: http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-
component/1.7.1/xwiki-core-component-1.7.1.pom
Downloading: http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-
component/1.7.1/xwiki-core-component-1.7.1.jar
[INFO] 


[ERROR] BUILD ERROR 
   
[INFO] 


[INFO] Failed to resolve artifact.  
   

Missing:
--
1) org.xwiki.platform:xwiki-core-component:jar:1.7.1



== With 1.8-milestone-2 and 1.7-SNAPSHOT :

Missing:
--
1) org.xwiki.platform:xwiki-core-component:jar:1.8-milestone-2

Missing:
--
1) org.xwiki.platform:xwiki-core-component:jar:1.7-SNAPSHOT



== In Guest Star a special case with 1.8-SNAPSHOT :

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error building POM (may not be this project's POM).


Project ID: org.xwiki.platform:xwiki-core-component:jar:null

Reason: Cannot find parent: com.xpn.xwiki.platform:xwiki-core-parent for 
project: org.xwiki.platform:xwiki-core-component:jar:null for project 
org.xwiki.platform:xwiki-core-component:jar:null


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


[xwiki-users] Problem with setting space rights from Velocity

2009-02-17 Thread grinko
Hello folks,

I have some troubles setting space rights from Velocity and can't find any
examples for it.

This code should generate new XWikiGlobalRights objects for each user.
However, adding them to the Space.WebHome page doesn't work, and adding them
to the Space.WebPreferences page (like the Set Rights page does) fails (the
objects are not generated).

Can someone give me a hint whats wrong here?

#foreach($newuser in $projectuserlist)
#set ($myspace = $xwiki.getDocument(${projectname}.WebPreferences))
#set ($rightsObject = $myspace.newObject(XWiki.XWikiGlobalRights))
#set ($result = $rightsObject.set(levels, view,edit))
#set ($result = $rightsObject.set(users, $newuser))
##set ($result = $rightsObject.set(allow, 1))
$mydoc.save()
#end


Thanks for any help in advance!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] WritingComponents, First Try

2009-02-17 Thread Sergiu Dumitriu
Hervé Agnoux wrote:
 Le mardi 17 février 2009, Jerome Velociter a écrit :
 Right, 1.5-SNAPSHOT was the latest snapshot version at the moment the
 tutorial has been written. AFAIK our policy is to keep snapshot versions
 on the maven repository for trunk + the latest branch, being currently
 1.7 and 1.8 for the platform (would be too disk-hungry to keep them
 all). So 1.5-SNAPSHOT is definitely not available any longer. You can
 depend on more recent snapshots, like 1.7-SNAPSHOT or 1.8-SNAPSHOT. You
 can always check what snapshots are available visiting
 http://maven.xwiki.org

 The alternative is you depend on a released version. That's probably a
 better practice for components developed out of the XWiki project, since
 you can rely on the fact the artifacts behavior are not going to change
 without you noticing :) Recent released versions are 1.7.1 (stable
 branch) and 1.8-milestone-2 (bleeding edge).

 
 Thanks. But nothing work.
 
 
 I try 1.7.1, I get :
 
 [INFO] Scanning for projects...
 [INFO] 
 
 [INFO] Building Unnamed - 
 monGroupeID:monComponentArtifactID:jar:maComponentVersion
 [INFO]task-segment: [install] 
  
 [INFO] 
 
 [INFO] [resources:resources]  
  
 [INFO] Using default encoding to copy filtered resources. 
  
 Downloading: http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-
 component/1.7.1/xwiki-core-component-1.7.1.pom
 Downloading: http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-
 component/1.7.1/xwiki-core-component-1.7.1.jar
 [INFO] 
   
   
 [ERROR] BUILD ERROR   
  
 [INFO] 
   
   
 [INFO] Failed to resolve artifact.
  
 
 Missing:
 --
 1) org.xwiki.platform:xwiki-core-component:jar:1.7.1
 


Please note that before building components, you must read and follow
the requirements specified at
http://dev.xwiki.org/xwiki/bin/view/Community/Building and especially
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
(note the recommended maven version and the required settings.xml). From
 the build log, I see that your maven instance does not know about the
XWiki repositories, so it is normal that it doesn't find any xwiki
modules.

 
 == With 1.8-milestone-2 and 1.7-SNAPSHOT :
 
 Missing:
 --
 1) org.xwiki.platform:xwiki-core-component:jar:1.8-milestone-2
 
 Missing:
 --
 1) org.xwiki.platform:xwiki-core-component:jar:1.7-SNAPSHOT
 
 
 
 == In Guest Star a special case with 1.8-SNAPSHOT :
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).



-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem with setting space rights from Velocity

2009-02-17 Thread Sergiu Dumitriu
grinko wrote:
 Hello folks,
 
 I have some troubles setting space rights from Velocity and can't find any
 examples for it.
 
 This code should generate new XWikiGlobalRights objects for each user.
 However, adding them to the Space.WebHome page doesn't work, and adding them
 to the Space.WebPreferences page (like the Set Rights page does) fails (the
 objects are not generated).
 
 Can someone give me a hint whats wrong here?
 
 #foreach($newuser in $projectuserlist)
 #set ($myspace = $xwiki.getDocument(${projectname}.WebPreferences))
 #set ($rightsObject = $myspace.newObject(XWiki.XWikiGlobalRights))
 #set ($result = $rightsObject.set(levels, view,edit))
 #set ($result = $rightsObject.set(users, $newuser))
 ##set ($result = $rightsObject.set(allow, 1))
 $mydoc.save()

Who is $mydoc? :)
Try $myspace.save(), and it should work just fine.

 #end



-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem with setting space rights from Velocity

2009-02-17 Thread Jean Couteau
Hi,
 #foreach($newuser in $projectuserlist)
 #set ($myspace = $xwiki.getDocument(${projectname}.WebPreferences))
 #set ($rightsObject = $myspace.newObject(XWiki.XWikiGlobalRights))
   
I would use

#set ($rightsObject = $myspace.createNewObject(XWiki.XWikiGlobalRights))

 #set ($result = $rightsObject.set(levels, view,edit))
 #set ($result = $rightsObject.set(users, $newuser))
 ##set ($result = $rightsObject.set(allow, 1))
 $mydoc.save()
 #end
   

Hope this helps

Jean


-- 

Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28 

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


[xwiki-users] hibernate query question

2009-02-17 Thread Sebastian Kannengiesser
Hi guys,

what is wrong here:

--snip--
select prop.value from BaseObject as obj, StringProperty as prop,
StringProperty as prop2, where
obj.className='XWiki.ServicesReviewerClass' and prop.id.id=obj.id and
prop2.id.id=obj.id and prop.id.name='name' and
prop2.id.name='externintern' and prop2.value='intern' order by
prop.value
--snap--

I'm using this for a database list field in a class. I want to list
all objects by the name property, but only those, where  property
externintern is set to extern (static list).

Many thanx in advance.

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


Re: [xwiki-users] hibernate query question

2009-02-17 Thread Sebastian Kannengiesser
The error comes from somewhere else in my class I think, as I took out
the prop2 condition things and it still does not work. Would be nice,
if you could tell me anyways, if the statement is correct for what I
plan to do.
Thanx

Cheers
Sebastian

On Tue, Feb 17, 2009 at 12:29 PM, Sebastian Kannengiesser
sebastian.kannengies...@gmail.com wrote:
 Hi guys,

 what is wrong here:

 --snip--
 select prop.value from BaseObject as obj, StringProperty as prop,
 StringProperty as prop2, where
 obj.className='XWiki.ServicesReviewerClass' and prop.id.id=obj.id and
 prop2.id.id=obj.id and prop.id.name='name' and
 prop2.id.name='externintern' and prop2.value='intern' order by
 prop.value
 --snap--

 I'm using this for a database list field in a class. I want to list
 all objects by the name property, but only those, where  property
 externintern is set to extern (static list).

 Many thanx in advance.

 Cheers
 Sebastian

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


[xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Ajdin Brandic
To myxwiki admin people

Can someone reinstate/flush my progtramming rights, username:
ajdinbrandic

I had programming rights set up by Vincent for
myxwiki.patternlanguagenetwork.org.  Due to issues with upgrade I lost
all rights.  Now my admin rights have been reinstated but yesterday I
added a new panel  'Panels.TagCloud' and it only works on Main/Tags
page.  The code uses code which requires programming rights.

Thanks

Ajdin
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Vincent Massol
Hi Ajdin,

On Feb 17, 2009, at 12:51 PM, Ajdin Brandic wrote:

 To myxwiki admin people

 Can someone reinstate/flush my progtramming rights, username:
 ajdinbrandic

 I had programming rights set up by Vincent for
 myxwiki.patternlanguagenetwork.org.  Due to issues with upgrade I lost
 all rights.  Now my admin rights have been reinstated but yesterday I
 added a new panel  'Panels.TagCloud' and it only works on Main/Tags
 page.  The code uses code which requires programming rights.

I've checked and you still have programming rights with your user from  
myxwiki.org. Are you sure you're logging with the correct user?

In the meantime I have save the TagCloud page with my user.

Thanks
-Vincent
http://xwiki.com
http://xwiki.org
http://massol.net






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


Re: [xwiki-users] Panel Wizard doesn't show it

2009-02-17 Thread Antonio Goncalves
Thanks Vincent. I've installed the new Panel application (
http://code.xwiki.org/xwiki/bin/view/Applications/PanelsApplicationDownloads)
and it works fine.
Antonio

2009/2/13 Vincent Massol vinc...@massol.net

 Hi Antonio,

 On Feb 8, 2009, at 10:32 AM, Antonio Goncalves wrote:

  Yes Vincent, you can check by yourself on the Paris JUG website. I
  can't see
  any logs, I've tried with 3 different browsers but I've found a
  strange
  work around.
  When I am on the
  http://www.parisjug.org/xwiki/bin/admin/XWiki/XWikiPreferences page
  and that
  I click on Panel Wizard, nothing happens. But I can access the
  wizard from
  the page http://www.parisjug.org/xwiki/bin/view/XWiki/.
 
  Do you have any idea ?

 Are you sure you have upgraded the panels pages ?
 I've checked the page Panels.PanelWizard and its content looks old.

 Could you explain how you've done the last XAR upgrade?

 Can you try reimporting the Panels application that corresponds to you
 wiki version (you're on XEM 1.4.1 which means XE 1.6.2) ?
 I could do it but I don't know if you've changed any panels page so
 I'll let you do it instead.

 Thanks
 -Vincent

 
  Antonio
 
  2009/2/7 Vincent Massol vinc...@massol.net
 
  Hi Antonio,
 
  On Feb 7, 2009, at 9:07 AM, Antonio Goncalves wrote:
 
  Hi,
 
  I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard
  it just
  doesn't show up. I click on the link, but nothing happens.
 
  hmmm we need to look into this since I've heard this problem reported
  twice over one week.
 
  If you agree, I'll ask Raffaello to give me the rights to go the
  Paris
  JUG wiki and try it myself from there.
 
  Is there a way to skip the wizard and set up the panels layout
  manually like
  the previous versions of XWiki ?
 
  Yes. Just go to the wiki administration page and then select edit --
  Objects. Find the XWikiPreferences object and find the property for
  panels location and put the values you want in there.
 
  Thanks
  -Vincent
  http://xwiki.com
  http://xwiki.org
  http://massol.net
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
--
Antonio Goncalves (antonio.goncal...@gmail.com)
Software architect

Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Ajdin Brandic
It is strange.  Why is the cloud only working on Tags page and not on
any other ones.
I have v1.8 localy and works OK.  Are any other rights required?

Ajdin 

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Vincent Massol
Sent: 17 February 2009 14:39
To: XWiki Users
Subject: Re: [xwiki-users] Myxwiki Programming rights required

Hi Ajdin,

On Feb 17, 2009, at 12:51 PM, Ajdin Brandic wrote:

 To myxwiki admin people

 Can someone reinstate/flush my progtramming rights, username:
 ajdinbrandic

 I had programming rights set up by Vincent for 
 myxwiki.patternlanguagenetwork.org.  Due to issues with upgrade I lost

 all rights.  Now my admin rights have been reinstated but yesterday I 
 added a new panel  'Panels.TagCloud' and it only works on Main/Tags 
 page.  The code uses code which requires programming rights.

I've checked and you still have programming rights with your user from
myxwiki.org. Are you sure you're logging with the correct user?

In the meantime I have save the TagCloud page with my user.

Thanks
-Vincent
http://xwiki.com
http://xwiki.org
http://massol.net






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


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Jean-Vincent Drean
You should update your wiki with XE 1.8M2 xar and use the
XWiki.TagCloud page to display the cloud instead of using the
deprecated snippet which requires programming rights.

JV.

On Tue, Feb 17, 2009 at 12:51 PM, Ajdin Brandic aa6...@coventry.ac.uk wrote:
 To myxwiki admin people

 Can someone reinstate/flush my progtramming rights, username:
 ajdinbrandic

 I had programming rights set up by Vincent for
 myxwiki.patternlanguagenetwork.org.  Due to issues with upgrade I lost
 all rights.  Now my admin rights have been reinstated but yesterday I
 added a new panel  'Panels.TagCloud' and it only works on Main/Tags
 page.  The code uses code which requires programming rights.

 Thanks

 Ajdin


 

 NOTICE

 This message and any files transmitted with it is intended for the addressee 
 only and may contain information that is confidential or privileged. 
 Unauthorised use is strictly prohibited. If you are not the addressee, you 
 should not read, copy, disclose or otherwise use this message, except for the 
 purpose of delivery to the addressee.

 Any views or opinions expressed within this e-mail are those of the author 
 and do not necessarily represent those of Coventry University.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Ajdin Brandic
I was not aware of this page, any documentation?  Is this something like
this http://91.121.237.216/xwiki/bin/view/XWiki/TagCloud?viewer=code .
Or ???

Ajdin 

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Jean-Vincent Drean
Sent: 17 February 2009 15:24
To: XWiki Users
Subject: Re: [xwiki-users] Myxwiki Programming rights required

You should update your wiki with XE 1.8M2 xar and use the XWiki.TagCloud
page to display the cloud instead of using the deprecated snippet which
requires programming rights.

JV.

On Tue, Feb 17, 2009 at 12:51 PM, Ajdin Brandic aa6...@coventry.ac.uk
wrote:
 To myxwiki admin people

 Can someone reinstate/flush my progtramming rights, username:
 ajdinbrandic

 I had programming rights set up by Vincent for 
 myxwiki.patternlanguagenetwork.org.  Due to issues with upgrade I lost

 all rights.  Now my admin rights have been reinstated but yesterday I 
 added a new panel  'Panels.TagCloud' and it only works on Main/Tags 
 page.  The code uses code which requires programming rights.

 Thanks

 Ajdin


 

 NOTICE

 This message and any files transmitted with it is intended for the
addressee only and may contain information that is confidential or
privileged. Unauthorised use is strictly prohibited. If you are not the
addressee, you should not read, copy, disclose or otherwise use this
message, except for the purpose of delivery to the addressee.

 Any views or opinions expressed within this e-mail are those of the
author and do not necessarily represent those of Coventry University.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
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] Myxwiki Programming rights required

2009-02-17 Thread Ajdin Brandic
Also the tagcloud code might be old but is simple and uses two simple
queries.  Why is it deprecated snippet ?  No reason why it should work
on one page and not on another.

Ajdin 

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Ajdin Brandic
Sent: 17 February 2009 16:19
To: XWiki Users
Subject: Re: [xwiki-users] Myxwiki Programming rights required

I was not aware of this page, any documentation?  Is this something like
this http://91.121.237.216/xwiki/bin/view/XWiki/TagCloud?viewer=code .
Or ???

Ajdin 

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Jean-Vincent Drean
Sent: 17 February 2009 15:24
To: XWiki Users
Subject: Re: [xwiki-users] Myxwiki Programming rights required

You should update your wiki with XE 1.8M2 xar and use the XWiki.TagCloud
page to display the cloud instead of using the deprecated snippet which
requires programming rights.

JV.

On Tue, Feb 17, 2009 at 12:51 PM, Ajdin Brandic aa6...@coventry.ac.uk
wrote:
 To myxwiki admin people

 Can someone reinstate/flush my progtramming rights, username:
 ajdinbrandic

 I had programming rights set up by Vincent for 
 myxwiki.patternlanguagenetwork.org.  Due to issues with upgrade I lost

 all rights.  Now my admin rights have been reinstated but yesterday I 
 added a new panel  'Panels.TagCloud' and it only works on Main/Tags 
 page.  The code uses code which requires programming rights.

 Thanks

 Ajdin


 

 NOTICE

 This message and any files transmitted with it is intended for the
addressee only and may contain information that is confidential or
privileged. Unauthorised use is strictly prohibited. If you are not the
addressee, you should not read, copy, disclose or otherwise use this
message, except for the purpose of delivery to the addressee.

 Any views or opinions expressed within this e-mail are those of the
author and do not necessarily represent those of Coventry University.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
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] Hibernate bug while trying to save modifications

2009-02-17 Thread Jean Couteau
Dear all,

I found a way around this problem.

I created a class with the same fields and a groovy script that takes 
all the objects of the previous class to save them into objects from the 
second class. Replace all the references to the first class by reference 
to the second class.

I was a little worried because I had hundreds of objects, but everything 
went  fine.

Hope this can help if somebody have the same problem.

Jean Couteau a écrit :
 Hi all,

 I found a really annoying bug today, and I am really lost solving it :

 I have created an application based on xwiki, i tried it on 3 different 
 test servers, using the export import between each server. My 
 application generate a lot of pages/objects. When I use the 
 export/import between the servers, I import only the application, not 
 the data. Everything worked fine, but I imported the application on the 
 prod server friday. Since then, I can create an object. When i try 
 modify it, I have the following error and stack trace :

 A problem occured while trying to service your request. Please contact 
 the support if this happens again.

 Detailed information:

 Error number 3201 in 3: Exception while saving document 
 Project.0,0,0,3,0
 Wrapped Exception: Row was updated or deleted by another transaction (or 
 unsaved-value mapping was incorrect): [com.xpn.xwiki.objects.LongProperty#


 ]
 com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving 
 document Project.0,0,0,3,0
 Wrapped Exception: Row was updated or deleted by another transaction (or 
 unsaved-value mapping was incorrect): [com.xpn.xwiki.objects.LongProperty#


 ]
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:570)
   at 
 com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:131)
   at 
 com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:124)
   at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1268)
   at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:173)
   at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:190)
   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
   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:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
   at 
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
   at 
 org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:619)


 Wrapped Exception:

 org.hibernate.StaleObjectStateException: Row was updated or deleted by 
 another transaction (or unsaved-value mapping was incorrect): 
 [com.xpn.xwiki.objects.LongProperty#


 ]
   at 
 

Re: [xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Jean-Vincent Drean
On Tue, Feb 17, 2009 at 5:48 PM, Ajdin Brandic aa6...@coventry.ac.uk wrote:
 Also the tagcloud code might be old but is simple and uses two simple
 queries.  Why is it deprecated snippet ?

It is deprecated since there's now a tag plugin that allows to manipulate tags :
 - without requiring programming rights
 - without knowledge of the storage implementation

http://code.xwiki.org/xwiki/bin/view/Plugins/TagPlugin

 No reason why it should work
 on one page and not on another.


You're right the snippet should not work on one page and not on
another but it is related to a known core bug.

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


Re: [xwiki-users] Myxwiki Programming rights required

2009-02-17 Thread Ajdin Brandic
HI


 Also the tagcloud code might be old but is simple and uses two simple

 queries.  Why is it deprecated snippet ?

It is deprecated since there's now a tag plugin that allows to
manipulate tags :
 - without requiring programming rights
 - without knowledge of the storage implementation

http://code.xwiki.org/xwiki/bin/view/Plugins/TagPlugin
Thank you!

 No reason why it should work
 on one page and not on another.


You're right the snippet should not work on one page and not on another
but it is related to a known core bug.

Ok, all clear now.

Thanks
Ajdin
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Search broken after moving xwiki

2009-02-17 Thread Samuel Lee
I moved our XWiki to another instance.  Everything moved over  
correctly, but the search function seems to be broken.

When I search for something, I get:

Notice

The requested document could not be found.
You can edit this page to create it.

Any ideas?

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


Re: [xwiki-users] Search broken after moving xwiki

2009-02-17 Thread Guillaume Lerouge
Looks like you did not import the search page itself properly.

Try importing your XAR again, unchecking everything then specifically check
Main.WebSearch and Main.LuceneSearch and click import.

This will hopefully fix your issue.

Guillaume

On Tue, Feb 17, 2009 at 11:18 PM, Samuel Lee sam...@ncmir.ucsd.edu wrote:

 I moved our XWiki to another instance.  Everything moved over
 correctly, but the search function seems to be broken.

 When I search for something, I get:

 Notice

 The requested document could not be found.
 You can edit this page to create it.

 Any ideas?

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




-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users