You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Ted Fines <te...@beta.macalester.edu> on 2007/08/31 13:52:15 UTC

Roller with LDAP Auth Trouble. Syntax or ???

Hi,

I am setting up a new Roller test install and trying to get LDAP Auth
working.  I am following the instructions at:
http://rollerweblogger.org/wiki/Wiki.jsp?page=LDAP_SSP_FAQ

Here is my AUTHENTICATION section from server.xml, followed by the log
output when I restart Tomcat and try to access Roller with this
server.xmlin place.  (I have replace the bind dn and pass with
"SECRET_DN" and
"SECRET_PASSWORD".)

While I am an experienced LDAP programmer/admin, I am not a Java programmer
and don't really get what the error log is trying to tell me.

Any help?

Thanks in advance,
Ted Fines


    <!-- ======================== AUTHENTICATION ======================= -->


    <!-- Note the order that entries are placed against the
objectDefinitionSource is critical.
         The FilterSecurityInterceptor will work from the top of the list
down to the FIRST pattern that matches the request URL.
         Accordingly, you should place MOST SPECIFIC (ie a/b/c/d.*)
expressions first, with LEAST SPECIFIC (ie a/.*) expressions last -->
    <bean id="filterInvocationInterceptor" class="
org.acegisecurity.intercept.web.FilterSecurityInterceptor ">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="accessDecisionManager" ref="accessDecisionManager"/>

        <property name="objectDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT
                /roller-ui/login-redirect.jsp=admin,editor
                /roller-ui/yourProfile**=admin,editor
                /roller-ui/createWebsite**=admin,editor
                /roller-ui/yourWebsites**=admin,editor
                /roller-ui/authoring/**=admin,editor
                /roller-ui/admin/**=admin
                /rewrite-status*=admin
                /roller-ui/user.do*=register
            </value>
                <!-- Add this to above list for LDAP/SSO configuration -->
                <!-- /roller-ui/user.do*=register -->
        </property>
    </bean>

    <bean id="authenticationManager" class="
org.acegisecurity.providers.ProviderManager">
        <property name="providers">
            <list>
                <ref local="daoAuthenticationProvider"/>
                <ref local="ldapAuthProvider"/>
                <!-- Uncomment this for LDAP/SSO configuration <ref
local="ldapAuthProvider"/> -->
                <ref
local="anonymousAuthenticationProvider"/>
                <!-- rememberMeAuthenticationProvider added programmatically
-->
            </list>
        </property>
    </bean>



    <!-- BEGIN: LDAP/RollerDB hybrid security configuration -->
    <bean id="initialDirContextFactory" class="
org.acegisecurity.ldap.DefaultInitialDirContextFactory ">
    <constructor-arg value="ldap://ldap.macalester.edu:389/o=mac"/>
      <property name="managerDn">
        <value>SECRET_DN</value>
      </property>
      <property name="managerPassword">
        <value>SECRET_PASSWORD</value>
      </property>

      <property name="extraEnvVars">
        <map>
          <entry>
            <key>
              <value>java.naming.referral</value>
            </key>
            <value>follow</value>
          </entry>
        </map>
      </property>
    </bean>
    <bean id="ldapAuthProvider" class="
org.acegisecurity.providers.ldap.LdapAuthenticationProvider">
      <constructor-arg>
        <bean class="
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator">
           <constructor-arg>
             <ref local="initialDirContextFactory"/>
           </constructor-arg>
           <property name="userSearch"><ref
bean="ldapUserSearch"/></property>
        </bean>
      </constructor-arg>
      <constructor-arg>
        <ref local="jdbcAuthoritiesPopulator"/>
      </constructor-arg>
      <property name="userCache" ref="userCache"/>
    </bean>

    <bean id="jdbcAuthoritiesPopulator" class="
org.apache.roller.ui.core.security.AuthoritiesPopulator">
        <property name="dataSource">
            <bean class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName"
value="java:comp/env/jdbc/rollerdb"/>
            </bean>
        </property>
        <property name="authoritiesByUsernameQuery">
            <value>SELECT username,rolename FROM userrole WHERE username =
?</value>
        </property>
    <property name="defaultRole"><value>register</value></property>
    </bean>

    <!-- Log failed authentication attempts to commons-logging -->
    <bean id="loggerListener" class="
org.acegisecurity.event.authentication.LoggerListener"/>
    <bean id="daoAuthenticationProvider" class="
org.acegisecurity.providers.dao.DaoAuthenticationProvider ">
         <property name="userDetailsService" ref="jdbcAuthenticationDao"/>
         <property name="userCache" ref="userCache"/>
    </bean>

    <!-- Read users from database -->
    <bean id="jdbcAuthenticationDao" class="
org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
        <property name="dataSource">
            <bean class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName"
value="java:comp/env/jdbc/rollerdb"/>
            </bean>
        </property>
        <property name="usersByUsernameQuery">
            <value>SELECT username,passphrase,isenabled FROM rolleruser
WHERE username = ?</value>
        </property>
        <property name="authoritiesByUsernameQuery">
            <value>SELECT username,rolename FROM userrole WHERE username =
?</value>
        </property>
    </bean>

    <bean id="userCache" class="
org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache">
        <property name="cache">
            <bean class="
org.springframework.cache.ehcache.EhCacheFactoryBean ">
                <property name="cacheManager">
                    <bean class="
org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
                </property>
                <property name="cacheName" value="userCache"/>
            </bean>
        </property>
    </bean>

    <bean id="anonymousAuthenticationProvider" class="
org.acegisecurity.providers.anonymous.AnonymousAuthenticationProvider">
        <property name="key" value="anonymous"/>
    </bean>

    <bean id="roleVoter" class=" org.acegisecurity.vote.RoleVoter">
        <property name="rolePrefix" value=""/>
    </bean>

    <bean id="accessDecisionManager" class="
org.acegisecurity.vote.AffirmativeBased ">
        <property name="allowIfAllAbstainDecisions" value="false"/>
        <property name="decisionVoters">
            <list>
                <ref local="roleVoter"/>
            </list>
        </property>
    </bean>


ERROR 2007-08-31 06:23:50,843 StandardContext:filterStart - Exception
starting filter securityFilter
org.springframework.beans.factory.BeanDefinitionStoreException : Line 232 in
XML document from ServletContext resource [/WEB-INF/security.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: The content of
element type "beans" must match "(description?,(import|alias|bean)*)".
org.xml.sax.SAXParseException: The content of element type "beans" must
match "(description?,(import|alias|bean)*)".
    at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown
Source)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
(XmlBeanDefinitionReader.java:222)
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
XmlBeanDefinitionReader.java:173)
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:148)
    at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
AbstractBeanDefinitionReader.java:129)
    at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:145)
    at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(
XmlWebApplicationContext.java:126)
    at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
(XmlWebApplicationContext.java:94)
    at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(
AbstractRefreshableApplicationContext.java:89)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:262)
    at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(
AbstractRefreshableWebApplicationContext.java:139)
    at
org.springframework.web.context.ContextLoader.createWebApplicationContext(
ContextLoader.java:252)
    at
org.springframework.web.context.ContextLoader.initWebApplicationContext (
ContextLoader.java:190)
    at
org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:49)
    at org.apache.roller.ui.core.RollerContext.contextInitialized(
RollerContext.java :178)
    at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4216)
    at org.apache.catalina.core.ContainerBase.addChildInternal (
ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(
HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:488)
    at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start (ContainerBase.java
:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start (StandardEngine.java
:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)
    at org.apache.catalina.startup.Catalina.start (Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
INFO  2007-08-31 06:23:50,843 IPBanFilter:init - INIT IPBanFilter
INFO  2007-08-31 06:23:50,843 CompressionFilter:init - Compressed Output
ENABLED
INFO  2007-08-31 06:23:50,859 RequestMappingFilter:init - Request mapping
filter initialized, 1 mappers configured.
INFO  2007-08-31 06:23:50,875 HitCountQueue:shutdown - stopping worker
HitCountQueueProcessor
INFO  2007-08-31 06:23:50,875 ContinuousWorkerThread:run -
HitCountQueueProcessor Started.
INFO  2007-08-31 06:23:50,890 ReferrerQueueManagerImpl:<init> - Initializing
Referrer Queue Manager
INFO  2007-08-31 06:23:50,890 ReferrerQueueManagerImpl:<init> - Asynchronous
referrer processing = false
INFO  2007-08-31 06:23:50,906 CacheManager:<clinit> - Cache Manager
Initialized.
INFO  2007-08-31 06:23:50,906 CacheManager:<clinit> - Cache Factory =
org.apache.roller.util.cache.ExpiringLRUCacheFactoryImpl
INFO  2007-08-31 06:23:50,906 FuturePostingsInvalidationJob:input - Peeking
3 minutes into the future each pass
INFO  2007-08-31 06:23:50,906 ContinuousWorkerThread:run - future
invalidations thread Started.
ERROR 2007-08-31 06:23:50,921 FuturePostingsInvalidationJob:execute -
java.lang.InterruptedException
INFO  2007-08-31 06:23:50,937 ContinuousWorkerThread:run -
HitCountQueueProcessor INTERRUPT: sleep interrupted
INFO  2007-08-31 06:30:52,625 RollerConfig:<clinit> - successfully loaded
default properties.
INFO  2007-08-31 06:30:52,625 RollerConfig:<clinit> - successfully loaded
custom properties file from classpath
INFO  2007-08-31 06:30:52,625 RollerConfig:<clinit> - no custom properties
file specified via jvm option
INFO  2007-08-31 06:30:53,109 UpgradeDatabase:upgradeDatabase - Database is
current, no upgrade needed
INFO  2007-08-31 06:30:53,171 HibernatePersistenceStrategy:<init> -
configResource: /hibernate.cfg.xml
INFO  2007-08-31 06:30:53,171 HibernatePersistenceStrategy:<init> -
dialect:        org.hibernate.dialect.MySQL5Dialect
INFO  2007-08-31 06:30:53,390 Environment:<clinit> - Hibernate 3.1.2
INFO  2007-08-31 06:30:53,390 Environment:<clinit> -
hibernate.propertiesnot found
INFO  2007-08-31 06:30:53,406 Environment:<clinit> - using CGLIB reflection
optimizer
INFO  2007-08-31 06:30:53,406 Environment:<clinit> - using JDK 1.4
java.sql.Timestamp handling
INFO  2007-08-31 06:30:53,531 Configuration:configure - configuring from XML
document
INFO  2007-08-31 06:30:53,625 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/RollerPropertyData.hbm.xml
INFO  2007-08-31 06:30:53,812 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.RollerPropertyData ->
roller_properties
INFO  2007-08-31 06:30:53,843 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/UserData.hbm.xml
INFO  2007-08-31 06:30:53,890 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.UserData -> rolleruser
INFO  2007-08-31 06:30:53,906 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/RoleData.hbm.xml
INFO  2007-08-31 06:30:53,937 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.RoleData -> userrole
INFO  2007-08-31 06:30:54,062 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/RollerConfigData.hbm.xml
INFO  2007-08-31 06:30:54,093 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.RollerConfigData -> rollerconfig
INFO  2007-08-31 06:30:54,093 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WebsiteData.hbm.xml
INFO  2007-08-31 06:30:54,125 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WebsiteData -> website
INFO  2007-08-31 06:30:54,125 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/PermissionsData.hbm.xml
INFO  2007-08-31 06:30:54,140 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.PermissionsData ->
roller_user_permissions
INFO  2007-08-31 06:30:54,140 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/BookmarkData.hbm.xml
INFO  2007-08-31 06:30:54,156 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.BookmarkData -> bookmark
INFO  2007-08-31 06:30:54,156 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/CommentData.hbm.xml
INFO  2007-08-31 06:30:54,187 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.CommentData -> roller_comment
INFO  2007-08-31 06:30:54,187 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/FolderAssoc.hbm.xml
INFO  2007-08-31 06:30:54,203 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.FolderAssoc -> folderassoc
INFO  2007-08-31 06:30:54,203 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/FolderData.hbm.xml
INFO  2007-08-31 06:30:54,218 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.FolderData -> folder
INFO  2007-08-31 06:30:54,218 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WeblogTemplate.hbm.xml
INFO  2007-08-31 06:30:54,234 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WeblogTemplate -> webpage
INFO  2007-08-31 06:30:54,250 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/PingCategoryRestrictionData.hbm.xml
INFO  2007-08-31 06:30:54,250 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.PingCategoryRestrictionData ->
pingcategory
INFO  2007-08-31 06:30:54,250 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/AutoPingData.hbm.xml
INFO  2007-08-31 06:30:54,265 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.AutoPingData -> autoping
INFO  2007-08-31 06:30:54,265 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/PingQueueEntryData.hbm.xml
INFO  2007-08-31 06:30:54,281 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.PingQueueEntryData ->
pingqueueentry
INFO  2007-08-31 06:30:54,281 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/PingTargetData.hbm.xml
INFO  2007-08-31 06:30:54,296 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.PingTargetData -> pingtarget
INFO  2007-08-31 06:30:54,296 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/RefererData.hbm.xml
INFO  2007-08-31 06:30:54,312 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.RefererData -> referer
INFO  2007-08-31 06:30:54,312 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/TaskLockData.hbm.xml
INFO  2007-08-31 06:30:54,328 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.TaskLockData -> roller_tasklock
INFO  2007-08-31 06:30:54,328 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/HitCountData.hbm.xml
INFO  2007-08-31 06:30:54,343 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.HitCountData -> roller_hitcounts
INFO  2007-08-31 06:30:54,343 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WeblogEntryData.hbm.xml
INFO  2007-08-31 06:30:54,375 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WeblogEntryData -> weblogentry
INFO  2007-08-31 06:30:54,375 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WeblogEntryTagData.hbm.xml
INFO  2007-08-31 06:30:54,375 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WeblogEntryTagData ->
roller_weblogentrytag
INFO  2007-08-31 06:30:54,375 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WeblogEntryTagAggregateData.hbm.xml
INFO  2007-08-31 06:30:54,468 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WeblogEntryTagAggregateData ->
roller_weblogentrytagagg
INFO  2007-08-31 06:30:54,468 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/EntryAttributeData.hbm.xml
INFO  2007-08-31 06:30:54,468 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.EntryAttributeData ->
entryattribute
INFO  2007-08-31 06:30:54,484 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WeblogCategoryData.hbm.xml
INFO  2007-08-31 06:30:54,484 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WeblogCategoryData ->
weblogcategory
INFO  2007-08-31 06:30:54,484 Configuration:addResource - Reading mappings
from resource: org/apache/roller/pojos/WeblogCategoryAssoc.hbm.xml
INFO  2007-08-31 06:30:54,500 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.pojos.WeblogCategoryAssoc ->
weblogcategoryassoc
INFO  2007-08-31 06:30:54,500 Configuration:addResource - Reading mappings
from resource: org/apache/roller/planet/pojos/PlanetConfigData.hbm.xml
INFO  2007-08-31 06:30:54,515 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.planet.pojos.PlanetConfigData ->
rag_config
INFO  2007-08-31 06:30:54,515 Configuration:addResource - Reading mappings
from resource: org/apache/roller/planet/pojos/PlanetGroupData.hbm.xml
INFO  2007-08-31 06:30:54,531 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.planet.pojos.PlanetGroupData -> rag_group
INFO  2007-08-31 06:30:54,531 HbmBinder:bindCollection - Mapping collection:
org.apache.roller.planet.pojos.PlanetGroupData.subscriptions ->
rag_group_subscription
INFO  2007-08-31 06:30:54,531 Configuration:addResource - Reading mappings
from resource: org/apache/roller/planet/pojos/PlanetEntryData.hbm.xml
INFO  2007-08-31 06:30:54,531 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.planet.pojos.PlanetEntryData -> rag_entry
INFO  2007-08-31 06:30:54,546 Configuration:addResource - Reading mappings
from resource: org/apache/roller/planet/pojos/PlanetSubscriptionData.hbm.xml

INFO  2007-08-31 06:30:54,546 HbmBinder:bindRootPersistentClassCommonValues
- Mapping class: org.apache.roller.planet.pojos.PlanetSubscriptionData ->
rag_subscription
INFO  2007-08-31 06:30:54,546 HbmBinder:bindCollection - Mapping collection:
org.apache.roller.planet.pojos.PlanetSubscriptionData.groups ->
rag_group_subscription
INFO  2007-08-31 06:30:54,546 Configuration:doConfigure - Configured
SessionFactory: null
INFO  2007-08-31 06:30:54,546 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.pojos.UserData.permissions ->
roller_user_permissions
INFO  2007-08-31 06:30:54,562 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.pojos.UserData.roles -> userrole
INFO  2007-08-31 06:30:54,562 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.pojos.WebsiteData.permissions ->
roller_user_permissions
INFO  2007-08-31 06:30:54,562 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.pojos.FolderData.bookmarks -> bookmark
INFO  2007-08-31 06:30:54,562 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.pojos.WeblogEntryData.entryAttributes ->
entryattribute
INFO  2007-08-31 06:30:54,562 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.pojos.WeblogEntryData.tags ->
roller_weblogentrytag
INFO  2007-08-31 06:30:54,562 HbmBinder:bindCollectionSecondPass - Mapping
collection: org.apache.roller.planet.pojos.PlanetSubscriptionData.entries ->
rag_entry
INFO  2007-08-31 06:30:54,578 NamingHelper:getInitialContext - JNDI
InitialContext properties:{}
INFO  2007-08-31 06:30:54,578 DatasourceConnectionProvider:configure - Using
datasource: java:comp/env/jdbc/rollerdb
INFO  2007-08-31 06:30:54,578 SettingsFactory:buildSettings - RDBMS: MySQL,
version: 5.0.45-community-nt
INFO  2007-08-31 06:30:54,578 SettingsFactory:buildSettings - JDBC driver:
MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.14 ( $Date:
2006-10-18 17:40:15 +0200 (Wed, 18 Oct 2006) $, $Revision: 5888 $ )
INFO  2007-08-31 06:30:54,625 Dialect:<init> - Using dialect:
org.hibernate.dialect.MySQL5Dialect
INFO  2007-08-31 06:30:54,640
TransactionFactoryFactory:buildTransactionFactory - Using default
transaction strategy (direct JDBC transactions)
INFO  2007-08-31 06:30:54,640
TransactionManagerLookupFactory:getTransactionManagerLookup - No
TransactionManagerLookup configured (in JTA environment, use of read-write
or transactional second-level cache is not recommended)
INFO  2007-08-31 06:30:54,640 SettingsFactory:buildSettings - Automatic
flush during beforeCompletion(): disabled
INFO  2007-08-31 06:30:54,640 SettingsFactory:buildSettings - Automatic
session close at end of transaction: disabled
INFO  2007-08-31 06:30:54,640 SettingsFactory:buildSettings - JDBC batch
size: 15
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - JDBC batch
updates for versioned data: disabled
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - Scrollable
result sets: enabled
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - JDBC3
getGeneratedKeys(): enabled
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - Connection
release mode: auto
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - Maximum outer
join fetch depth: 2
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - Default batch
fetch size: 1
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - Generate SQL
with comments: disabled
INFO  2007-08-31 06:30:54,656 SettingsFactory:buildSettings - Order SQL
updates by primary key: disabled
INFO  2007-08-31 06:30:54,656 SettingsFactory:createQueryTranslatorFactory -
Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO  2007-08-31 06:30:54,656 ASTQueryTranslatorFactory:<init> - Using
ASTQueryTranslatorFactory
INFO  2007-08-31 06:30:54,671 SettingsFactory:buildSettings - Query language
substitutions: {}
INFO  2007-08-31 06:30:54,671 SettingsFactory:buildSettings - Second-level
cache: enabled
INFO  2007-08-31 06:30:54,671 SettingsFactory:buildSettings - Query cache:
disabled
INFO  2007-08-31 06:30:54,671 SettingsFactory:createCacheProvider - Cache
provider: org.hibernate.cache.EhCacheProvider
INFO  2007-08-31 06:30:54,671 SettingsFactory:buildSettings - Optimize cache
for minimal puts: disabled
INFO  2007-08-31 06:30:54,671 SettingsFactory:buildSettings - Structured
second-level cache entries: enabled
INFO  2007-08-31 06:30:54,687 SettingsFactory:buildSettings - Statistics:
enabled
INFO  2007-08-31 06:30:54,687 SettingsFactory:buildSettings - Deleted entity
synthetic identifier rollback: disabled
INFO  2007-08-31 06:30:54,687 SettingsFactory:buildSettings - Default
entity-mode: pojo
INFO  2007-08-31 06:30:54,734 SessionFactoryImpl:<init> - building session
factory
WARN  2007-08-31 06:30:54,828 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.BookmarkData]; using defaults.
WARN  2007-08-31 06:30:55,218 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.CommentData]; using defaults.
WARN  2007-08-31 06:30:55,250 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.FolderData]; using defaults.
WARN  2007-08-31 06:30:55,296 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.WeblogEntryTagData]; using defaults.
WARN  2007-08-31 06:30:55,312 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.PermissionsData]; using defaults.
WARN  2007-08-31 06:30:55,328 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.RoleData]; using defaults.
WARN  2007-08-31 06:30:55,343 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.HitCountData]; using defaults.
WARN  2007-08-31 06:30:55,421 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.WeblogCategoryData]; using defaults.
WARN  2007-08-31 06:30:55,500 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.RefererData]; using defaults.
WARN  2007-08-31 06:30:55,531 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.AutoPingData]; using defaults.
WARN  2007-08-31 06:30:55,546 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.WeblogCategoryAssoc]; using
defaults.
WARN  2007-08-31 06:30:55,593 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.TaskLockData]; using defaults.
WARN  2007-08-31 06:30:55,609 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.WeblogEntryData]; using defaults.
WARN  2007-08-31 06:30:55,640 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.WeblogTemplate]; using defaults.
WARN  2007-08-31 06:30:55,656 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.PingQueueEntryData]; using defaults.
WARN  2007-08-31 06:30:55,656 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.PingCategoryRestrictionData]; using
defaults.
WARN  2007-08-31 06:30:55,671 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.PingTargetData]; using defaults.
WARN  2007-08-31 06:30:55,687 EhCacheProvider:buildCache - Could not find
configuration [ org.apache.roller.pojos.WeblogEntryTagAggregateData]; using
defaults.
WARN  2007-08-31 06:30:55,750 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.EntryAttributeData]; using defaults.
WARN  2007-08-31 06:30:55,781 EhCacheProvider:buildCache - Could not find
configuration [org.apache.roller.pojos.FolderAssoc]; using defaults.
INFO  2007-08-31 06:30:55,984 SessionFactoryObjectFactory:addInstance - Not
binding factory to JNDI, no JNDI name configured
INFO  2007-08-31 06:30:55,984 RollerFactory:getRoller - Using Roller Impl:
org.apache.roller.business.hibernate.HibernateRollerImpl
INFO  2007-08-31 06:30:56,375 ApplicationContext:log - Loading Spring root
WebApplicationContext
ERROR 2007-08-31 06:30:57,093 ContextLoader:initWebApplicationContext -
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'filterInvocationInterceptor' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot resolve reference to bean
'authenticationManager' while setting bean property 'authenticationManager';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'authenticationManager' defined in
ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to
bean 'ldapAuthProvider' while setting bean property 'providers' with key
[1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'authenticationManager' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot resolve reference to bean 'ldapAuthProvider'
while setting bean property 'providers' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586'
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586'
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'ldapUserSearch' is defined
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(
DefaultListableBeanFactory.java:360)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition
(AbstractBeanFactory.java:686)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:219)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:378)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition
(BeanDefinitionValueResolver.java:151)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:97)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments
(AbstractAutowireCapableBeanFactory.java:747)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(
AbstractAutowireCapableBeanFactory.java:644)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:358)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(
BeanDefinitionValueResolver.java:202)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:110)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(
AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(
DefaultListableBeanFactory.java:283)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:313)
    at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(
AbstractRefreshableWebApplicationContext.java:139)
    at
org.springframework.web.context.ContextLoader.createWebApplicationContext(
ContextLoader.java:252)
    at
org.springframework.web.context.ContextLoader.initWebApplicationContext (
ContextLoader.java:190)
    at
org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:49)
    at org.apache.roller.ui.core.RollerContext.contextInitialized(
RollerContext.java :178)
    at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4216)
    at org.apache.catalina.core.ContainerBase.addChildInternal (
ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(
HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:488)
    at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start (ContainerBase.java
:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start (StandardEngine.java
:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)
    at org.apache.catalina.startup.Catalina.start (Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
FATAL 2007-08-31 06:30:57,109 RollerContext:contextInitialized -
RollerContext initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'filterInvocationInterceptor' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot resolve reference to bean
'authenticationManager' while setting bean property 'authenticationManager';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'authenticationManager' defined in
ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to
bean 'ldapAuthProvider' while setting bean property 'providers' with key
[1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'authenticationManager' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot resolve reference to bean 'ldapAuthProvider'
while setting bean property 'providers' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586'
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586'
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'ldapUserSearch' is defined
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(
DefaultListableBeanFactory.java:360)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition
(AbstractBeanFactory.java:686)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:219)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:378)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition
(BeanDefinitionValueResolver.java:151)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:97)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments
(AbstractAutowireCapableBeanFactory.java:747)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(
AbstractAutowireCapableBeanFactory.java:644)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:358)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(
BeanDefinitionValueResolver.java:202)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:110)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(
AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(
DefaultListableBeanFactory.java:283)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:313)
    at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(
AbstractRefreshableWebApplicationContext.java:139)
    at
org.springframework.web.context.ContextLoader.createWebApplicationContext(
ContextLoader.java:252)
    at
org.springframework.web.context.ContextLoader.initWebApplicationContext (
ContextLoader.java:190)
    at
org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:49)
    at org.apache.roller.ui.core.RollerContext.contextInitialized(
RollerContext.java :178)
    at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4216)
    at org.apache.catalina.core.ContainerBase.addChildInternal (
ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(
HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:488)
    at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start (ContainerBase.java
:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start (StandardEngine.java
:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)
    at org.apache.catalina.startup.Catalina.start (Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
ERROR 2007-08-31 06:30:57,125 StandardContext:filterStart - Exception
starting filter securityFilter
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'filterInvocationInterceptor' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot resolve reference to bean
'authenticationManager' while setting bean property 'authenticationManager';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'authenticationManager' defined in
ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to
bean 'ldapAuthProvider' while setting bean property 'providers' with key
[1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'authenticationManager' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot resolve reference to bean 'ldapAuthProvider'
while setting bean property 'providers' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ldapAuthProvider' defined in ServletContext resource
[/WEB-INF/security.xml]: Cannot create inner bean '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586'
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586'
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator#a8e586 '
defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve
reference to bean 'ldapUserSearch' while setting bean property 'userSearch';
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean
named 'ldapUserSearch' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'ldapUserSearch' is defined
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(
DefaultListableBeanFactory.java:360)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition
(AbstractBeanFactory.java:686)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:219)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:378)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition
(BeanDefinitionValueResolver.java:151)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:97)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments
(AbstractAutowireCapableBeanFactory.java:747)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(
AbstractAutowireCapableBeanFactory.java:644)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:358)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(
BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(
BeanDefinitionValueResolver.java:202)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:110)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:186)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(
BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1046)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(
AbstractAutowireCapableBeanFactory.java:857)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:378)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:145)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(
DefaultListableBeanFactory.java:283)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:313)
    at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(
AbstractRefreshableWebApplicationContext.java:139)
    at
org.springframework.web.context.ContextLoader.createWebApplicationContext(
ContextLoader.java:252)
    at
org.springframework.web.context.ContextLoader.initWebApplicationContext (
ContextLoader.java:190)
    at
org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:49)
    at org.apache.roller.ui.core.RollerContext.contextInitialized(
RollerContext.java :178)
    at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4216)
    at org.apache.catalina.core.ContainerBase.addChildInternal (
ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDescriptor (
HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(
HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:488)
    at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start (ContainerBase.java
:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start (StandardEngine.java
:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)
    at org.apache.catalina.startup.Catalina.start (Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
INFO  2007-08-31 06:30:57,125 IPBanFilter:init - INIT IPBanFilter
INFO  2007-08-31 06:30:57,125 CompressionFilter:init - Compressed Output
ENABLED
INFO  2007-08-31 06:30:57,140 RequestMappingFilter:init - Request mapping
filter initialized, 1 mappers configured.
INFO  2007-08-31 06:30:57,156 HitCountQueue:shutdown - stopping worker
HitCountQueueProcessor
INFO  2007-08-31 06:30:57,156 ContinuousWorkerThread:run -
HitCountQueueProcessor Started.
INFO  2007-08-31 06:30:57,171 ReferrerQueueManagerImpl:<init> - Initializing
Referrer Queue Manager
INFO  2007-08-31 06:30:57,171 ReferrerQueueManagerImpl:<init> - Asynchronous
referrer processing = false
INFO  2007-08-31 06:30:57,171 CacheManager:<clinit> - Cache Manager
Initialized.
INFO  2007-08-31 06:30:57,187 CacheManager:<clinit> - Cache Factory =
org.apache.roller.util.cache.ExpiringLRUCacheFactoryImpl
INFO  2007-08-31 06:30:57,187 FuturePostingsInvalidationJob:input - Peeking
3 minutes into the future each pass
INFO  2007-08-31 06:30:57,187 ContinuousWorkerThread:run - future
invalidations thread Started.
ERROR 2007-08-31 06:30:57,203 FuturePostingsInvalidationJob:execute -
java.lang.InterruptedException
INFO  2007-08-31 06:30:57,203 ContinuousWorkerThread:run -
HitCountQueueProcessor INTERRUPT: sleep interrupted

Entry is searchable before publish date

Posted by he...@gsa.gov.
Hi,

We noticed inconsistency regarding index an entry. When we created a new 
entry and assigned a future publish date, the entry became searchable 
immediately. It caused the search result page to report wrong number and 
the result page won't be able to show that entry. In the database table 
WEBLOGENTRY, the status is "PUBLISHED" even the current time has not pass 
the publish time yet. Please advise how do we deal with this problem. 
Thanks.

Henry Chang
IT Specialist
USA.gov Technologies 
General Services Administration
Office Phone: 202-219-1801
E-mail: henry.chang@gsa.gov

Re: Roller with LDAP Auth Trouble. Syntax or ???

Posted by Ted Fines <fi...@Macalester.edu>.
Hi,

Thank you.  I think you're right.  After re-editing the file more carefully,
the LDAP authentication piece is now working.

By the way, where is the code that connects to the ldap server, binds as
admin, searches for the user, etc.?  Is that part of Roller, or is that part
of Tomcat by default, or part of one of the extra .jar files that had to be
added during installation?

Thanks,
Ted

On 8/31/07, Dave <sn...@gmail.com> wrote:
>
> Look like you have an open bean.
>
> You open a <bean> element on line 73, but fail to close it.
>
>    <!-- BEGIN: LDAP/RollerDB hybrid security configuration -->
>    <bean id="initialDirContextFactory"
> class="org.acegisecurity.ldap.DefaultInitialDirContextFactory">
>    <constructor-arg value="ldap://ldap.macalester.edu:389/o=mac"/>
>      <property name="managerDn">
>        <value>SECRET_DN</value>
>      </property>
>      <property name="managerPassword">
>        <value>SECRET_PASSWORD</value>
>      </property>
>
> Add </bean> on line 81 to close that <bean>
>
> - Dave
>

Re: Roller with LDAP Auth Trouble. Syntax or ???

Posted by Dave <sn...@gmail.com>.
Look like you have an open bean.

You open a <bean> element on line 73, but fail to close it.

   <!-- BEGIN: LDAP/RollerDB hybrid security configuration -->
   <bean id="initialDirContextFactory"
class="org.acegisecurity.ldap.DefaultInitialDirContextFactory">
   <constructor-arg value="ldap://ldap.macalester.edu:389/o=mac"/>
     <property name="managerDn">
       <value>SECRET_DN</value>
     </property>
     <property name="managerPassword">
       <value>SECRET_PASSWORD</value>
     </property>

Add </bean> on line 81 to close that <bean>

- Dave

Re: Roller with LDAP Auth Trouble. Syntax or ???

Posted by Ted Fines <fi...@Macalester.edu>.
Hi,

Thank you.  Here is the entire server.xml.  The line in question, line 232
is in the "SSL SWITCHING" section, which I did not edit. ???

Thanks,
Ted

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  The ASF licenses this file to You
  under the Apache License, Version 2.0 (the "License"); you may not
  use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.  For additional information regarding
  copyright in this work, please see the NOTICE file in the top level
  directory of this distribution.
-->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

    <!-- ======================== FILTER CHAIN ======================= -->
    <bean id="filterChainProxy" class="
org.acegisecurity.util.FilterChainProxy">
        <property name="filterInvocationDefinitionSource">
            <value>
                CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
                PATTERN_TYPE_APACHE_ANT

/**=httpSessionContextIntegrationFilter,authenticationProcessingFilter,rememberMeProcessingFilter,channelProcessingFilter,remoteUserFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor
            </value>
        </property>
    </bean>

    <!-- ======================== AUTHENTICATION ======================= -->

    <!-- Note the order that entries are placed against the
objectDefinitionSource is critical.
         The FilterSecurityInterceptor will work from the top of the list
down to the FIRST pattern that matches the request URL.
         Accordingly, you should place MOST SPECIFIC (ie a/b/c/d.*)
expressions first, with LEAST SPECIFIC (ie a/.*) expressions last -->
    <bean id="filterInvocationInterceptor" class="
org.acegisecurity.intercept.web.FilterSecurityInterceptor">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="accessDecisionManager" ref="accessDecisionManager"/>
        <property name="objectDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT
                /roller-ui/login-redirect.jsp=admin,editor
                /roller-ui/yourProfile**=admin,editor
                /roller-ui/createWebsite**=admin,editor
                /roller-ui/yourWebsites**=admin,editor
                /roller-ui/authoring/**=admin,editor
                /roller-ui/admin/**=admin
                /rewrite-status*=admin
                /roller-ui/user.do*=register
            </value>
                <!-- Add this to above list for LDAP/SSO configuration -->
                <!-- /roller-ui/user.do*=register -->
        </property>
    </bean>

    <bean id="authenticationManager" class="
org.acegisecurity.providers.ProviderManager">
        <property name="providers">
            <list>
                <ref local="daoAuthenticationProvider"/>
                <ref local="ldapAuthProvider"/>
                <!-- Uncomment this for LDAP/SSO configuration <ref
local="ldapAuthProvider"/> -->
                <ref
local="anonymousAuthenticationProvider"/>
                <!-- rememberMeAuthenticationProvider added programmatically
-->
            </list>
        </property>
    </bean>



    <!-- BEGIN: LDAP/RollerDB hybrid security configuration -->
    <bean id="initialDirContextFactory" class="
org.acegisecurity.ldap.DefaultInitialDirContextFactory">
    <constructor-arg value="ldap://ldap.macalester.edu:389/o=mac"/>
      <property name="managerDn">
        <value>SECRET_DN</value>
      </property>
      <property name="managerPassword">
        <value>SECRET_PASSWORD</value>
      </property>

      <property name="extraEnvVars">
        <map>
          <entry>
            <key>
              <value>java.naming.referral</value>
            </key>
            <value>follow</value>
          </entry>
        </map>
      </property>
    </bean>
    <bean id="ldapAuthProvider" class="
org.acegisecurity.providers.ldap.LdapAuthenticationProvider">
      <constructor-arg>
        <bean class="
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator">
           <constructor-arg>
             <ref local="initialDirContextFactory"/>
           </constructor-arg>
           <property name="userSearch"><ref
bean="ldapUserSearch"/></property>
        </bean>
      </constructor-arg>
      <constructor-arg>
        <ref local="jdbcAuthoritiesPopulator"/>
      </constructor-arg>
      <property name="userCache" ref="userCache"/>
    </bean>

    <bean id="jdbcAuthoritiesPopulator" class="
org.apache.roller.ui.core.security.AuthoritiesPopulator">
        <property name="dataSource">
            <bean class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName"
value="java:comp/env/jdbc/rollerdb"/>
            </bean>
        </property>
        <property name="authoritiesByUsernameQuery">
            <value>SELECT username,rolename FROM userrole WHERE username =
?</value>
        </property>
    <property name="defaultRole"><value>register</value></property>
    </bean>

    <!-- Log failed authentication attempts to commons-logging -->
    <bean id="loggerListener" class="
org.acegisecurity.event.authentication.LoggerListener"/>
    <bean id="daoAuthenticationProvider" class="
org.acegisecurity.providers.dao.DaoAuthenticationProvider">
         <property name="userDetailsService" ref="jdbcAuthenticationDao"/>
         <property name="userCache" ref="userCache"/>
    </bean>

    <!-- Read users from database -->
    <bean id="jdbcAuthenticationDao" class="
org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
        <property name="dataSource">
            <bean class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName"
value="java:comp/env/jdbc/rollerdb"/>
            </bean>
        </property>
        <property name="usersByUsernameQuery">
            <value>SELECT username,passphrase,isenabled FROM rolleruser
WHERE username = ?</value>
        </property>
        <property name="authoritiesByUsernameQuery">
            <value>SELECT username,rolename FROM userrole WHERE username =
?</value>
        </property>
    </bean>

    <bean id="userCache" class="
org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache">
        <property name="cache">
            <bean class="
org.springframework.cache.ehcache.EhCacheFactoryBean">
                <property name="cacheManager">
                    <bean class="
org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
                </property>
                <property name="cacheName" value="userCache"/>
            </bean>
        </property>
    </bean>

    <bean id="anonymousAuthenticationProvider" class="
org.acegisecurity.providers.anonymous.AnonymousAuthenticationProvider">
        <property name="key" value="anonymous"/>
    </bean>

    <bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter">
        <property name="rolePrefix" value=""/>
    </bean>

    <bean id="accessDecisionManager" class="
org.acegisecurity.vote.AffirmativeBased">
        <property name="allowIfAllAbstainDecisions" value="false"/>
        <property name="decisionVoters">
            <list>
                <ref local="roleVoter"/>
            </list>
        </property>
    </bean>

    <!-- ===================== HTTP REQUEST SECURITY ====================
-->
    <bean id="httpSessionContextIntegrationFilter" class="
org.acegisecurity.context.HttpSessionContextIntegrationFilter"/>

    <bean id="authenticationProcessingFilter" class="
org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="authenticationFailureUrl"
value="/roller-ui/login.do?error=true"/>
        <property name="defaultTargetUrl" value="/"/>
        <property name="filterProcessesUrl" value="/j_security_check"/>
        <property name="rememberMeServices" ref="rememberMeServices"/>
    </bean>

    <bean id="anonymousProcessingFilter" class="
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter">
        <property name="key" value="anonymous"/>
        <property name="userAttribute" value="anonymous,ROLE_ANONYMOUS"/>
    </bean>

    <bean id="exceptionTranslationFilter" class="
org.acegisecurity.ui.ExceptionTranslationFilter">
        <property name="authenticationEntryPoint"
ref="authenticationProcessingFilterEntryPoint"/>
    </bean>

    <bean id="remoteUserFilter" class="
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter"/>

    <bean id="authenticationProcessingFilterEntryPoint" class="
org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
        <property name="loginFormUrl" value="/roller-ui/login.do"/>
        <property name="forceHttps" value="false"/>
    </bean>

    <!-- ===================== REMEMBER ME ==================== -->
    <bean id="rememberMeProcessingFilter" class="
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="rememberMeServices" ref="rememberMeServices"/>
    </bean>

    <bean id="rememberMeServices" class="
org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices">
        <property name="userDetailsService" ref="jdbcAuthenticationDao"/>
        <property name="key" value="rollerlovesacegi"/>
        <property name="parameter" value="rememberMe"/>
    </bean>

    <bean id="rememberMeAuthenticationProvider" class="
org.acegisecurity.providers.rememberme.RememberMeAuthenticationProvider">
        <property name="key" value="rollerlovesacegi"/>
    </bean>

    <!-- ===================== SSL SWITCHING ==================== -->
    <bean id="channelProcessingFilter" class="
org.acegisecurity.securechannel.ChannelProcessingFilter">
        <property name="channelDecisionManager"
ref="channelDecisionManager"/>
        <property name="filterInvocationDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT
            </value>
        </property>
    </bean>

    <bean id="channelDecisionManager" class="
org.acegisecurity.securechannel.ChannelDecisionManagerImpl">
        <property name="channelProcessors">
            <list>
                <bean class="
org.acegisecurity.securechannel.SecureChannelProcessor"/>
                <bean class="
org.acegisecurity.securechannel.InsecureChannelProcessor"/>
            </list>
        </property>
    </bean>
</beans>


On 8/31/07, Dave <sn...@gmail.com> wrote:
>
> On 8/31/07, Ted Fines <te...@beta.macalester.edu> wrote:
> > Hi,
> >
> > I am setting up a new Roller test install and trying to get LDAP Auth
> > working.  I am following the instructions at:
> > http://rollerweblogger.org/wiki/Wiki.jsp?page=LDAP_SSP_FAQ
> >
> > Here is my AUTHENTICATION section from server.xml, followed by the log
> > output when I restart Tomcat and try to access Roller with this
> > server.xmlin place.  (I have replace the bind dn and pass with
> > "SECRET_DN" and
> > "SECRET_PASSWORD".)
> >
> > While I am an experienced LDAP programmer/admin, I am not a Java
> programmer
> > and don't really get what the error log is trying to tell me.
> >
> > ERROR 2007-08-31 06:23:50,843 StandardContext:filterStart - Exception
> > starting filter securityFilter
> > org.springframework.beans.factory.BeanDefinitionStoreException : Line
> 232 in
> > XML document from ServletContext resource [/WEB-INF/security.xml] is
> > invalid; nested exception is org.xml.sax.SAXParseException: The content
> of
> > element type "beans" must match "(description?,(import|alias|bean)*)".
> > org.xml.sax.SAXParseException: The content of element type "beans" must
> > match "(description?,(import|alias|bean)*)".
>
> The error message is telling you that on line 232 of security.xml you
> have a <bean> element that does not have the correct contents. I can't
> spot the problem in the XML that you sent. Perhaps you could send the
> entire file or tell us precisely what changes you made to it?
>
> - Dave
>

Re: Roller with LDAP Auth Trouble. Syntax or ???

Posted by Dave <sn...@gmail.com>.
On 8/31/07, Ted Fines <te...@beta.macalester.edu> wrote:
> Hi,
>
> I am setting up a new Roller test install and trying to get LDAP Auth
> working.  I am following the instructions at:
> http://rollerweblogger.org/wiki/Wiki.jsp?page=LDAP_SSP_FAQ
>
> Here is my AUTHENTICATION section from server.xml, followed by the log
> output when I restart Tomcat and try to access Roller with this
> server.xmlin place.  (I have replace the bind dn and pass with
> "SECRET_DN" and
> "SECRET_PASSWORD".)
>
> While I am an experienced LDAP programmer/admin, I am not a Java programmer
> and don't really get what the error log is trying to tell me.
>
> ERROR 2007-08-31 06:23:50,843 StandardContext:filterStart - Exception
> starting filter securityFilter
> org.springframework.beans.factory.BeanDefinitionStoreException : Line 232 in
> XML document from ServletContext resource [/WEB-INF/security.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException: The content of
> element type "beans" must match "(description?,(import|alias|bean)*)".
> org.xml.sax.SAXParseException: The content of element type "beans" must
> match "(description?,(import|alias|bean)*)".

The error message is telling you that on line 232 of security.xml you
have a <bean> element that does not have the correct contents. I can't
spot the problem in the XML that you sent. Perhaps you could send the
entire file or tell us precisely what changes you made to it?

- Dave