Hi! I've faced the problem with REST module for Magnolia 5.3.2 and JBoss 7.1.3.
JBoss 7.1.3 has it's own resteasy (v. 2.3.3) and when I try to access Magnolia
via REST I get next exception:
[code]java.lang.NoSuchMethodError:
org.jboss.resteasy.specimpl.BuiltResponse.getHeaders()Ljavax/ws/rs/core/MultivaluedMap;
org.jboss.resteasy.core.ServerResponseWriter.setDefaultContentType(ServerResponseWriter.java:186)
org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:46)
org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:411)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:376)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
info.magnolia.cms.filters.ServletDispatchingFilter.doFilter(ServletDispatchingFilter.java:148)
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:65)
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)
info.magnolia.cms.filters.VirtualUriFilter.doFilter(VirtualUriFilter.java:68)
info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:89)
info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:80)[code]
Because it tries to use the defaul resteasy from JBoss modules and not one from
the lib folder.
I tried to remove dependency to JBoss7 resteasy, here is my
jboss-deployment-structure.xml:
[code]<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<exclude-subsystems>
<subsystem name="weld" />
<subsystem name="jaxrs" />
<subsystem name="resteasy" />
</exclude-subsystems>
<exclusions>
<module name="org.apache.log4j" />
<module name="org.slf4j" />
<module name="org.jboss.resteasy.resteasy-jaxrs" />
<module name="javax.ws.rs.api"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
[/code]
Also I removed jaxrs from standalone-full.xml:
<!--extension module="org.jboss.as.jaxrs"/-->
<!--subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/-->
But it didn't help(
Also there is no information in the
https://documentation.magnolia-cms.com/display/DOCS/JBoss+AS+configuration
article...
If someone faced the same problem please help me, the manual replacing of the
default resteasy libs isn't an option for me(
--
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]>
----------------------------------------------------------------