james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (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 10:29:44 GMT

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

Stefano Bagnara commented on JAMES-876:
---------------------------------------

@Joerg

AvalonFileSystem should not be needed by the spring deployment because it is in the overriden
list.
Maybe there is something wrong there and spring still to instantiate that block but use another
block when resolving dependencies so if the code is not there at all it results in that error.

I don't have time to check better but you could try removing this from your assembly.xml:
-----
  <!-- The context FileSystem implementation -->
  <block name="filesystem" class="org.apache.james.context.AvalonFileSystem">
  </block>
-----
If removing it gives you an error then you could also try putting any other *existing* class
(with empty constructor, e.g: java.util.Properties) instead of AvalonFileSystem.. this probably
is instantiated but not used.


> 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
>
>
> - 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