cancel
Showing results for 
Search instead for 
Did you mean: 

Error creating bean with name 'NamespaceService' - examples

chelya
Champ in-the-making
Champ in-the-making
Same problem as in "problem with examples" topic, different circumstances.

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NamespaceService' defined in class path resource [alfresco/public-services-context.xml]: Can't resolve reference to bean 'namespaceService' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryDAO' defined in class path resource [alfresco/application-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jibx/runtime/IUnmarshallable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryDAO' defined in class path resource [alfresco/application-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jibx/runtime/IUnmarshallable

I am trying to run SimpleExampleWithContent in my environment using IDEA. I compiled alfresco source code, hooked up all the libraries, moved  <alfresco-src>\projects\repository\config into my classes dir.
It looks like I am missing something very obvious. Any hints?
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Some of the libraries we need are in sub-directories of <alfresco>/projects/3rd-party/lib do you also add these to your classpath?

The reason for asking is that the class not being found is in one of the jibx*.jar files that can be found in <alfresco>/projects/3rd-party/lib/jibx.

Hope this helps

chelya
Champ in-the-making
Champ in-the-making
Thanks - this is right on the money.