james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Buchberger (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JAMES-876) cannot start as spring-deployment when built from trunk as described in HOW-TO.TXT
Date Mon, 06 Oct 2008 12:09:44 GMT

    [ https://issues.apache.org/jira/browse/JAMES-876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637090#action_12637090
] 

Joerg Buchberger commented on JAMES-876:
----------------------------------------

Found a fix that works for me. Don't know however, if this is in accordance with original
intent of this build target, since the fix relies completely on what is built in target and
therefore identical to nightly build.

See attached patch, if you want to review my approach.

> cannot start as spring-deployment when built from trunk as described in HOW-TO.TXT
> ----------------------------------------------------------------------------------
>
>                 Key: JAMES-876
>                 URL: https://issues.apache.org/jira/browse/JAMES-876
>             Project: JAMES Server
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Joerg Buchberger
>            Assignee: Robert Burrell Donkin
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: build.xml.patch
>
>
> - SVN rev 700046 https://svn.apache.org/repos/asf/james/server/trunk
> - ant default target BUILD SUCCESSFUL
> - ant run from spring-deployment subdirectory: ClassNotFoundException (DefaultMailboxManagerProvider)
in Beans Factory
> - console snippet containing stack trace:
>      [java] INFO  12:52:02,609 | org.apache.james.container.spring.beanfactory.JamesApplicationContext
| 45 beans defined in application context [org.apache.james.container.spring.beanfactory.JamesApplicationContext;hashCode=26210109]
>      [java] Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class
>  [org.apache.james.mailboxmanager.impl.DefaultMailboxManagerProvider] for bean with name
'mailboxmanager' defined in null; nested exception is java.lang.ClassNotFoundException: org.apache.james.mailboxmanager.impl.DefaultMailboxManagerProvider
>      [java] Caused by: java.lang.ClassNotFoundException: org.apache.james.mailboxmanager.impl.DefaultMailboxManagerProvider
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>      [java]     at java.security.AccessController.doPrivileged(Native Method)
>      [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>      [java]     at org.springframework.util.ClassUtils.forName(ClassUtils.java:177)
>      [java]     at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:313)
>      [java]     at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:912)
>      [java]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
>      [java]     at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:687)
>      [java]     at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:397)
>      [java]     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
>      [java]     at org.apache.james.container.spring.beanfactory.JamesApplicationContext.newJamesApplicationContext(JamesApplicationContext.java:56)
>      [java]     at org.apache.james.container.spring.beanfactory.JamesApplicationContext.newJamesApplicationContext(JamesApplicationContext.java:49)
>      [java]     at org.apache.james.container.spring.beanfactory.JamesApplicationContext.newJamesApplicationContext(JamesApplicationContext.java:45)
>      [java]     at org.apache.james.container.spring.Main.main(Main.java:29)
>      [java] Java Result: 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message