chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <>
Subject [jira] [Commented] (CMIS-419) Issue with Enabling Spring configurations
Date Tue, 16 Aug 2011 20:10:27 GMT


Florian Müller commented on CMIS-419:

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 (?).

> Issue with Enabling Spring configurations
> -----------------------------------------
>                 Key: CMIS-419
>                 URL:
>             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="" xmlns:xsi=""
xmlns:p="" xsi:schemaLocation="">
> - <!--  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:


View raw message