Just an update on this topic.
NB: use this link for your tests:
http://localhost:8178/magnoliaAuthor/.rest/nodes/v1/website/demo-project/about
Without any changes, this request throws a NPE, due to wrong RESTEasy class
loading.
What actually solves that are 2 things:
1) Disabling *implicit* JBoss classloading for modules "resteasy"
This allows JBoss to use "inner" classes of .ear / .war instead of provided
ones.
Create/update *jboss-deployment-structure.xml* in WEB-INF folder and copy what
follows:
[code]
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<exclude-subsystems>
<subsystem name="resteasy" />
</exclude-subsystems>
</deployment>
</jboss-deployment-structure>
[/code]
2) Disable RESTEasy scanning as *Scorpion-magnolia* said. This allows RESTEasy
to be "lazy-initialized" by rest Magnolia module
Edit WEB-INF/web.xml and add the following context parameters:
[code]
...
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>resteasy.scan.providers</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>resteasy.scan.resources</param-name>
<param-value>false</param-value>
</context-param>
...
[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=f97dcd5e-efca-4033-9b14-03836cce764d
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------