wyona/yanel — Issue #6: Yanel.getInstance().init() is still broken
Author: baszero
Created: 2011-11-02 14:25:17+00:00
State: open

Hi Michael,

on March 22nd 2011 I sent an email to the Yanel distribution mail about this issue, you replied by saying that it should actually work and that this will get fixed, it seems this is still pending so I created this issue.

If you try to use Yanel standalone (outside of a servlet container), e.g. a Reindexer or alike, then the following code does not work:

```java
Yanel yanel = Yanel.getInstance();
yanel.init();
```

Exception:

```

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'map' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1068)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
at org.wyona.yanel.core.Yanel.init(Yanel.java:79)
```

If I discover some more infos on this, I'll post them in here.