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 Tue, 30 Sep 2008 15:35:44 GMT

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

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

OK, I could track that exception down to the mailboxmanager block declaration in james-assembly.xml
(current trunk version as of now), where the class is defined as
    org.apache.james.mailboxmanager.impl.DefaultMailboxManagerProvider
which cannot be found (see exception stack trace in original description).

This class was moved to another package in Rev. 696446 (2008-09-17).
So this can be partially fixed by changing the classname in aforementioned block to:
    org.apache.james.mailboxmanager.torque.DefaultMailboxManagerProvider

If we do that, this class can be found, however, this just leads to the next errors/exceptions
(see stacktrace below):
org.apache.james.mailboxmanager.manager.MailboxManagerProvider - the interface implemented
by aforementioned default provider - cannot be found. The reason for this might be, that this
class was deleted from SVN in Rev. 692636 (2008-09-06) along with the enclosing module "mailbox-library".

INFO  17:09:54,578 | org.apache.james.container.spring.beanfactory.JamesApplicationContext
| Bean factory for application context [org.apache.james.container.spring.beanfactory.JamesApplicationContext;hashCode=1333195]:
org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [fileSystemOverride,serviceManager,logger,privilegedPortsConfigurationInterceptor,stringRemapperConfigurationInterceptor,configurationProvider,avalonContext,loggerPropagator,contextPropagator,servicePropagator,configurationManager,initializationManager,James,mailboxmanager,spoolmanager,matcherpackages,mailetpackages,dnsserver,spoolmanagement,processormanagement,bayesiananalyzermanagement,remotemanager,usermanagement,imap-connections,imapserver,pop3server,smtpserver,nntpserver,nntp-repository,fetchmail,mailstore,spoolrepository,users-store,localusersrepository,filesystem,virtualusertablemanagement,virtualusertable-store,defaultvirtualusertable,domainlist,domainlistmanagement,connections,sockets,scheduler,database-connections,thread-manager];
root of BeanFactory hierarchy
INFO  17:09:54,593 | org.apache.james.container.spring.beanfactory.JamesApplicationContext
| 45 beans defined in application context [org.apache.james.container.spring.beanfactory.JamesApplicationContext;hashCode=1333195]
Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException:
Error loading class [org.apache.james.mailboxmanager.torque.DefaultMailboxManagerProvider]
for bean with name 'mailboxmanager' defined in null: problem with class file or dependent
class; nested exception is java.lang.NoClassDefFoundError: org/apache/james/mailboxmanager/manager/MailboxManagerProvider
Caused by: java.lang.NoClassDefFoundError: org/apache/james/mailboxmanager/manager/MailboxManagerProvider
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.springframework.util.ClassUtils.forName(ClassUtils.java:177)
	at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:313)
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:912)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
	at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:687)
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:397)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
	at org.apache.james.container.spring.beanfactory.JamesApplicationContext.newJamesApplicationContext(JamesApplicationContext.java:56)
	at org.apache.james.container.spring.beanfactory.JamesApplicationContext.newJamesApplicationContext(JamesApplicationContext.java:49)
	at org.apache.james.container.spring.beanfactory.JamesApplicationContext.newJamesApplicationContext(JamesApplicationContext.java:45)
	at org.apache.james.container.spring.Main.main(Main.java:29)
Caused by: java.lang.ClassNotFoundException: org.apache.james.mailboxmanager.manager.MailboxManagerProvider
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	... 22 more

> 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
>            Priority: Minor
>
> - 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