Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-627

jespeed2 step by step configuration LDAP with Active Directory Service

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.0-FINAL
    • None
    • Other
    • None
    • Windows XP

    Description

      Am using install version of jetspeed 2.................
      initially am trying with apacheDS i copied the Security-spi-ldap-atn.xml,Security-spi-ldap.xml and replaced theSecurity-spi-atn.xml file . and removed the jetspeed-security 2.0.jar file from the lib.

      I was not sure that what i did is right ..

      so i need help in configuring the LDAP for MS Active Directory Service.........
      its urgent...................

      Thanks in Advance

      Am getting this error in the console ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

      Dec 15, 2006 10:06:48 AM org.apache.catalina.core.AprLifecycleListener lifecycle
      Event
      INFO: The Apache Portable Runtime which allows optimal performance in production
      environments was not found on the java.library.path: C:\java\jdk1.5.0\bin;.;C:\
      WINDOWS\system32;C:\WINDOWS;C:\XEClient\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WI
      NDOWS\System32\Wbem;C:\java\jdk1.5.0\bin;C:\Program Files\TortoiseCVS;C:\ant\apa
      che-ant-1.6.5\bin;C:\Program Files\Mozilla Firefox;C:\Program Files\Apache Softw
      are Foundation\maven-2.0.4\bin;
      Dec 15, 2006 10:06:48 AM org.apache.coyote.http11.Http11BaseProtocol init
      INFO: Initializing Coyote HTTP/1.1 on http-5010
      Dec 15, 2006 10:06:48 AM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 781 ms
      Dec 15, 2006 10:06:48 AM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Dec 15, 2006 10:06:48 AM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
      Dec 15, 2006 10:06:48 AM org.apache.catalina.core.StandardHost start
      INFO: XML validation disabled
      Dec 15, 2006 10:06:49 AM org.apache.catalina.startup.HostConfig deployDescriptor

      WARNING: A docBase D:\Program Files\Apache Jetspeed 2.0\webapps\j2-admin inside
      the host appBase has been specified, and will be ignored
      log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
      anagerBase).
      log4j:WARN Please initialize the log4j system properly.
      JetspeedContainerServlet: starting initialization of Portlet Application at: j2-
      admin
      JetspeedContainerServlet: initialization done for Portlet Application at: j2-adm
      in
      Dec 15, 2006 10:06:50 AM org.apache.catalina.startup.HostConfig deployDescriptor

      WARNING: A docBase D:\Program Files\Apache Jetspeed 2.0\webapps\jetspeed inside
      the host appBase has been specified, and will be ignored
      Dec 15, 2006 10:06:50 AM org.apache.catalina.realm.JAASRealm setUseContextClassL
      oader
      INFO: Setting useContextClassLoader = false
      Dec 15, 2006 10:06:51 AM org.apache.catalina.startup.ContextConfig validateSecur
      ityRoles
      INFO: WARNING: Security role name admin used in an <auth-constraint> without bei
      ng defined in a <security-role>
      log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
      anagerBase).
      log4j:WARN Please initialize the log4j system properly.
      org.springframework.beans.factory.BeanDefinitionStoreException: Error registerin
      g bean with name 'org.apache.jetspeed.security.impl.RdbmsPolicy' defined in Serv
      letContext resource [/WEB-INF/assembly/security-atz.xml]: Bean class [org.apache
      .jetspeed.security.impl.RdbmsPolicy] not found; nested exception is java.lang.Cl
      assNotFoundException: org.apache.jetspeed.security.impl.RdbmsPolicy
      java.lang.ClassNotFoundException: org.apache.jetspeed.security.impl.RdbmsPolicy
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1338)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1187)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.c
      reateBeanDefinition(BeanDefinitionReaderUtils.java:60)
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:306)
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:274)
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:186)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
      rBeanDefinitions(XmlBeanDefinitionReader.java:175)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:133)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:99)
      at org.springframework.web.context.support.XmlWebApplicationContext.load
      BeanDefinitions(XmlWebApplicationContext.java:114)
      at org.springframework.web.context.support.XmlWebApplicationContext.load
      BeanDefinitions(XmlWebApplicationContext.java:82)
      at org.springframework.context.support.AbstractRefreshableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
      at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:262)
      at org.springframework.web.context.support.AbstractRefreshableWebApplica
      tionContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
      at org.apache.jetspeed.components.SpringComponentManager.start(SpringCom
      ponentManager.java:217)
      at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:1
      40)
      at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:
      147)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
      java:1091)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:92
      5)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
      t.java:3880)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
      141)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
      9)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
      va:603)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
      ava:535)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :310)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      50)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
      )
      at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      FATAL: Jetspeed: init() failed:
      org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization excepti
      on!
      at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:1
      49)
      at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:
      147)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
      java:1091)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:92
      5)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
      t.java:3880)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
      141)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
      9)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
      va:603)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
      ava:535)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :310)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      50)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
      )
      at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Error
      registering bean with name 'org.apache.jetspeed.security.impl.RdbmsPolicy' defi
      ned in ServletContext resource [/WEB-INF/assembly/security-atz.xml]: Bean class
      [org.apache.jetspeed.security.impl.RdbmsPolicy] not found; nested exception is j
      ava.lang.ClassNotFoundException: org.apache.jetspeed.security.impl.RdbmsPolicy
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:365)
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:274)
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:186)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
      rBeanDefinitions(XmlBeanDefinitionReader.java:175)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
      nDefinitions(XmlBeanDefinitionReader.java:133)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:99)
      at org.springframework.web.context.support.XmlWebApplicationContext.load
      BeanDefinitions(XmlWebApplicationContext.java:114)
      at org.springframework.web.context.support.XmlWebApplicationContext.load
      BeanDefinitions(XmlWebApplicationContext.java:82)
      at org.springframework.context.support.AbstractRefreshableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
      at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:262)
      at org.springframework.web.context.support.AbstractRefreshableWebApplica
      tionContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
      at org.apache.jetspeed.components.SpringComponentManager.start(SpringCom
      ponentManager.java:217)
      at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:1
      40)
      ... 27 more
      Caused by: java.lang.ClassNotFoundException: org.apache.jetspeed.security.impl.R
      dbmsPolicy
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1338)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1187)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.c
      reateBeanDefinition(BeanDefinitionReaderUtils.java:60)
      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.
      parseBeanDefinition(DefaultXmlBeanDefinitionParser.java:306)
      ... 39 more
      INFO: Jetspeed Initialization complete, Ready to service requests.
      Dec 15, 2006 10:06:52 AM org.apache.catalina.startup.HostConfig deployDescriptor

      WARNING: A docBase D:\Program Files\Apache Jetspeed 2.0\webapps\jpetstore inside
      the host appBase has been specified, and will be ignored
      Dec 15, 2006 10:06:52 AM org.apache.catalina.startup.ContextConfig applicationWe
      bConfig
      INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].
      StandardHost[localhost].StandardContext[/jpetstore]
      Dec 15, 2006 10:06:52 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive demo.war
      Dec 15, 2006 10:06:53 AM org.apache.catalina.startup.ContextConfig validateSecur
      ityRoles
      INFO: WARNING: Security role name tomcat used in an <auth-constraint> without be
      ing defined in a <security-role>
      log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
      anagerBase).
      log4j:WARN Please initialize the log4j system properly.
      JetspeedContainerServlet: starting initialization of Portlet Application at: dem
      o
      JetspeedContainerServlet: initialization done for Portlet Application at: demo
      Dec 15, 2006 10:06:53 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive jsf-demo.war
      Dec 15, 2006 10:06:53 AM org.apache.catalina.startup.ContextConfig applicationWe
      bConfig
      INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].
      StandardHost[localhost].StandardContext[/jsf-demo]
      Dec 15, 2006 10:06:53 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive perl.war
      JetspeedContainerServlet: starting initialization of Portlet Application at: per
      l
      JetspeedContainerServlet: initialization done for Portlet Application at: perl
      Dec 15, 2006 10:06:53 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive php.war
      log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
      anagerBase).
      log4j:WARN Please initialize the log4j system properly.
      JetspeedContainerServlet: starting initialization of Portlet Application at: php

      JetspeedContainerServlet: initialization done for Portlet Application at: php
      Dec 15, 2006 10:06:53 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive rss.war
      Dec 15, 2006 10:06:53 AM org.springframework.beans.factory.xml.XmlBeanDefinition
      Reader loadBeanDefinitions
      INFO: Loading XML bean definitions from resource loaded through InputStream
      JetspeedContainerServlet: starting initialization of Portlet Application at: rss

      JetspeedContainerServlet: initialization done for Portlet Application at: rss
      Dec 15, 2006 10:06:54 AM org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Starting Coyote HTTP/1.1 on http-5010
      Dec 15, 2006 10:06:54 AM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      Dec 15, 2006 10:06:54 AM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/16 config=null
      Dec 15, 2006 10:06:54 AM org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      Dec 15, 2006 10:06:54 AM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 6202 ms

      *****************************************************This is the error in the browser****************************************************************

      exception

      javax.servlet.ServletException: Failed to initalize jetspeed. org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
      org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:207)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      root cause

      org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
      org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:149)
      org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:147)
      org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
      org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
      org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
      org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
      org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      org.apache.catalina.startup.Catalina.start(Catalina.java:536)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
      org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413

      Attachments

        Activity

          People

            Unassigned Unassigned
            renick Renick J V
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: