cancel
Showing results for 
Search instead for 
Did you mean: 

Web Script Status 404 - Not Found

sbzoom
Champ in-the-making
Champ in-the-making
Hello.
I have just recently installed Enterprise 2.1 on Linux.  All looks good except the "My Alfresco" page.  I clicked on "Configure" and setup 2 columns and chose a few of the components for each column.  When I got back to the "My Alfresco" page I got 404 errors for any of the components that are Web Scripts.


Alfresco Web Script Status 404 - Not Found
The Web Script /wcs/ui/mytasks has responded with a status of 404 - Not Found.
404 Description:  Requested resource is not available.
Message:  Script url /mytasks does not map to a Web Script.
Exception:  org.alfresco.web.scripts.WebScriptException - Script url /mytasks does not map to a Web Script.

So, I went into the /jsp/dashboard/dashlets/ directory and edited the mytasks-webscript.jsp page and removed the "/wcs/" from the call to the web script.  Then I got this error:


Alfresco Web Script Status 400 - Bad Request
The Web Script /ui/mytasks has responded with a status of 400 - Bad Request.
400 Description:  Request sent by the client was syntactically incorrect.
Message:  Script URL not specified
Exception:  org.alfresco.web.scripts.WebScriptException - Script URL not specified

What's going on here?  The Document List and any other component that is a Web Script fails like that.  I went to the index of the Web Scripts and everything looks good.  Here is the My Tasks:


My Tasks
GET /service/ui/mytasks?f={filter?}
Description: Generate the My Tasks portlet page
Authentication: user
Transaction: required
Format Style: any
Default Format: html
Id: org/alfresco/portlets/mytasks.get
Description:   classpath:alfresco/templates/webscripts/org/alfresco/portlets/mytasks.get.desc.xml

Anything I can look at to see what went wrong?  The logs don't say anything.

Thanks a lot.


Charlie
1 REPLY 1

alrice
Champ in-the-making
Champ in-the-making
Charlie, try going to
http://localhost:8080/alfresco/service/index
and clicking on "Refresh list of Web Scripts". This should setup the mapping of the URLs to the stuff in Data Dictionary / Web Scripts

Hope this solves it!