Chemistry
  1. Chemistry
  2. CMIS-419

Issue with Enabling Spring configurations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Invalid
    • Affects Version/s: OpenCMIS 0.4.0
    • Fix Version/s: OpenCMIS 0.4.0
    • Component/s: opencmis-server
    • Labels:
      None
    • Environment:

      Linux
      Websphere 7.0
      JRE1.6
      Spring 2.5.5

      Description

      We are using the OpenCmis framework code to talk to FileNet repository. The code is spring enabled to load the resources (FileNet repository information) using CMIS Service Factory Bean. Below are the configurations done in the web.xml file and service XML.

      Web.xml
      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>/WEB-INF/CmisService.xml </param-value>
      </context-param> <listener>
      <description>ContextLoaderListener</description>
      <display-name>ContextLoaderListener</display-name>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>

      service.xml
      beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

      • <!-- DBConnect
        -->
        + <bean id="CmisLifecycleBean" class="com.thrivent.cmis.server.impl.CmisLifecycleBean">
        <property name="cmisServiceFactory" ref="CmisServiceFactory" />
        </bean>
        <bean id="CmisServiceFactory" class="x.y.z.XYZServiceFactory" />
        </beans>

      Here the CmisLifecycleBean is implementing the classes ServletContextAware,InitializingBean, DisposableBean.that inturn is using the CmisServiceFactory class to load the resources. There are no errors in the logs, however the resources are not loaded during startup. However, incase the code is not spring enabled (commented out the web.xml portion specified above) the resources are getting loaded successfully using the below listener.

      <listener>
      <listener-class>
      org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener</listener-class>
      </listener>

      In case the code is not Spring enabled the results are succefully returned from Filenet as the resources are cached properly during startup. Not sure what we are missing to make the code spring enabled and have the resources loaded successfully using CMIS. Please help and suggest.

      Thanks in advance,
      Krishna

        Activity

        Krishna Penugonda created issue -
        Krishna Penugonda made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Krishna Penugonda made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Krishna Penugonda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development