Page 1 of 1

Jboss Rest Easy integration with BLC 3

Posted: Mon Jun 17, 2013 7:05 am
by vsreddy
Hi,

How can we configure BLC 3 with Rest easy implementation ? default it has come with jersey implementation working fine.

I have integrated Jboss rest easy with BLC 3 (changed web.xml entries and commented jersey impln).
But i am not able to get the BLC services dependency into my rest services.
web.xml
<listener>
<listener-class>org.broadleafcommerce.common.web.extensibility.MergeContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>resteasy.servlet.mapping.prefix</param-name>
<param-value>/rest</param-value>
</context-param>
<context-param>
<param-name>resteasy.resources</param-name>
<param-value>com.mycompany.api.endpoint.catalog.TestEndPoint</param-value>
</context-param>
<listener>
<listener-class>
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
</listener-class>
</listener>
<servlet>
<servlet-name>resteasy-servlet</servlet-name>
<servlet-class>
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>resteasy-servlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
<!-- Rest Easy Implementation ends -->

but in my TestEndpoint not able to get the BLC dependecies (null pointer exception).

Thanks,
vsreddy