cancel
Showing results for 
Search instead for 
Did you mean: 

Problems registering webscripts in Alfresco under Centos. What should I be looking for?

jogora
Champ on-the-rise
Champ on-the-rise

I have a local virtual machine with windows 7 and Alfresco share, there I have successfully developed and register a lot of webscipts just by creating them under datadictionary->Webscript extensions and going to the service/index webpage. But when I do the same in Alfresco under Centos (a kind of linux for Intel machines) Alfresco don't even notice them, it doesn't issues any errors. Have tried by copying the files to the folder structure under tomcat/share.../extensions/template but with no success.

Any suggestions?

Thank you

1 ACCEPTED ANSWER

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Jose,

As far as I know, you are creating repo web-script and accessing it through share URL. Try to access it from this http://alfrescobeta.globalhitss.com/alfresco/service/index​ . Or if you want to access it through URL you mentioned, create presentation webscript in \tomcat\shared\classes\alfresco\web-extension\site-webscripts.

Thanks

Kalpesh

www.contcentric.com

View answer in original post

7 REPLIES 7

jego
Star Contributor
Star Contributor

Any Logfiles or Screenshots available?

And please read

Thanks

Jens

jogora
Champ on-the-rise
Champ on-the-rise

I'm attaching an image of the hola.get.desc.xml descriptor created under data dictionary->web scripts extension->samples folder. There is also a corresponding hola.get.html.ftl file, containing the lines:

<html>

<head>

   <title>Ejemplo de Web Script</title>

</head>

<body>

   <table>

     <tr>

       <td><img src="${url.context}/images/logo/AlfrescoLogo32.png"

alt="Alfresco" /></td>

       <td><nobr>Web Script de Subida</nobr></td>

     </tr>

     <tr><td>Alfresco ${server.edition} v${server.version}</td></tr>

    <tr><td> ${url.service}</td></tr>

   </table>

   <p>

  </body>

</html>

I go to http://alfrescobeta.globalhitss.com/share/page/index

and hit the Refresh Web Scripts:

I end up with the same 385 web scripts:

I didn't get any errors

kaynezhang
World-Class Innovator
World-Class Innovator

You should place them under following folder instead of .../extensions/template

alfresco/templates/webscripts

alfresco/extension/templates/webscripts

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Jose,

As far as I know, you are creating repo web-script and accessing it through share URL. Try to access it from this http://alfrescobeta.globalhitss.com/alfresco/service/index​ . Or if you want to access it through URL you mentioned, create presentation webscript in \tomcat\shared\classes\alfresco\web-extension\site-webscripts.

Thanks

Kalpesh

www.contcentric.com

jogora
Champ on-the-rise
Champ on-the-rise

Thank you Kalpesh. I placed the files there and I'm able to see them now. If it is not to ambicious I would really like to know why Alfresco couldn't register them by creating them through data dictionary->Web scripts extension.

kalpesh_c2
Star Collaborator
Star Collaborator

You'r Welcome,

This is because "data dictionary/webscripts extensions" are the contents in repository. Repository contains files and customizations which are common to all the platforms accessing repository. Share is just a one of the clients through which we can access repository. So the customizations or files related to presentation cannot be kept in Repository(it means, in data dictionary/webscripts extensions).

Thanks,

Kalpesh

ContCentric

jogora
Champ on-the-rise
Champ on-the-rise

After many trials and errors, what worked indeed was the following:

1) Install node.js in the Centos server

2) Deposit the webscript files in the following folder:

tomcat/shared/classes/alfresco/extension/templates/webscripts

it might be needed to create the folders templates and templates/webscripts