cancel
Showing results for 
Search instead for 
Did you mean: 

[solved] problem to execute a jar with SDK AlfrescoEmbedded

ethan
Champ in-the-making
Champ in-the-making
Hello Smiley Happy

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 Smiley Happy
2 REPLIES 2

ethan
Champ in-the-making
Champ in-the-making
Hi again.

I tried to make a runnable jar and I started better than before but now I have another error.


Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: 08080002 File server configuration error, 0808001 Failed to initialize desktop action at org.alfresco.filesys.AbstractServerConfigurationBean.init(AbstractServerConfigurationBean.java:458)

Caused by: org.alfresco.filesys.config.alfresco.DesktopActionException: Unable to resolve drag and drop application as a file, class path resource [alfresco/desktop/alfresco.exe]

Could you tell me please which file I need to edit or remove to get rid of this error. I don't need this desktop action feature to be active.

I need to make a working demo for tomorrow : (

Thank you.

ps: I forgot to say that i'm using Alfresco 3.3g

ethan
Champ in-the-making
Champ in-the-making
I finally solved my problem..
I edited file-servers-custom.xml and commented the <desktopActions> part. Then I added the file in my jar. Now Desktop Actions are not loaded when I run it.