[cosmo-dev] Re: Help with mvn package build failures
bcm at osafoundation.org
Mon Dec 10 07:55:15 PST 2007
On Dec 10, 2007 3:49 AM, Alan Lord <alanslists at gmail.com> wrote:
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cosmoConfigPath' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name cosmo is not bound in this Context
> Caused by: javax.naming.NameNotFoundException: Name cosmo is not bound in this Context
this is the key info. the cosmo webapp expects three J2EE resources to
be provided by the servlet container: the filesystem path to the
cosmo.properties file, a JDBC DataSource for the Cosmo database, and a
JavaMail Session for email notifications. it's croaking because it
can't find these.
see snarf/src/main/config/server.xml for the Tomcat configuration that
we use for snarf (the pre-configured Tomcat that is only officially
supported deployment). you're actually breaking new ground by
deploying the war into a container other than snarf, so there are a
few hiccups to be expected. just be patient and we'll help you through
it ;) we've been meaning to add some docs to the wiki for deploying
the webapp into other containers, so maybe this is the excuse we need.
any chance you could lend a hand?
also of interest: somebody recently contributed a context.xml that
we'll be integrating into the webapp to replace the snarf server.xml
configuration. I'm hoping to get that committed in the next few days.
More information about the cosmo-dev