AnsweredAssumed Answered

[solved] problem to execute a jar with SDK AlfrescoEmbedded

Question asked by ethan on Sep 8, 2010
Latest reply on Sep 9, 2010 by ethan
Hello :)

I created a small java project which add content to Alfresco via the Repository API. My project has a dependency  on the SDK AlfrescoEmbedded project. I made a fat jar which contains my project and the sdk. Then I tried to execute it (java -jar myproject.jar) but it throws the following error :

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name "webscripts.abdera' defined in URL [jar:file:/C:Alfresco/lib/myproject.jar!/org/springframework/extensions/webscripts/spring-webscripts-application-context.xml]: Invocation of init method failed; nested exception is org.springframework.extensions.webscripts.WebScriptException: 08080000 Failed to register Atom writer 'json'; does not exists.

What should I do ?

Thank you :)