AnsweredAssumed Answered

webscripts

Question asked by sudhakar on May 12, 2008
Latest reply on May 14, 2008 by sudhakar
Hi ..
I am new to this forum as well as web scipts, I tried upload example that have been given in the website. I have uploaded the files(upload.post.desc.xml, upload.post.html.ftl, upload.post.js)under below mentioned  directory in alfresco.

The directory:
Company Home > Data Dictionary > Web Scripts > org > alfresco > sample ..

I am not able to access upload thru browser..

It shows the below mentioned error while accessing..(http://localhost:8080/alfresco/service/sample/upload)

e method specified in the Request-Line is not allowed for the resource identified by the Request-URI. 
  
Message: Script url /sample/upload does not support the method GET 
  
Exception: org.alfresco.web.scripts.WebScriptException - Script url /sample/upload does not support the method GET 
   
org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:121) 
org.alfresco.web.scripts.WebScriptServlet.service(WebScriptServlet.java:109) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) 
java.lang.Thread.run(Thread.java:595) 
   
Server: Alfresco Community Network v2.1.0 (482) schema 64 

could anybody help me on this?

Thanks in advance..,

R.Sudhakar.

Outcomes