Hi Jan,

On Montag, 31. Januar 2011, Jan Haderka wrote:
> On Jan 30, 2011, at 5:10 PM, Jörg Schaible wrote:
> > Hi,
> > 
> > after playing around a bit with the delivered wars and because there's
> > now a new Magnolia version, I tried to setup my project from scratch,
> > but this time building my war with Maven. I declared therefore the empty
> > webapp as overlay, added stk, dms module and the default theme as deps,
> > but I get the following exception at startup:
> > 
> > =============== %< ================
> > FATAL: Exception sending context destroyed event to listener instance of
> > class info.magnolia.cms.servlets.MgnlServletContextListener
> > info.magnolia.objectfactory.MgnlInstantiationException: No concrete
> > implementation defined for interface info.magnolia.module.ModuleManager
> 
> Any chance you tried to define your own ModuleManager implementation in the
> module descriptor of some of your modules?

No. Eclipse does show only ModuleManagerImpl in the same package as single 
implementation.

> If not then it is likely to be
> one of the following reasons:
> - magnolia-core-x.y.z.jar is corrupted

No. Sha1 sum of Maven matches the one generated directly fomr the jar and I 
can extract the jar without any problem.

> - some of magnolia jar files are on the global tomcat classpath outside of
> the webapp. 

No. No other magnolia-core anywhere.

> - there's some other exception in the log file which you have
> not posted here.

No logs generated, but I missed an exception on the console quite at the 
beginning:

============== %< ================
SLF4J: The requested version 1.5.11 by your slf4j binding is not compatible 
with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further 
details.
31.01.2011 19:30:06 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener 
instance of class info.magnolia.cms.servlets.MgnlServletContextListener
java.lang.NoSuchMethodError: 
org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;
[Ljava/lang/Object;)Ljava/lang/String;
        at org.slf4j.impl.Log4jLoggerAdapter.debug(Log4jLoggerAdapter.java:267)
        at 
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:188)
============== %< ================

And indeed:

============== %< ================
[INFO] info.schaible.magnolia:musikgalerie:war:1.0-SNAPSHOT
[INFO]     [...]
[INFO]     info.magnolia:magnolia-empty-webapp:pom:4.4.2
[INFO]         [...]
[INFO]         info.magnolia:magnolia-module-templating:jar:4.4.2
[INFO]         :   [...]
[INFO]         :   org.slf4j:slf4j-api:jar:1.6.1
[INFO]         info.magnolia:magnolia-core:jar:4.4.2
[INFO]             org.slf4j:slf4j-log4j12:jar:1.5.11
[INFO]             org.slf4j:jcl-over-slf4j:jar:1.5.11
[INFO]             [...]
============== %< ================

slf4j-api is managed in the parent pom, but the other two slf4j artifacts were 
not.

So, at least this problem is solved now, thanks!

- Jörg

> 
> HTH,
> Jan
> 
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to