Re: [xwiki-users] How to list the subspace under the space?

2010-05-25 Thread Guillaume Lerouge
Hi,

On Mon, May 24, 2010 at 21:17, Nithya Vembu nithu...@gmail.com wrote:


 Hi All,

  Currently i am working in xwiki and facing some issues which i am not able
 to solve. I want to create a tree structure for the space and subspace and
 the pages inside it.

  Eg : I am creating

   Space Name : HelloMajor, Parent : nothing (by default it takes WebHome)
   Page Name   : HelloMajorPage1   : Parent : HelloMajor
   Page Name   : HelloMajorPage2   : Parent : HelloMajorPage1

   If i use document tree its displaying like

HelloMajor
 |___ HelloMajorPage1
  |HelloMajorPage2

   Another space creation : HelloMinor; Parent : HelloMajor.WebHome
   Page Name : HelloMinorPage   Parent : HelloMinor
   Now i want to display the tree structure like this

 HelloMajor
 |___ HelloMajorPage1
 ||HelloMajorPage2
 |___HelloMinorPage
 |HelloMinorPage


 I want to display the subspace under the related space itself. I tried with
 child parent snippets but it didnt worked. As i explored i didnt get the
 solution to get the parent of the subspace. Normally in db its storing
 under
 XWD_Parent field in xwiki_doc table. I would like to give the subspace name
 as parameter so that i can get the parent name which i mean is
 HelloMajor.WebHome.

 My requirement is to build a tree structure. I tried with space explorer,mk
 tree, document tree and spaceAllDocs. No one fitting my requirement.

  *Spacename
 * Subspacename
* subspacepages
 * SpacePages


At this time XWiki doesn't support nested spaces. However you can achieve
this:

* Space
   * Page
  * SubPage

Guillaume

In this manner i want to display. IS there any solution.

 Kindly help me.

 Thanks in advance.

 Regards,
 Nithya.Vembu.
 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/How-to-list-the-subspace-under-the-space-tp5095367p5095367.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


Re: [xwiki-users] Annotation feature

2010-05-25 Thread Anca Luca
Hi Angelo,

On 05/24/2010 11:19 AM, AngeloG wrote:

 Hi,
 I have a this question:
 is there a way to make annotation feature work in a virtual wiki
 environment?
 Suppose new xem 2.3 installation for the farm (and in the main wiki the
 annotations work!) and a number of wikis with xe 2.3 xar files imported.

 If the answer is yes, please let me know how.
 If it is no, I think it should be pointed out somewhere in the feature list
 of 2.3 version, or in the release notes.

 Instead, if it is supposed to work, but it doesn't, there is a bug.

The way we built it, it should work, so this would be a bug.
Can you give us more details? wdym it's not working? what should be 
happening and it's not happening? You don't get the annotations UI at 
all? or you get it but it does something wrong? If so, what?
Also, can you give us more details about the environment (servlet 
container, maybe OS?)

It does work on myxwiki, afaics, and that one is a farm.
I will test this again, as soon as I find the time to do all the setup.

Happy hacking,
Anca


 Thanks for the support.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [myxwiki] new wiki request

2010-05-25 Thread Fred Brunner
Hi!

my (tiny) community would like to try XWiki as a solution to play RPG (Role
Play Games) over the internet. We intend to transpose RPG interactions we
usually have around a table to an on-line support. Eventually we would love
to add some RPG specific features such as random dice roll resolution etc...

myxwiki.org username: frenner
myxwiki.org domain name: lacave.myxwiki.org

Nice work! Cheers!

PS: I am french so feel free to answer in french.

-- 
Frédéric Brunner
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Annotation feature

2010-05-25 Thread AngeloG


