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

        Hide
        Florian Müller added a comment -

        I'm not sure I understand what you are trying to achieve. You write you want to connect to a FileNet repository (as a client, I guess) but you are describing the setup of a CMIS server.

        Is your application a CMIS client or a CMIS server?

        Show
        Florian Müller added a comment - I'm not sure I understand what you are trying to achieve. You write you want to connect to a FileNet repository (as a client, I guess) but you are describing the setup of a CMIS server. Is your application a CMIS client or a CMIS server?
        Hide
        Krishna Penugonda added a comment -

        This application is a CMIS server. Our CMIS server will internally be talking to FileNet repository and more propertiery repository. For propietry repository we have EJB integration layer and in order to comuunicate to this EJB layer CMIS server needs to be spring enabled. We are trying to make the CMIS server to be completely spring enabled.

        Show
        Krishna Penugonda added a comment - This application is a CMIS server. Our CMIS server will internally be talking to FileNet repository and more propertiery repository. For propietry repository we have EJB integration layer and in order to comuunicate to this EJB layer CMIS server needs to be spring enabled. We are trying to make the CMIS server to be completely spring enabled.
        Hide
        Florian Müller added a comment -

        That's rather a Spring issue than an OpenCMIS issue. The OpenCMIS server is known to work with Spring in the way you describe it.
        Check your configuration again. Your web.xml references CmisService.xml and the your bean configuration file is called service.xml .

        Show
        Florian Müller added a comment - That's rather a Spring issue than an OpenCMIS issue. The OpenCMIS server is known to work with Spring in the way you describe it. Check your configuration again. Your web.xml references CmisService.xml and the your bean configuration file is called service.xml .
        Hide
        Krishna Penugonda added a comment -

        This issue is resolved. As you said problem was with our code only. Thanks for the help.

        Show
        Krishna Penugonda added a comment - This issue is resolved. As you said problem was with our code only. Thanks for the help.
        Hide
        Krishna Penugonda added a comment -

        Issue was with custom code not with OpenCMIS

        Show
        Krishna Penugonda added a comment - Issue was with custom code not with OpenCMIS
        Hide
        Krishna Penugonda added a comment -

        Issue was with custom code not with OpenCMIS

        Show
        Krishna Penugonda added a comment - Issue was with custom code not with OpenCMIS

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development