Re: [xwiki-users] Cannot upgrade Enterprise UI Extension to 6.4.2

2015-03-06 Thread Thomas Mortagne
You have several very weird things in your setup:
* first as you can see in the error it seems like you installed
org.xwiki.platform:xwiki-platform-appwithinminutes-ui at farm level
which is a really unusual thing to do for a XAR and especially for a
XAR which is a standard XE dependency
* this extension is 6.3 which mean you did not fully upgraded from 6.3
to 6.4.1 and you have some leftover for some reason
* as far as I understand you are not using the Distribution Wizard (as
otherwise you wouldn't have ended up with XWiki Enterprise - UI - Main
Wiki All and at all or some standard extension installed at farm
level), is there a specific reason for that ?

I ideally I would suggest to cleanup a bit (look at installed
extension and try to clean anything that don't make much sense like
6.3 standard extension leftover or standard extension installed at
farm level instead of in the wiki they are used) and then use the
Distribution Wizard to so a proper upgrade but I don't know your
constraints.

On Thu, Mar 5, 2015 at 10:28 PM, Charlie Mann charlie.m...@aed.pro wrote:
 I am using the Extension Updater to upgrade our XWiki instance from 6.3 to
 6.4.2  Whenever I try to upgrade the 'XWiki Enterprise - UI - Main Wiki All'
 package, I get the following error:

 * An extension with feature
 [org.xwiki.platform:xwiki-platform-appwithinminutes-ui] is already installed
 on root namespace
 ([org.xwiki.platform:xwiki-platform-appwithinminutes-ui-6.3])

 class org.xwiki.extension.InstallException: Failed to resolve extension at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(Abs
 tractInstallPlanJob.java:770) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(Abs
 tractInstallPlanJob.java:393) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(Abs
 tractInstallPlanJob.java:290) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstal
 lPlanJob.java:220) at
 org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.j
 ava:88) at
 org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209) at
 org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)



 I have tried to upgrade from 6.3 to 6.4.1 first and then upgrade from 6.4.1
 to 6.4.2, but I still get the same issue when going from 6.4.1 to 6.4.2.
 Going from 6.3 to 6.4.1 works fine.



 Are there any workarounds to get Enterprise UI package to upgrade, or will
 this be something that is fixed in next release?



 Thank you,

 Charlie

 ___
 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] Fetching some external XML resource and using it in a XWiki page?

2015-03-06 Thread Sylvain MARIE

Hello,