Anca Luca wrote:
 
 Hi Angelo,
 
 On 05/24/2010 11:19 AM, AngeloG wrote:

 Hi,
 I have a this question:
 is there a way to make annotation feature work in a virtual wiki
 environment?
 Suppose new xem 2.3 installation for the farm (and in the main wiki the
 annotations work!) and a number of wikis with xe 2.3 xar files imported.

 If the answer is yes, please let me know how.
 If it is no, I think it should be pointed out somewhere in the feature
 list
 of 2.3 version, or in the release notes.

 Instead, if it is supposed to work, but it doesn't, there is a bug.
 
 The way we built it, it should work, so this would be a bug.
 Can you give us more details? wdym it's not working? what should be 
 happening and it's not happening? You don't get the annotations UI at 
 all? or you get it but it does something wrong? If so, what?
 Also, can you give us more details about the environment (servlet 
 container, maybe OS?)
 
 It does work on myxwiki, afaics, and that one is a farm.
 I will test this again, as soon as I find the time to do all the setup.
 
 Happy hacking,
 Anca
 

 Thanks for the support.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
Hi Luca,
here are some details:
fresh install of xem 2.3 on a SuseLinux 11 server box, with jetty container
and mysql database.
The main wiki works fine, annotations are there and work. The style/theme is
the standard Colibri.
It is flagged multilanguage with english and italian.
I created some virtual wikis and I can access them and work with them,
through DNS mapping.
When you create a new virtual wiki, it is empty unless you use some
template. 
In a new empty wiki I imported the xar file of xe 2.3. 
Logging in as administrator I can see in this wiki the annotations section
in the preferences page, and they are activated.
But if I go in any page of this wiki, e.g. main webhome page or in sandbox
space (remember that at this stage there are no new pages except those of
the standard xar package) I can't simply see the annotations menu in the
toolbar of any page.
So it is impossible to access at the feature at all, and also Ctrl+m has no
effect.

By the way, entering in www.myxwiki.org , without logging in, i can see the
welcome page and annotations menu in the toolbar. If I click on Playground ,
that I suppose is a virtual wiki, the annotations menu disappears (may be
because I am not logged?).

Thanks in advance for any help (annotations are smart! I would like to use
them)

Angelo

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Annotation-feature-tp5092996p5098147.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Error Starting Open Office Server

2010-05-25 Thread Marine JULIAN
Hello,

I have XEM 2.3 (xwiki-enterprise-manager-mysql-2.3.zip) under Debian and
Open Office 2.4. I configured my open office server like this :*
openoffice.homePath=/usr/lib/openoffice/
openoffice.profilePath=/home/xwiki/.openoffice.org2*
When I tried to start the openoffice server, I had the Error while
connecting / starting openoffice. message (see error log below). Do you
have an idea of what is the issue ?

[http://myserver.fr:8080/xwiki/bin/view/XWiki/OfficeImporterAdmin] ERROR
agerVelocityContextInitializer  - Error while connecting / starting
openoffice.
org.xwiki.officeimporter.openoffice.OpenOfficeManagerException: Error while
connecting / starting openoffice.
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:143)
at
org.xwiki.officeimporter.openoffice.OpenOfficeManagerVelocityBridge.startServer(OpenOfficeManagerVelocityBridge.java:100)
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.evaluate(ASTReference.java:460)
at
org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:63)
at
org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:92)
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.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:116)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93)
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:794)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:811)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:525)
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

[xwiki-users] Formula Macro - native renderer issue

2010-05-25 Thread Marine Julian

Hello everybody,

Does the Formula Macro always support the native renderer ?
Indeed, I tried to use it with an other configuration (the third one !!!) :
Debian, TexLive, ImageMagick, XEM 2.3. But I had again the same error...
Here it is :
ERROR formula.FormulaMacro - Invalid renderer: [native]. Falling back to the
safe renderer.
org.xwiki.component.manager.ComponentLookupException: Failed to render
formula using [native] renderer
 at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
 ... etc 

Besides, is there a way to redefine the safe renderer ? I would like it to
be googlecharts method. The snuggletex method is too limited...
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Formula-Macro-rendering-methods-tp4906580p5098754.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error Starting Open Office Server

2010-05-25 Thread Asiri Rathnayake
Hi,

I'm afraid newer versions of jodconverter requires OpenOffice.org 3.0 or
above.

See: http://code.google.com/p/jodconverter/wiki/GettingStarted

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


[xwiki-users] Migration from 1.4 to 2.3

2010-05-25 Thread Lee Chalupa


I have a wiki farm I want to upgrade to the curreent release.

I've searched the forum. I've read the applicable release notes.

