cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Cocoon 2.2 problems with classpath resources
Date Fri, 18 Aug 2006 08:22:25 GMT
I have an application consisting of:
- 3 cocoon blocks (archetype created)
- webapp (archetype created)

all of the blocks contribute some spring context files to 
WEB-INF/cocoon/spring/ directory. They are properly picked up by cocoon. 
The problem is that 'classpath:/spring.properties' which is referenced by:


> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> 	<property name="location" value="classpath:/spring.properties"/>
> </bean>
> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
> 	<property name="driverClassName" value="${hibernate.connection.driver_class}"/>
> 	<property name="url" value="${hibernate.connection.url}"/>
> 	<property name="username" value="${hibernate.connection.username}"/>
> 	<property name="password" value="${hibernate.connection.password}"/>
> </bean>

is not properly resolved which results in failed jetty start.

I have double checked and for 100% have spring.properties in one of jars 
residing in WEB-INF/cocoon/lib/

What can I do (apart from hardcoding the properties in context file itself)?

-- 
Leszek Gawron, IT Manager                          MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message