09-15-2009 10:04 PM
-config
-alfresco
-module
-my-module
-module-context.xml
-application.properties
-webscripts
-packagename
-MyJavaClass.post.desc.xml
-lib
-ezmorph-1.0.5.jar
-json-lib-2.3-jdk15.jar
-my-module.jar
-module.properties
<webscript>
<shortname>My Module</shortname>
<description>description</description>
<url>/sampler/myjavaclass</url>
<format default="">any</format>
<authentication>user</authentication>
</webscript>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans-2.0.dtd'>
<!– should contain module specific configurations required to be initialised during startup –>
<beans>
<bean id="webscript.packagename.sampler.myjavaclass.post"
class="packagename.sampler.myjavaclass"
parent="webscript" >
<property name="repository" ref="repositoryHelper"/>
<property name="serviceRegistry" ref="ServiceRegistry"/>
</bean>
</beans>
09-15-2009 10:25 PM
09-15-2009 10:34 PM
The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
org.alfresco.web.scripts.WebScriptException - Script url /sampler/myjavaclass does not support the method GET
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:113)
org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
…more
thanks
09-16-2009 04:28 PM
09-16-2009 06:41 PM
com
something
myDescriptor.get.desc.xml
bean should be
<bean id="webscript.com.something.myDescriptor.post" …/>
config/alfresco/module/module id/mypropertyfile.properties
This gets extracted to WEB-INF/classes/alfresco/module/module id/mypropertyfile.properties
09-28-2009 09:40 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.