chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna Penugonda (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CMIS-419) Issue with Enabling Spring configurations
Date Wed, 17 Aug 2011 16:52:27 GMT

     [ https://issues.apache.org/jira/browse/CMIS-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Krishna Penugonda resolved CMIS-419.
------------------------------------

    Resolution: Invalid

Issue was with custom code not with OpenCMIS

> Issue with Enabling Spring configurations
> -----------------------------------------
>
>                 Key: CMIS-419
>                 URL: https://issues.apache.org/jira/browse/CMIS-419
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.4.0
>         Environment: Linux 
> Websphere 7.0
> JRE1.6
> Spring 2.5.5
>            Reporter: Krishna Penugonda
>            Priority: Critical
>             Fix For: OpenCMIS 0.4.0
>
>
> 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:p="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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message