Hello Ioannis,
I see it. Here is the change for the Spring exception:
> svn diff
> hazelcast/src/main/java/org/apache/karaf/cellar/hazelcast/HazelcastClusterManager.java
Index:
hazelcast/src/main/java/org/apache/karaf/cellar/hazelcast/HazelcastClusterManager.java
===================================================================
---
hazelcast/src/main/java/org/apache/karaf/cellar/hazelcast/HazelcastClusterManager.java
(revision
1169574)
+++
hazelcast/src/main/java/org/apache/karaf/cellar/hazelcast/HazelcastClusterManager.java
(working
copy)
@@ -181,4 +181,12 @@
public void setConfigurationAdmin(ConfigurationAdmin configurationAdmin) {
this.configurationAdmin = configurationAdmin;
}
+
+ public CombinedClassLoader getCombinedClassManager() {
+ return combinedClassLoader;
+ }
+
+ public void setCombinedClassLoader(CombinedClassLoader
combinedClassLoader) {
+ this.combinedClassLoader = combinedClassLoader;
+ }
}
thanks,
Gareth
On Sun, Sep 11, 2011 at 9:10 PM, Gareth Collins
<[email protected]> wrote:
> Hello Ioannis,
>
> It now builds fine, but one change was needed to get the feature to
> install (adding dosgi):
>
> svn diff assembly/src/main/resources/features.xml
> Index: assembly/src/main/resources/features.xml
> ===================================================================
> --- assembly/src/main/resources/features.xml (revision 1169574)
> +++ assembly/src/main/resources/features.xml (working copy)
> @@ -36,6 +36,7 @@
>
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.hazelcast/${project.version}</bundle>
>
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/${project.version}</bundle>
>
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.features/${project.version}</bundle>
> +
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.dosgi/${project.version}</bundle>
>
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.bundle/${project.version}</bundle>
>
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.utils/${project.version}</bundle>
>
> <bundle>mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.shell/${project.version}</bundle>
>
> When I did get the feature installed, I am seeing the following
> exception. Is there a typo somewhere in a spring xml file?:
>
> Exception in thread "SpringOsgiExtenderThread-2"
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'clusterManager' defined in URL
> [bundleentry://174.fwk1464447632/META-INF/spring/beans.xml]: Error
> setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid
> property 'combinedClassLoader' of bean class
> [org.apache.karaf.cellar.hazelcast.HazelcastClusterManager]: Bean
> property 'combinedClassLoader' is not writable or has an invalid
> setter method. Does the parameter type of the setter match the return
> type of the getter?
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
> at
> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
> at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.springframework.beans.NotWritablePropertyException:
> Invalid property 'combinedClassLoader' of bean class
> [org.apache.karaf.cellar.hazelcast.HazelcastClusterManager]: Bean
> property 'combinedClassLoader' is not writable or has an invalid
> setter method. Does the parameter type of the setter match the return
> type of the getter?
> at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1052)
> at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:921)
> at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
> at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
> ... 15 more
>
> thanks in advance,
> Gareth
>
>
>
> On Sun, Sep 11, 2011 at 3:49 AM, iocanel [via Karaf]
> <[email protected]> wrote:
>> It should be ok now.
>> --
>> Ioannis Canellos
>> FuseSource
>>
>> Blog: http://iocanel.blogspot.com
>> Apache Karaf Committer & PMC
>> Apache ServiceMix Committer
>> Apache Gora Committer
>>
>>
>>
>>
>>
>> Ioannis Canellos http://iocanel.blogspot.com
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://karaf.922171.n3.nabble.com/Adding-Additional-Cellar-Map-Configuration-tp3305655p3326580.html
>> To unsubscribe from Adding Additional Cellar Map Configuration?, click here.
>
--
View this message in context:
http://karaf.922171.n3.nabble.com/Adding-Additional-Cellar-Map-Configuration-tp3305655p3328438.html
Sent from the Karaf - User mailing list archive at Nabble.com.