On 21/03/2013 02:16, Mansour Al Akeel wrote:
I am getting this error. I tried to dig deeper, but couldn't find what
is going on. This is the contents of my applicationContext.xml in the
web-app :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:configurator="http://cocoon.apache.org/schema/configurator"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.5.xsd
http://cocoon.apache.org/schema/configurator
http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd">
<configurator:settings runningMode="dev" />
<bean name="org.apache.cocoon.spring.configurator.logback"
class="org.apache.cocoon.spring.configurator.logback.LogbackConfigurator"
scope="singleton">
<property name="resource" value="/WEB-INF/logback.xml" />
</bean>
</beans>
This should be
<bean name="org.apache.cocoon.spring.configurator.logback"
class="org.apache.cocoon.spring.configurator.logback.LogbackConfigurator"
scope="singleton">
<property name="settings"
ref="org.apache.cocoon.configuration.Settings"/>
<property name="resource" value="/WEB-INF/logback.xml"/>
</bean>
i.e. the reference for the settings property is missing.
Moreover, please check that logback.xml is effectively under /WEB-INF:
normally it should be found under /WEB-INF/classes
For a full example take a look at
https://github.com/ilgrosso/cocoon3EmptyProject/blob/COCOON3-105/mywebapp/src/main/webapp/WEB-INF/applicationContext.xml
Regards.
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]