cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Reserved Words ????

nirvanvjain
Champ on-the-rise
Champ on-the-rise
Hi Alfresco Product Technical Team/Alfresco Partners/All Alfresco Folks,

I have recently come across one weird/uncanny scenario. I have created one webscript in which I am fetching some values from personService and also using nodeService of Alfresco. I have given webscript name as SendUserMail and files' name for that is as below :

1)SendUserMail.java
2)sendUserMail.get.xml.ftl
3)sendUserMail.get.desc.xml

I am also making one proper entry in web-scripts-application-context.xml too.

Now When I have deployed and restarted the server then it wouldn't have worked and server went out of memory too.

I don't know why it is so ?!  For time being forget about server CACHE/MEMORY issue but why this didn't work ????

Okie,Hold on before you quip that webscipt might have a issue, no it has not..!!

I just changed the name and it worked. I am getting all the values perfectly when I tested the same code of that webscript and also send a mail from that !!

[size=125]Now bunch of questions/quests arises in my mind is :[/size]

1) Is there issue with the name ?
2) Is this issue with Alfresco ? (If yes, how to resolve it ?)
3) Are there any reserved words in Alfresco ? (If yes, please guide and name them or pass some links please)
4) Are there any reserved names for webscript ? (If yes, please guide and name them or pass some links please)
5) Are there any limitation in names ? (I suppose no !!!)
6) Are there any limitation in putting your javaclass to (say) X level down(inside) in package ? (I suppose no !!!)

Thanks!
-Nirvan
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

without knowing your package structure and custom web scripts context file, it is hard to answer all of your questions.

1) Is there issue with the name? – Can't say based on information
2) Is this issue with Alfresco? – Can't say based on information, but would not expect it to be.
3) Are there any reserved words in Alfresco? – None that I know of or have encountered in all the years I am working on Alfresco projects full time.
4) Are there any reserved names for webscript? – None that I know of or have encountered in all the years I am working on Alfresco projects full time.
5) Are there any limitation in names? – You mean length, complexity or creativity / weirdness? Seriously, none that I know of or have encountered in all the years I am working on Alfresco projects full time.
6) Are there any limitation in putting your javaclass to (say) X level down(inside) in package? – None imposed by Alfresco. Based on your operating and / or file system, you may encounter issues with deep packages  and / or long package names, but only if you don't distribute classes in JARs (in my opinion, you should never put class files into /WEB-INF/classes - there should be a court for "crimes against the profession" like this).

Regards
Axel

mrogers
Star Contributor
Star Contributor
It is probably case sensitive.   Try without the mismatched case.