cancel
Showing results for 
Search instead for 
Did you mean: 

Java Backed Web Scripts

toze
Champ in-the-making
Champ in-the-making
Hi!
Where i can see a full tutorial how to create and deploy Java Backed Web Scripts in Alfresco 4?
I made that in Alfresco 3, but now i know there are changes!
Can anyone provide a good tutorial please?
thanks in advance!
20 REPLIES 20

mitpatoliya
Star Collaborator
Star Collaborator
Hi As far I know there are not much changes in the development and deployment part
There could be some of the changes on the APIs and classes.

toze
Champ in-the-making
Champ in-the-making
Ok! Thanks!

I'll try the same i made for Alfresco 3.2r.
Any doubts i post them here.

oshadha
Champ in-the-making
Champ in-the-making
Hi Toze,

Can you provide me the tutorial that you have followed to deploy a Java-backend webscript.

Thanks,
Oshadha.

toze
Champ in-the-making
Champ in-the-making

toze
Champ in-the-making
Champ in-the-making
Hi mitpatoliya!

The amp file i created  must be in a specific location of tomcat? can you remind me that pls?

mitpatoliya
Star Collaborator
Star Collaborator
<ALF_HOME>/amps in file sysem
ex. C:\Alfresco_4.0\amps

toze
Champ in-the-making
Champ in-the-making
Thanks a lot

toze
Champ in-the-making
Champ in-the-making
Well i have in FoldersMigration.get.desc.xml

<webscript>
  <shortname>Create Folders</shortname>
  <description>Create Folders in Alfresco</description>
  <url>/org/toze/AlfrescoAccess/CreateFoldersMigration</url>
  <authentication>user</authentication>
  <format default="json">argument</format>
  <transaction>required</transaction>
</webscript>

and i have this error too when i try to access the web script:
essage" : "07310003 Cannot locate template processor for template org\/toze\/alfresco\/omc\/server\/CreateFoldersMigration.get.json", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 07310003 Cannot locate template processor for template org\/toze\/alfresco\/omc\/server\/CreateFoldersMigration.get.json",
 

My question is: Must i have to create a new desc file for json? In version 3 of Alfresco we didnt need to do that

abarisone
Star Contributor
Star Contributor
Hi Toze,
instead of this:
<format default="json">argument</format>
try this:
<format default="json">extension</format>

Let me know if it worked.