(warning n00b question ahead)
I would like to fetch external data, in xml (say for example 
https://raw.githubusercontent.com/xwiki/xwiki-commons/master/pom.xml) and use 
it in a XWiki page : filter tokens, display node contents, etc. At this stage I 
don’t envision populating a custom class.
Would you guys have pointers/examples of such xwiki page?
Thank you in advance!
Sylvain


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


Re: [xwiki-users] Fetching some external XML resource and using it in a XWiki page?

2015-03-06 Thread vinc...@massol.net
Hi Sylvain,

On 6 Mar 2015 at 16:12:42, Sylvain MARIE 
(sylvain.ma...@vtreem.com(mailto:sylvain.ma...@vtreem.com)) wrote:

  
 Hello,
  
 (warning n00b question ahead)
 I would like to fetch external data, in xml (say for example 
 https://raw.githubusercontent.com/xwiki/xwiki-commons/master/pom.xml) and use 
 it in a XWiki page : filter tokens, display node contents, etc. At this stage 
 I don’t envision populating a custom class.
 Would you guys have pointers/examples of such xwiki page?

First you could use getURLContent(), see:
http://extensions.xwiki.org/xwiki/bin/view/Extension/External+Pretty+Code

Now if you want to parse the XML then you should use an API that does that. If 
you can use Groovy then you can easily do the same as is done here for example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nexus+Integration

Hope it helps,
-Vincent

 Thank you in advance!
 Sylvain

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


Re: [xwiki-users] Installed version 6.4.1 is not valid

2015-03-06 Thread Conficio
I did follow the Upgrade guide, off course. What makes me confused is that it
talks (like the install guide) of replacing the war file, when I have to
unpack the war file in order to configure the hibernate.cfg and the
xwiki.cfg and xwiki.properties. 

I also missed the importance of actually setting the permanent.directory, as
it is by default stored in a temp location. 

So now I did restore the 6.4.1 environment and then moved the permanent
directory then started again and it ran through the upgrade wizard for 6.4.1
seemingly successfully. Then I did upgrade to 6.4.2 again (replaced the
directory of webapp (with the unpacked war content and made sure the config
is right). 6.4.2 greats me with the same screen (6.4.1 UI invalid) clicking
upgrade results in teh following

 

The following extensions will be upgraded:

Admin User Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Attachment Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Administration Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Livetable - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
Icon Theme Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Font Awesome Icon Theme6.4.2 (in wiki Home) Version 6.4.1 is installed
Tree Macro6.4.2 (in wiki Home) Version 6.4.1 is installed
Index Application6.4.2 (in wiki Home) Version 6.4.1 is installed
XWiki Platform - Panels - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Scheduler - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
Activity Stream Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
Message Stream Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
User Profile Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Watchlist Application6.4.2 (in wiki Home) Version 6.4.1 is installed
XWiki Platform - Statistics - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
Lucene Search Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Search Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Solr Search Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Office Importer Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - WebDAV - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Tag - UI6.4.2 (in wiki Home) Version 6.4.1 is installed
XWiki Platform - Rendering - Wiki Macro Bridge - UI6.4.2 (in wiki Home)
Version 6.4.1 is installed
XWiki Platform - Annotations - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Invitation - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Extension - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Sheet - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - User Interface Extension - UI6.4.2 (in wiki Home)
Version 6.4.1 is installed
App Within Minutes Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - LinkChecker - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
Dashboard Application6.4.2 (in wiki Home) Version 6.4.1 is installed
User Directory Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
XWiki Platform - Logging - UI6.4.2 (in wiki Home) Version 6.4.1 is
installed
Color Themes Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Sandbox Application6.4.2 (in wiki Home) Version 6.4.1 is installed
Help Application6.4.2 (in wiki Home) Version 6.4.1 is installed
WYSIWYG Editor Configuration Application6.4.2 (in wiki Home) Version
6.4.1 is installed
Flamingo Theme Application6.4.2 (in wiki Home) Version 6.4.1 is
installed
Bootswatch Themes for Flamingo6.4.2 (in wiki Home) Version 6.4.1 is
installed
Mail Application6.4.2 (in wiki Home) Version 6.4.1 is installed
XWiki Enterprise - UI - Common6.4.2 (in wiki Home) Installed version
6.4.1 is not valid
Blog Application6.4.2 (in wiki Home) Version 6.4.1 is installed
XWiki Platform - Wiki - UI - Common6.4.2 (in wiki Home) Version 6.4.1 is
installed
Wiki Application6.4.2 (in wiki Home) Version 6.4.1 is installed
XWiki Enterprise - UI - Main wiki6.4.2 (in wiki Home)

Seemingly failing, as the same message persists, albeit now I have a
continue button -
https://www.dropbox.com/s/6e7n0i0974k5q2h/Screen%20Shot%202015-03-05%20at%2011.31.01%20PM.png?dl=0

Clicking the Continue button , does bring me back to the same screen with
the Upgrade button. Feels like progress is non existent.

O.K. next I'll revert to 6.4.1, export the Wiki and do a fresh install of
6.4.2 followed by an import. Because this upgrade wizard is clearly not
working for me.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Installed-version-6-4-1-is-not-valid-tp7594207p7594248.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___

Re: [xwiki-users] Installed version 6.4.1 is not valid

2015-03-06 Thread Marius Dumitru Florea
On Thu, Mar 5, 2015 at 8:28 PM, Conficio kajkand...@conficio.com wrote:
 Oh, Oh, I did something wrong I guess.


 Well, as I have to change the xwiki.cfg and the hibernate config, I unzipped
 the war anyway. So for upgrade I move the old dir our of the way , unzipped
 the new one and copied back the config (diffed it before as to merge it, but
 seemed not necessary.

This is fine. As I said, the permanent directory is outside the war so
I guess you kept it.



 Which is the permanent directory? where is it? What else do I need to do now
 ?

The permanent directory is configured in xwiki.properties .



 Thanks for the help, much appreciated.

What about the last question. Do you have the progress tab after
clicking on the Show details button displayed before the Upgrade
button?


 Kaj



 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Installed-version-6-4-1-is-not-valid-tp7594207p7594221.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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Xwiki Appli: how can I remove bold in view mode?

2015-03-06 Thread Pascal BASTIEN
Hello,
In my XWiki application, I have a Sheet + Class with a property with 
textArea/wysiwyg type.
I use public String display(String fieldname, String mode)
http://maven.xwiki.org/site/docs/xwiki-javadoc-5.0.x/com/xpn/xwiki/api/Document.html#display%28java.lang.String,%20java.lang.String%29

Unfortunaly in view mode all values are rendering between strong /strong.
How can I remove them?

An example, in edit mode, in my  textArea/wysiwyg, I have
-
Some text bold

   1. first
   2. second
-

In view mode I obtein:
Some text bold

  2. first
  3. second
(I must reinit counter list too)

HTML code:
strong/strong
p
strong
Some text
strongbold/strong
/strong
/p
ol
li style=list-style-type: none
strong/strong
/li
li
strongfirst/strong
/li
li
/ol
Of course i cannot remove strong/strong or modify style because I want to 
keep this one: strongbold/strong

Thxs for any help


Pascal B

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


Re: [xwiki-users] Installed version 6.4.1 is not valid

2015-03-06 Thread vinc...@massol.net
 




On 6 Mar 2015 at 10:11:17, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

 On Thu, Mar 5, 2015 at 8:28 PM, Conficio wrote:
  Oh, Oh, I did something wrong I guess.
 
  
  Well, as I have to change the xwiki.cfg and the hibernate config, I unzipped
  the war anyway. So for upgrade I move the old dir our of the way , unzipped
  the new one and copied back the config (diffed it before as to merge it, but
  seemed not necessary.
  
 This is fine. As I said, the permanent directory is outside the war so
 I guess you kept it.

But if it wasn’t set, there was a warning in the logs since in that case it’ll 
have pointed to the temporary directory defined by the servlet container. So it 
could have been removed.

It’s important that the permanent directory be set to a permanent location.

Thanks
-Vincent

  Which is the permanent directory? where is it? What else do I need to do now
  ?
  
 The permanent directory is configured in xwiki.properties .
  
 
  
  Thanks for the help, much appreciated.
  
 What about the last question. Do you have the progress tab after
 clicking on the Show details button displayed before the Upgrade
 button?
  
 
  Kaj
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot upgrade Enterprise UI Extension to 6.4.2

2015-03-06 Thread Charlie Mann
Thomas,

Thanks for the quick reply.  Here is a little more background on our
install.  We have a test server set up with a mirror of production and that
is where I am doing the upgrade testing, so I can go back to the current 6.3
at any time and redo the process till I get it right. We have a main wiki
with 7 or 8 subwikis.  Despite many different attempts, I have never been
able to get the Distribution Wizard to appear.   So we have taken to just
deploying the latest War file and then using the Extension Updater.  I
generally chose 'Check for updates on farm'.  This then provides me with a
list of extension that are out of date.  I then go through and update every
extension that is out of date.  This had worked with every upgrade I have
tried until 6.4.2.  It worked with 6.4.1 in our test environment, but we
didn't actually go to 6.4.1 in production because of some the issues present
in 6.4.1.

What is the best option here for the place we are at?  Should I try to get
the Distribution Wizard to appear so that it will handle the upgrade from
6.3 to 6.4.2?  If so, are there any suggestions on how to do this?  

Or would it be better to try and clean things out first?  Im not quite sure
how to determine which installed extensions don't make sense. Also, when you
say clean up, how should I do that?  For most of the extensions I only have
Uninstall and Downgrade options.  (not sure why there are Downgrade options,
as I have only seen in that when trying to go to 6.4.2).

Thanks for the help!
Charlie

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: Friday, March 6, 2015 3:18 AM
To: XWiki Users
Subject: Re: [xwiki-users] Cannot upgrade Enterprise UI Extension to 6.4.2

You have several very weird things in your setup:
* first as you can see in the error it seems like you installed
org.xwiki.platform:xwiki-platform-appwithinminutes-ui at farm level which is
a really unusual thing to do for a XAR and especially for a XAR which is a
standard XE dependency
* this extension is 6.3 which mean you did not fully upgraded from 6.3 to
6.4.1 and you have some leftover for some reason
* as far as I understand you are not using the Distribution Wizard (as
otherwise you wouldn't have ended up with XWiki Enterprise - UI - Main Wiki
All and at all or some standard extension installed at farm level), is there
a specific reason for that ?

I ideally I would suggest to cleanup a bit (look at installed extension and
try to clean anything that don't make much sense like
6.3 standard extension leftover or standard extension installed at farm
level instead of in the wiki they are used) and then use the Distribution
Wizard to so a proper upgrade but I don't know your constraints.

On Thu, Mar 5, 2015 at 10:28 PM, Charlie Mann charlie.m...@aed.pro wrote:
 I am using the Extension Updater to upgrade our XWiki instance from 
 6.3 to
 6.4.2  Whenever I try to upgrade the 'XWiki Enterprise - UI - Main Wiki
All'
 package, I get the following error:

 * An extension with feature
 [org.xwiki.platform:xwiki-platform-appwithinminutes-ui] is already 
 installed on root namespace
 ([org.xwiki.platform:xwiki-platform-appwithinminutes-ui-6.3])

 class org.xwiki.extension.InstallException: Failed to resolve 
 extension at 
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensi
 on(Abs
 tractInstallPlanJob.java:770) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensi
 on(Abs
 tractInstallPlanJob.java:393) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensi
 on(Abs
 tractInstallPlanJob.java:290) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(Abstract
 Instal
 lPlanJob.java:220) at
 org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPla
 nJob.j
 ava:88) at
 org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209) 
 at
 org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)



 I have tried to upgrade from 6.3 to 6.4.1 first and then upgrade from 
 6.4.1 to 6.4.2, but I still get the same issue when going from 6.4.1 to
6.4.2.
 Going from 6.3 to 6.4.1 works fine.



 Are there any workarounds to get Enterprise UI package to upgrade, or 
 will this be something that is fixed in next release?



 Thank you,

 Charlie

 ___
 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

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