cancel
Showing results for 
Search instead for 
Did you mean: 

Java WebScript

zafarale
Champ in-the-making
Champ in-the-making
I have Java WebsCript living under xx.yy.zz.webscripts package called xx.yy.zz.webscripts.MyWebScript

in desc file

<url>/${project.name}/api/abc/list</url>


and in spring i have


   <bean id="webscript.xx.yy.zz.webscripts.list.get"
      class="xx.yy.zz.webscripts.MyWebScript" parent="webscript">
      <property name="nodeService" ref="nodeService" />
   </bean>


and calling it like

http://localhost:8080/alfresco/service/${project.name}/api/abc/<strong>list</strong>

but its not mapped to controller
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator


I guess your spring bean was not loaded correctly ,maybe you put your spring bean definition file in wrong place.
If you are developing a amp  amp ,your spring bean definition file must be like this

classpath*:alfresco/module/*/module-context.xml

Or you can just place your spring bean definition file under extension classpath and like below

classpath*:alfresco/extension/*-context.xml