The roller-custom.properties is dependent for each user (mail settings,
database settings, etc.), I don't think we should hardcode it into the
pom.xml files or place it in src/main/resources, as it might end up
getting checked into SVN that way. We already have common defaults in
roller.properties, placing "common" config in roller-custom would seem
to defeat the purpose of that file.
I just place my roller-custom.properties in my $CATALINA_HOME/lib folder
and it works beautifully there, I can redeploy the Roller WAR (mvn
tomcat7:redeploy) umpteen times and that file is always read. I don't
need to place it in the Roller source folders or alter the pom. How are
you incorporating webby with Roller -- I'm confused (webby is a Ruby
app). Instead of configuring roller-customer.properties in Roller,
can't you add it to whatever servlet container you're using to host Roller?
Glen
On 06/17/2013 06:56 AM, Greg Huber wrote:
I was testing the new layout with webby and was unable to start the app
without this dependency:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.0.1</version>
</dependency>
checking:
<dependency>
<groupId>org.openid4java</groupId>
<artifactId>openid4java-consumer</artifactId>
<version>0.9.6</version>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>com.google.code.guice</groupId>
<artifactId>guice</artifactId>
</exclusion>
<exclusion>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents</groupId>
</exclusion>
</exclusions>
</dependency>
SEVERE: Exception sending context initialized event to listener instance of
class org.apache.roller.weblogger.ui.core.RollerContext
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '_filterChainProxy': Initialization of bean failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '_filterChainList': Cannot create inner bean
'(inner bean)' of type
[org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator]
while setting bean property 'filters' with key [7]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'openidAuthenticationProcessingFilter' while setting constructor argument;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'openidAuthenticationProcessingFilter' defined in
ServletContext resource [/WEB-INF/security.xml]: Invocation of init method
failed; nested exception is java.lang.NoClassDefFoundError:
org/apache/http/client/ClientProtocolException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
Also, there is a need to have a local version of roller-custom.properties,
what would be the correct maven way of doing this?
eg:
<resource>
<!-- Enable our custom override properties -->
<directory>${project.basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>roller-custom.properties</include>
</includes>
</resource>
we could add this to the pom so we only need then copy in the file
roller-custom.properties to /src/main/resources to run locally.
Cheers Greg.