Java WebScript

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 04:09 AM
I have Java WebsCript living under xx.yy.zz.webscripts package called xx.yy.zz.webscripts.MyWebScript
in desc file
and in spring i have
and calling it like
http://localhost:8080/alfresco/service/${project.name}/api/abc/<strong>list</strong>
but its not mapped to controller
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 05:37 AM
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