I'm not able to find any info on whether migration is supported from a
version 1.X to 2.X.

Can I move straight from 1.4 to 2.3 or do I need to apply some intermediate
steps?

The one area that confuses me with Xwiki is the relationships between the
wiki manager
and the enterprise wiki.  I'm missing the big picture.  What dependencies
exist between the enterprise
version and the wiki manager?
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Migration-from-1-4-to-2-3-tp5098873p5098873.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Migration from 1.4 to 2.3

2010-05-25 Thread Thomas Mortagne
On Tue, May 25, 2010 at 17:04, Lee Chalupa lchal...@seelink.org wrote:


 I have a wiki farm I want to upgrade to the curreent release.

 I've searched the forum. I've read the applicable release notes.

 I'm not able to find any info on whether migration is supported from a
 version 1.X to 2.X.

 Can I move straight from 1.4 to 2.3 or do I need to apply some intermediate
 steps?

Yes, in fact the automatic migrator act step by step so that does not
change anything except that doing only one migration takes a lot less
time ;)

As usual the issue you can have is mostly if you modified standard pages.

There is also probably some important changes that could impact
applications you would have wrote yourself:
- the most important one is the new xwiki/2.0 syntax which is the
default syntax now so when you create a page programmatically you have
to take care of setting the proper syntax, note that you can change
configuration to have xwiki/1.0 syntax by default until you did all
needed migrations
- you can now set a velocity variable to null, see
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise22
- there is also some changes in document references for them to
support technical characters like '.' and ':' but if you don't use
any of them that should not change anything for you

All basic wiki pages should behave the same as in 1.4.

And other things you should take a look at the release notes of each
first stable version of each branch (1.5, 1.6, ...) since 1.4 and
specifically to the section Backward Compatibility and Migration
Notes.


 The one area that confuses me with Xwiki is the relationships between the
 wiki manager
 and the enterprise wiki.  I'm missing the big picture.  What dependencies
 exist between the enterprise
 version and the wiki manager?

XWiki Enterprise Manager is just a pre-configured XWiki Enterprise in
multiwiki (virtual) mode and with some UI to create/delete wikis (it's
really only UI, the real multiwiki support is in the platform). Since
2.0 the version is synchronized so XEM 2.x is exactly XE 2.x with some
pages added as well as two wiki management UI related plugins.

 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Migration-from-1-4-to-2-3-tp5098873p5098873.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


[xwiki-users] [myxwiki] new wiki request

2010-05-25 Thread JUIN, Eric
Hi 

 

I am one of the core member of Cop-1, the French community of km managers in 
large companies (www.cop-1.net)

We want to evaluate xwiki as an exchange platform / collaborative tool between 
the members of the community.

Of course we need some confidence on the content 

 

Please can you setup a wiki for us : cop-1.myxwiki.org

My login name : ejuin

 

You can reply in French if you prefer

 

Kind regards

 

 

 
http://epist.bouygues-construction.com/images/structis.gifhttp://epist.bouygues-construction.com/images/structis.gif
 

Eric JUIN 
Directeur Partage de la Connaissance - e|services
STRUCTIS - Gie Informatique BOUYGUES CONSTRUCTION
e.j...@bouygues-construction.com

 

Tél: + 33 1 30 60 21 07
Mob: +33 6 60 35 21 07

 

 
http://epist.bouygues-construction.com/images/feuille.jpghttp://epist.bouygues-construction.com/images/feuille.jpg
 

Respectons l'environnement, n'imprimez ce message que si nécessaire
Please consider the environment before printing this mail

 


--
Les donnees et renseignements contenus dans ce message sont personnels, 
confidentiels et secrets. Toute publication, utilisation ou diffusion, meme 
partielle, doit etre autorisee. Si vous n'etes pas le bon destinataire, nous 
vous demandons de ne pas lire, copier, utiliser ou divulguer cette 
communication. Nous vous prions de notifier cette erreur a l'expediteur et 
d'effacer immediatement cette communication de votre systeme.

Any data and information contained in this electronic mail is personal, 
confidential and secret. Any total or partial publication, use or distribution 
must be authorized. If you are not the right addressee, we ask you not to read, 
copy, use or disclose this communication. Please notify this error to the 
sender and erase at once this communication from your system.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2010-05-25 Thread Vincent Massol
Hi Eric,

