cancel
Showing results for 
Search instead for 
Did you mean: 

Problem-> webscripts installation

maraki
Champ in-the-making
Champ in-the-making
Hello,

I tried to add some amp files, such as docasu but it doesn't seem to work.
I have read http://wiki.alfresco.com/wiki/Web_Scripts#Configuration and i have followed the instruction according to this link http://code.optaros.com/trac/docasu/wiki/Installation.
I use Windows XP, alfresco 3a and docasu version 1.3.

Alfresco runs fine but when i tyoe http://localhost:8080/alfresco/wcs/docasu/ui t the following message appears:

Alfresco     Web Script Status 404 - Not Found

The Web Script /alfresco/wcs/docasu/ui has responded with a status of 404 - Not Found.

404 Description:   Requested resource is not available.

Message:   Script url /docasu/ui does not map to a Web Script.
   
Exception:   org.alfresco.web.scripts.WebScriptException - Script url /docasu/ui does not map to a Web Script.
   
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:106)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
   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.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:102)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.alfresco.module.vti.VtiContextFilter.doFilter(VtiContextFilter.java:81)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   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 Labs v3.0.0 (a r1032) schema 128


Does anyone know what is the problem and what should I do in order to work?

Thanks in advance
Maria
5 REPLIES 5

algoworks
Champ in-the-making
Champ in-the-making
First you please go to the following url to see if your webscript is registered:

http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp

View all webscript and search for your webscript "/docasu/ui". This is just for first level verification. If you find this, you might be using the wrong URL to access the webscript. You might get some idea on that page.

Thanks,
Algoworks Alfresco Team
http://www.algoworks.com

maraki
Champ in-the-making
Champ in-the-making
Could you please explain what i should write in order to verify  that docasu project is registered?

Also I saw that a new war file has been created in alfresco\tomcat\webapps. I 'm not sure but i think that this information is useful..

Thanks for your prompt response.
Maria

algoworks
Champ in-the-making
Champ in-the-making
I am so sorry, I gave you the wrong URL by mistake. Please ignore the last URL and use this:

http://localhost:8080/alfresco/service/index

Then please go to "Browse all Web Scripts"

All the webscripts will be listed in that page with URL as "/alfresco/service/MY/WEBSCRIPT"

In your case, I suppose it would be like this: "/alfresco/service/docasu/ui"

So if you are able to find "/docasu/ui" on that page, the link will give you more information about your webscript and it also assures that the webscript is registered.

Hope this helps.

Thanks,
Algoworks Alfresco Team
http://www.algoworks.com

maraki
Champ in-the-making
Champ in-the-making
Thank you! It works, but unfortunately docasu is not registered.

What should I do in order to make it work?
Any ideas?

Regards
Maria

algoworks
Champ in-the-making
Champ in-the-making
For that, we would need to look at your webscript files. Please let us know more information about your js, ftl and xml files. Before that, please try this:

1. Login as admin in your alfresco web-client
2. Put all your webscript files (js, xml, ftl) under "Data Dictionary/Web Scripts Extensions"
3. Then go to http://localhost:8080/alfresco/service/index
4. Refresh webscript
5. Then list all webscript and search for yours one  Smiley Very Happy

Hope this helps.

Thanks,
Algoworks Alfresco Team
http://www.algoworks.com