Page 1 of 1

adding webservices to broadleaf

Posted: Wed Dec 18, 2013 6:45 am
by Theo Schumacher
Hi,

i do have develop a 'addToCart' webservice instead of using REST endpoints. When starting the corresponding servlet I get the following message, indicating that the application tries to fire a login, which is not needed

Problem accessing /soap/Seacloud4CompuzzWebService. Reason:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blLoginService' is defined

I have added the following line to applicationContext-security.xml :

<sec:http pattern="/soap/**" security="none" />

after the line for robots.txt. But this seams to be not sufficient to avoid scurity interception. What is missing ?

Thank you

Re: adding webservices to broadleaf

Posted: Wed Dec 18, 2013 7:16 am
by Theo Schumacher
Hi

I have found the problem. Component scan scanned to much libraries. I have now restricted to
<context:component-scan base-package="eu.seacloud.helper.wsCompuzz"/>

and now I'm one step further ;)