On Mon, Jun 30, 2008 at 8:59 PM, <acannone(a)imolinfo.it> wrote:
> Invoking directly the class com.xpn.xwiki.tool.backup.ExporterMain I have the following Exception:
>
> Exception in thread "main" java.lang.RuntimeException: Component manager has not been initialized before lookup for [org.xwiki.cache.CacheFactory] for hint [default]
> at com.xpn.xwiki.web.Utils.getComponent(Utils.java:553)
> at com.xpn.xwiki.XWiki.getCacheFactory(XWiki.java:5130)
> at com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:86)
> at com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:80)
> at com.xpn.xwiki.store.XWikiCacheStore.<init>(XWikiCacheStore.java:62)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:675)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:618)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:612)
> at com.xpn.xwiki.tool.backup.AbstractPackager.createXWikiContext(AbstractPackager.java:73)
> at com.xpn.xwiki.tool.backup.Exporter.exportDocuments(Exporter.java:53)
> at com.xpn.xwiki.tool.backup.ExporterMain.main(ExporterMain.java:57)
This error is because you are trying to use XWiki Platform without
initializing it. This particular error is about plexuw component
manager needed because since versio 1.5M2 XWiki cache service is a
plexus component. You should look at shared-test
(trunks//xwiki-platform-tools/xwiki-shared-tests/src/main/java/com/xpn/xwiki/test/AbstractXWikiComponentTestCase.java)
project for a way to create and initialize one you will need the
plexus.xml also in shared-tests. You could directly extends
AbstractXWikiComponentTestCase like unit tests do but it's... for unit
tests and extends junit, jmock etc.
>
> Any ideas or suggestions?
>
> I have the previous error calling a script that contains something like this:
> java -classpath $XWIKICLASSPATH com.xpn.xwiki.tool.backup.ExporterMain /home/acannone/xwiki/prova/export xwiki /home/acannone/xwiki/prova/hibernate.cfg.xml
>
> There is someone that can tell me how to invoke and configure the maven packager plugin in my example?
>
>
>
> Thanks
>
>
> Thomas Mortagne wrote:
>>
>> Hi,
>>
>> I doubt there is any java level documentation on import/export but you
>> can look at some good examples of how to use packager plugin :
>> - com.xpn.xwiki.web.ExportAction#exportXAR(XWikiContext)
>> - com.xpn.xwiki.web.ImportAction#render(XWikiContext)
>>
>> On Mon, May 5, 2008 at 3:19 PM, Lorenzo Manzoni <lmanzoni(a)imolinfo.it>
>> wrote:
>>> I would like to execute an export of all/some of the wiki pages in a
>>> batch mode (ex. with a script and a java program).
>>> In the same way I would like to execute an import.
>>> Is there an easy way to do this?
>>>
>>> Looking forward in the xwiki sources I found two classes that seem to do
>>> what I want:
>>>
>>> * com.xpn.xwiki.tool.backup.ExporterMain
>>> * com.xpn.xwiki.tool.backup.ImporterMain
>>>
>>> Both classes are in the maven plugin called xwiki-packager-plugin.
>>> Is there any documentation that explain how use that plugin?
>>>
>>>
>>> thanks,
>>> Lorenzo
>>> _______________________________________________
>>> devs mailing list
>>> devs(a)xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>
>>
>>
>> --
>> Thomas Mortagne
>> _______________________________________________
>> devs mailing list
>> devs(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>>
> Quoted from:
> http://www.nabble.com/Export-Import-batch-mode-tp17061634p17062120.html
>
>
--
Thomas Mortagne
Hi,
I'd like to propose removing core 1.3 from Continuum. It's taking
resources and the build even fails.
Then I'd also like to propose removing branch 1.3 for Core/Web/XE since:
* We're no longer supporting it here.
* Apparently according to Ludovic it has some problems.
If someone needs to release a new 1.3.3 one day he can always take the
1.3.3 tag and branch it.
Here's my +1
Thanks
-Vincent
Hi,
I need to check the two values are equal.
One is in object($todoObj.Assignee) and another one in
string($context.user).
We tried this way, but it seems not working
#set($username=$context.user)
#if($username.equals(todoObj.Assignee))
#end
--
Prathap
Hi Vincent,
I just tried the new rendering class. My test xhtml is:
<html>
<head>
<title>title of this page</title>
</head>
<body>
<div>
<p>first paragraph, really.</p>
<p>second paragraph for test.</p>
</div>
</body>
</html>
I use WikiModelXHTMLParser to parse it and use XWikiSyntaxRenderer to write
the result to a file.
The output is :
page
paragraph really.
test.
I have tried add a <a href="">link</a> to the input which bring a parser
exception.
Just tell you what I find and I'll drill into the code to see what's wrong.
Any suggestion?
Thanks.
Wang Ning
You can add this in style.css :
------------8<----------------------------
pre, pre span {
font-family:Courier;
}
------------8<----------------------------
Devs : I'd be +1 to modify this in our skins, may be should add a
special css class to the PREs generated by the code macro to achieve
this.
WDYT ?
On Wed, Jul 2, 2008 at 4:35 PM, atw <traninger(a)mdw.ac.at> wrote:
>
>
> Most likely I'm missing something, but maybe someone can help me out with
> this:
>
> when I insert something like:
>
> {code}
> #set($e = "Test")
> {code}
>
> in a page, I'd expect the content displayed in Courier or a similar font.
> But all I can get is Arial...
>
> (XE 1.5 RC2 as well as 1.41 on Windows XP, Tomcat 6.0, Oracle 10.2.0.3,
> Firefox 2).
>
> Thanks for any help on this!
> --
> View this message in context: http://www.nabble.com/Problem-with-Code-Macro-tp18238925p18238925.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Jean-Vincent Drean
On Thu, Jun 26, 2008 at 7:00 PM, Evelina Slatineanu
<evelina.slatineanu(a)xwiki.com> wrote:
> Hi all,
>
>
>
> For the new Administration application to work properly in an empty wiki
> (create users, groups, set rights etc), the following files have to be moved
> from XE to Administration:
>
>
>
> Xwiki.Admin
>
> Xwiki.Users
>
> Xwiki.XwikiUserSheet
>
> Xwiki.XWikiUserTemplate
>
> Xwiki.AdminGroup
>
> Xwiki.AllGroup
>
> Xwiki.Groups
>
> Xwiki.XwikiGroupSheet
>
> Xwiki.XwikiGroupTemplate
>
> Xwiki.Rights
>
> Xwiki.GlobalRights
>
> Xwiki.DefaultSkin
>
> Xwiki.Skins
>
> Xwiki.XwikiPreferences
-1 for XWiki.XWikiPreferences at least the one from XE which contains
rights configuration in it.
Plus admin should be able to automatically create the
XWiki.XWikiPreferences page when needed.
>
>
>
> I already sent the patch to JV, we only need votes. I'm +1
>
>
>
> Thanks, Evelina
>
>
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne
Yesterday was our 4th bug fixing day. The following bugs were fixed:
http://tinyurl.com/5evc9r
- Artem
* XWIKI-1976 : Importing attachments will increase the attachment version
- Evelina
* XAADMINISTRATION-4 : New Administration UI doesn't display nicely
under the Albatross skin
- Jean-Vincent
* XWIKI-2536 : French translation is outdated
* XWIKI-2535 : Patch to English translation
- Thomas
* XWIKI-2495 : LDAP Authentication re-create global user locally
So that's a total of 5 bugs fixed. Well done everybody and thanks to
all who participated.
JV.