On May 25, 2010, at 6:24 PM, JUIN, Eric wrote:

 Hi 
 
 
 
 I am one of the core member of Cop-1, the French community of km managers in 
 large companies (www.cop-1.net)
 
 We want to evaluate xwiki as an exchange platform / collaborative tool 
 between the members of the community.
 
 Of course we need some confidence on the content 

Not sure what you mean by confidence on the content. Could you explain?

Just to be sure that you know, myxwiki.org is hosted free of charge by XWiki 
SAS and run by the XWiki community and thus has some limitations
(they are mentioned on http://myxwiki.org/xwiki/bin/view/Main/WebHome with a 
link to professional hosting should you want additional warranties).

Thanks
-Vincent

 Please can you setup a wiki for us : cop-1.myxwiki.org
 
 My login name : ejuin
 
 
 
 You can reply in French if you prefer
 
 
 
 Kind regards
 
 
 
 
 
 http://epist.bouygues-construction.com/images/structis.gifhttp://epist.bouygues-construction.com/images/structis.gif
  
 
 Eric JUIN 
 Directeur Partage de la Connaissance - e|services
 STRUCTIS - Gie Informatique BOUYGUES CONSTRUCTION
 e.j...@bouygues-construction.com
 
 
 
 Tél: + 33 1 30 60 21 07
 Mob: +33 6 60 35 21 07
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Annotation feature

2010-05-25 Thread Anca Luca
Hi Angelo,

see below.

On 05/25/2010 03:10 PM, AngeloG wrote:


 Anca Luca wrote:

 Hi Angelo,

 On 05/24/2010 11:19 AM, AngeloG wrote:

 Hi,
 I have a this question:
 is there a way to make annotation feature work in a virtual wiki
 environment?
 Suppose new xem 2.3 installation for the farm (and in the main wiki the
 annotations work!) and a number of wikis with xe 2.3 xar files imported.

 If the answer is yes, please let me know how.
 If it is no, I think it should be pointed out somewhere in the feature
 list
 of 2.3 version, or in the release notes.

 Instead, if it is supposed to work, but it doesn't, there is a bug.

 The way we built it, it should work, so this would be a bug.
 Can you give us more details? wdym it's not working? what should be
 happening and it's not happening? You don't get the annotations UI at
 all? or you get it but it does something wrong? If so, what?
 Also, can you give us more details about the environment (servlet
 container, maybe OS?)

 It does work on myxwiki, afaics, and that one is a farm.
 I will test this again, as soon as I find the time to do all the setup.

 Happy hacking,
 Anca


 Thanks for the support.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


 Hi Luca,
 here are some details:
 fresh install of xem 2.3 on a SuseLinux 11 server box, with jetty container
 and mysql database.
 The main wiki works fine, annotations are there and work. The style/theme is
 the standard Colibri.
 It is flagged multilanguage with english and italian.
 I created some virtual wikis and I can access them and work with them,
 through DNS mapping.
 When you create a new virtual wiki, it is empty unless you use some
 template.
 In a new empty wiki I imported the xar file of xe 2.3.
 Logging in as administrator I can see in this wiki the annotations section
 in the preferences page, and they are activated.
 But if I go in any page of this wiki, e.g. main webhome page or in sandbox
 space (remember that at this stage there are no new pages except those of
 the standard xar package) I can't simply see the annotations menu in the
 toolbar of any page.
 So it is impossible to access at the feature at all, and also Ctrl+m has no
 effect.

This is because the javascript and style (CSS) that enable the 
annotations need to be saved with programming rights 
(AnnotationCode.Style, AnnotationCode.Script, AnnotationCode.Settings). 
In order to do that, just login with a user with programming rights, go 
to those documents, edit and save with no changes.

Normally, they are imported with XWiki.Admin as an author but local 
XWiki.Admins don't have programming rights in 'subwikis'.

Have fun,
Anca


 By the way, entering in www.myxwiki.org , without logging in, i can see the
 welcome page and annotations menu in the toolbar. If I click on Playground ,
 that I suppose is a virtual wiki, the annotations menu disappears (may be
 because I am not logged?).

 Thanks in advance for any help (annotations are smart! I would like to use
 them)

 Angelo

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


