cancel
Showing results for 
Search instead for 
Did you mean: 

unable to register script

jriker1
Champ in-the-making
Champ in-the-making
Since building Alfresco/Share a couple days ago, getting two web scripts that are failing in the logs.

13:27:53,212  WARN  [extensions.webscripts.DeclarativeRegistry] Unable to register script classpath:alfresco/webscripts/classpath/folder1/subfolder1/folder1_subfolder1_file2.desc.xml due to error: 00190001 Failed to parse web script description document classpath/folder1/subfolder1/folder1_subfolder1_file2.desc.xml ; 00190000 Unable to establish HTTP Method from web script description: naming convention must be <name>.<method>.desc.xml
13:27:53,213  WARN  [extensions.webscripts.DeclarativeRegistry] Unable to register script classpath:alfresco/webscripts/classpath/folder1/subfolder2/folder1_subfolder2_file2.desc.xml due to error: 00190003 Failed to parse web script description document classpath/folder1/subfolder2/folder1_subfolder2_file2.desc.xml ; 00190002 Unable to establish HTTP Method from web script description: naming convention must be <name>.<method>.desc.xml
13:27:53,213  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 190 Web Scripts (+2 failed), 197 URLs


Any thoughts?

Thanks

JR
1 REPLY 1

lyamamot
Champ in-the-making
Champ in-the-making
You have a web script definition file that does not follow the correct convention. Your XML file must be named "[whatever].[method].desc.xml" where [method] is some HTTP method. Typically, this is "get" but you could use "post" or any other method. The full file set of files for a web script named "sample" might be:

sample.get.desc.xml
sample.get.js
sample.get.html.ftl