Hi,

you will need to add the jar to yor classpath by add it to setenv.sh /
.bat or wrapper.conf (depending in your start method of James)

bye
Norman

2010/5/10, Ranjib Dey <[email protected]>:
> Hi All,
> I am trying to migrate our james based apps form james 2.3.2 to james 3(
> which uses spring). Currently i am facing some trouble to incorporate our
> custom mailets on james3. I have placed the necessary jar files inside lib
> subdirectory, but james is  not able to pick up the classes.. although its
> showing it has searched the packages..
> following is the log
> ________________________________
> *Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'instanceFactory' defined in class path resource
> [spring-beans.xml]: Initialization of bean failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'jamesCamelContext': Invocation of init method failed; nested
> exception is org.apache.commons.configuration.ConfigurationException: Unable
> to init matcher
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
>     at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
>     at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
>     at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
>     at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
>     at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>     at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>     at
> org.apache.james.container.spring.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:72)
>     at org.apache.james.container.spring.Main.main(Main.java:27)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'jamesCamelContext': Invocation of init method
> failed; nested exception is
> org.apache.commons.configuration.ConfigurationException: Unable to init
> matcher
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
>     at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
>     at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1004)
>     at
> org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:88)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1394)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
>     ... 12 more
> Caused by: org.apache.commons.configuration.ConfigurationException: Unable
> to init matcher
>     at
> org.apache.james.transport.camel.AbstractProcessorRouteBuilder.configure(AbstractProcessorRouteBuilder.java:159)
>     at
> org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:295)
>     at
> org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:250)
>     at
> org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:236)
>     at
> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:549)
>     at
> org.apache.camel.spring.CamelContextFactoryBean.installRoutes(CamelContextFactoryBean.java:904)
>     at
> org.apache.camel.spring.CamelContextFactoryBean.afterPropertiesSet(CamelContextFactoryBean.java:359)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
>     ... 23 more
> Caused by: org.apache.mailet.MailetException: Could not load matcher
> (CrypMatcher);
>   nested exception is:
>     java.lang.ClassNotFoundException: Requested matcher not found:
> CrypMatcher.  Package searched:  org.apache.james.transport.matchers.
> org.apache.james.mailet.crypto.matchers. com.thoughtworks.imap.crypmatcher.
>     at
> org.apache.james.transport.AbstractLoader.loadFailed(AbstractLoader.java:146)
>     at
> org.apache.james.transport.JamesMatcherLoader.getMatcher(JamesMatcherLoader.java:77)
>     at
> org.apache.james.transport.camel.AbstractProcessorRouteBuilder.configure(AbstractProcessorRouteBuilder.java:133)
>     ... 31 more
> Caused by: java.lang.ClassNotFoundException: Requested matcher not found:
> CrypMatcher.  Package searched:  org.apache.james.transport.matchers.
> org.apache.james.mailet.crypto.matchers. com.thoughtworks.imap.crypmatcher.
>     at
> org.apache.james.transport.AbstractLoader.classNotFound(AbstractLoader.java:133)
>     at
> org.apache.james.transport.JamesMatcherLoader.getMatcher(JamesMatcherLoader.java:73)
>     ... 32 more
> ___________*_______________
> thanks in advance
> ranjib
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to