Re: [xwiki-users] Help setting up XWiki in Tomcat container with MySQL on Windows

2010-05-25 Thread James Cuzella
 Sergiu Dumitriu ser...@xwiki.com 5/22/2010 3:10 AM 
You must also add the connector jar in WEB-INF/lib:

http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.12/

Attachments are not allowed on the list.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
 
Thanks for pointing this out.  With all the configuration I had to do setting 
this up, it was easy to forget that step ;-)
 
I'll remember to post errors in the email body next time too.
 
Thanks,
- James Cuzella



This e-mail may contain confidential and privileged material for the sole use 
of the intended recipient.  If this email is not intended for you, or you are 
not responsible for the delivery of this message to the intended recipient, 
please note that this message may contain SEAKR Engineering (SEAKR) 
Privileged/Proprietary Information.  In such a case, you are strictly 
prohibited from downloading, photocopying, distributing or otherwise using this 
message, its contents or attachments in any way.  If you have received this 
message in error, please notify us immediately by replying to this e-mail and 
delete the message from your mailbox.  Information contained in this message 
that does not relate to the business of SEAKR is neither endorsed by nor 
attributable to SEAKR.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Help using m2eclipse to create an Xwiki java Macro

2010-05-25 Thread James Cuzella
I'm hoping to create a simple Xwiki macro to allow users an easy way
to create local file:// links to internal network shares through the
WYSIWYG macros feature.  This is also an excuse for me to try to get
m2eclipse to work for building Xwiki as well.  However, so far the
plugin doesn't seem to be working right.

I'm generally following the guide here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/RenderingMacroTutorial#HCreatingaMacrousingMaven

I first attempted at using Eclipse's m2eclipse plugin to create a new
maven project, but had some troubles with this.  I first added a maven
archetypes catalog through the Window-Preferences-Maven-Archetypes
menu.  I added a remote catalog using the url
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-tools/trunk/xwiki-archetype-macro/;.

Then, by going through the new maven project wizard, I checked the
include snapshot archetypes box and the xwiki-archetype-macro shows
up.  I then fill out the input boxes, for example something like:

Group ID: com.lyraphase
Artifact ID: localFileLinkMacro
Version: 0.0.1-SNAPSHOT
Package: com.lyraphase

I click finish and it simply says Failed to create project.  The
event details for the error in the log are:

eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.php.product


Error
Tue May 25 18:28:55 MDT 2010
Failed to create project.

java.lang.NullPointerException
at 
org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory.createArtifactRepository(DefaultArtifactRepositoryFactory.java:90)
at 
org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.resolveArchetype(ProjectConfigurationManager.java:540)
at 
org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.createArchetypeProject(ProjectConfigurationManager.java:463)
at 
org.maven.ide.eclipse.wizards.MavenProjectWizard$5.runInWorkspace(MavenProjectWizard.java:279)
at 
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


I then gave up on that, and just made a new directory and ran the
maven command line mentioned in the Macro Tutorial through Cygwin.  I
entered the Group ID, etc...
The command seemed to work, however again m2eclipse chokes on missing
maven dependencies after doing a Import - Existing Maven Project.
The console log in Eclipse also shows *tons* of warnings about
checksums failing and some missing pom files.  For example:

5/25/10 6:02:18 PM MDT: [WARN] *** CHECKSUM FAILED - Checksum failed
on download: local = 'f4993fe96db30ae57ca4d71e34ebe200b63981b6';
remote = 'eaf4f3d8c6ee17e73ca671a496a4b307f83aed63' - IGNORING
5/25/10 6:02:19 PM MDT: [WARN] *** CHECKSUM FAILED - Checksum failed
on download: local = 'aaeb993ef6348a2e5102df06b408d8bb220d609e';
remote = '79231f9f429a3ba10c5d260b4e683fe7599498d0' - IGNORING

Most of that stuff is uninteresting, but I snipped out some of the
more interesting messages I found within the mess.


5/25/10 5:46:08 PM MDT: Unable to update index for
xwiki-externals|http://maven.xwiki.org/externals: Resource
nexus-maven-repository-index.properties does not exist

