Hi Francois,
On 23 Apr 2015 at 16:01:15, BOISSIER, Francois
(francois.boissier@capgemini.com(mailto:francois.boissier@capgemini.com)) wrote:
Note that this extension has been contributed by an individual who seems to be no longer
active on it (and is not supported by the XWiki dev team).
What we can do here is help you to fix it! BTW it would be nice to comment on the
extension page itself that the extension doesn’t work with your version of XWiki so that
others are aware of it.
But I encounter many issues :
- I can't instantiate XWikiContext class, but the usage of EmbeddableComponentManager
before the instantiation corrects this problem
- The com.xpn.xwiki.XWiki class instantiation gave me these following exceptions :
Caused by: java.lang.RuntimeException: Failed to load component
[com.xpn.xwiki.store.XWikiStoreInterface] for hint [null]
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:651)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:775)
at com.xpn.xwiki.XWiki.(XWiki.java:723)
at com.xpn.xwiki.XWiki.(XWiki.java:717)
... 1 more
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup
component [role = [com.xpn.xwiki.store.XWikiStoreInterface] hint = [default]]
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:368)
at
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:649)
... 5 more
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup
component [role = [org.xwiki.query.QueryManager] hint = [default]]
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:368)
at
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126)
at
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:403)
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:361)
... 7 more
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup
component [role = [org.xwiki.query.QueryExecutorManager] hint = [default]]
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:368)
at
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126)
at
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:403)
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:361)
... 10 more
Caused by: java.lang.NullPointerException
at
org.xwiki.component.embed.EmbeddableComponentManager.lookupMap(EmbeddableComponentManager.java:167)
at
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:401)
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:361)
... 13 more
I think you may need to call Utils.setComponentManager(<your ECM instance>) before
instantiating the XWiki class.
I tried to add xwiki and hibernate configuration files
to the classpath but it still crash.
Should I use another ComponentManager ? Do you know another way to launch a standalone
version of xWiki runtime ?
Let me know if this solves it.
Thanks
-Vincent
Regards,
François B.