5/25/10 5:52:57 PM MDT: Missing artifact
org.xwiki.platform:xwiki-core-rendering-parser-wikimodel:jar:2.3-SNAPSHOT:compile

5/25/10 5:46:10 PM MDT: Unable to update index for
xwiki-plugins-externals|http://maven.xwiki.org/externals: Resource
nexus-maven-repository-index.properties does not exist

5/25/10 5:52:57 PM MDT: Missing artifact
org.xwiki.platform:xwiki-core-rendering-parser-wikimodel:jar:2.3-SNAPSHOT:compile

5/25/10 6:02:19 PM MDT: Missing artifact
org.xwiki.platform:xwiki-core-rendering-parser-wikimodel:jar:2.3-SNAPSHOT:compile
5/25/10 6:02:24 PM MDT: Maven Builder: FULL_BUILD
5/25/10 6:02:24 PM MDT: Build errors for localFileLinkMacro;
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal on project localFileLinkMacro: Missing:
--
1) org.xwiki.platform:xwiki-core-rendering-parser-wikimodel:jar:2.3-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-rendering-parser-wikimodel
-Dversion=2.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-rendering-parser-wikimodel
-Dversion=2.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

  Path to 

Re: [xwiki-users] Migration from 1.4 to 2.3

2010-05-25 Thread Lee Chalupa

Thanks for your reply Thomas.

I pulled the switch.

Everything with the update went fine except for one item.  I wonder if you
might know what is causing text to appear on the screen at the top when I
log and and request a page.  Here is what displays:

$xwiki.jsfx.use('js/scriptaculous/effects.js', true)
$xwiki.jsfx.use('js/xwiki/widgets/modalPopup.js', true)
$xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true)
$xwiki.jsfx.use('js/xwiki/widgets/jumpToPage.js', true)
$xwiki.ssfx.use('js/xwiki/widgets/jumpToPage.css', true)
$xwiki.jsfx.use('uicomponents/widgets/confirmationBox.js', true)
$xwiki.ssfx.use('uicomponents/widgets/confirmationBox.css', true)
$xwiki.jsfx.use('uicomponents/widgets/confirmedAjaxRequest.js', true)
$xwiki.jsfx.use('uicomponents/widgets/notification.js', true)
$xwiki.ssfx.use('uicomponents/widgets/notification.css', true) 

I have a much better understanding of what I needed to do. I'm going to
write up a procedure and forward it. Maybe I can save somebody some time.

Thanks again.

Lee
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Migration-from-1-4-to-2-3-tp5098873p5101540.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Migration from 1.4 to 2.3

2010-05-25 Thread Sergiu Dumitriu
On 05/26/2010 04:37 AM, Lee Chalupa wrote:

 Thanks for your reply Thomas.

 I pulled the switch.

 Everything with the update went fine except for one item.  I wonder if you
 might know what is causing text to appear on the screen at the top when I
 log and and request a page.  Here is what displays:

 $xwiki.jsfx.use('js/scriptaculous/effects.js', true)
 $xwiki.jsfx.use('js/xwiki/widgets/modalPopup.js', true)
 $xwiki.ssfx.use('js/xwiki/widgets/modalPopup.css', true)
 $xwiki.jsfx.use('js/xwiki/widgets/jumpToPage.js', true)
 $xwiki.ssfx.use('js/xwiki/widgets/jumpToPage.css', true)
 $xwiki.jsfx.use('uicomponents/widgets/confirmationBox.js', true)
 $xwiki.ssfx.use('uicomponents/widgets/confirmationBox.css', true)
 $xwiki.jsfx.use('uicomponents/widgets/confirmedAjaxRequest.js', true)
 $xwiki.jsfx.use('uicomponents/widgets/notification.js', true)
 $xwiki.ssfx.use('uicomponents/widgets/notification.css', true)

You need to enable some new plugins in xwiki.cfg. You should compare the 
xwiki.cfg that comes with a standalone XE with the one you have and 
merge the two files.

 I have a much better understanding of what I needed to do. I'm going to
 write up a procedure and forward it. Maybe I can save somebody some time.


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