Hi,
My comment inline
On 2010-6-8, at 上午1:35, Amigo_ wrote:
Freeman Fang wrote:
Hi,
For SMX4.x (OSGi container), you shouldn't put context="context" for
cxfse:proxy, the proxy will create it automatically for you,
SMXCOMP-683[1] track this issue.
You should use latest released SMX4.2 to use this new feature.
[1]https://issues.apache.org/activemq/browse/SMXCOMP-683
Freeman
Hi,
I downloaded FUSE ESB / Apache ServiceMix 4.2 from this site
http://fusesource.com/downloads/ and after removing context
parameter I got
error about not finding context:
The one you download is FUSE ESB 4.2 and it didn't pick up fix for
SMXCOMP-683 yet.
You should download apache servicemix4.2 from [1]
[1]http://repo2.maven.org/maven2/org/apache/servicemix/apache-servicemix/4.2.0/
Freeman
ka...@root> Exception in thread "SpringOsgiExtenderThread-66"
org.springframework.beans.factory.BeanCreationException: Error
creating bean
with name 'org.apache.servicemix.cxfse.CxfSeEndpoint#0' defined in URL
[bundleentry://178.fwk31983818/META-INF/spring/bundle-context.xml]:
Cannot
create inner bean 'com.amigo.cxf.TranslatorClient#0' of type
[com.amigo.cxf.TranslatorClient] while setting bean property 'pojo';
nested
exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'com.amigo.cxf.TranslatorClient#0' defined
in URL
[bundleentry://178.fwk31983818/META-INF/spring/bundle-context.xml]:
Cannot
create inner bean 'cxfse:proxy#d37507' of type
[org.apache.servicemix.cxfse.CxfSeProxyFactoryBean] while setting bean
property 'gtPort'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean
with name 'cxfse:proxy#d37507': FactoryBean threw exception on object
creation; nested exception is javax.naming.NotContextException:
java:comp/env/jbi/ClientFactory
at
org
.springframework
.beans
.factory
.support
.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at
org
.springframework
.beans
.factory
.support
.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
org
.springframework
.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org
.springframework
.beans
.factory
.support
.DefaultSingletonBeanRegistry
.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org
.springframework
.beans
.factory
.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org
.springframework
.beans
.factory
.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org
.springframework
.beans
.factory
.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org
.springframework
.beans
.factory
.support
.DefaultListableBeanFactory
.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org
.springframework
.context
.support
.AbstractApplicationContext
.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
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:136)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error
creating bean with name 'com.amigo.cxf.TranslatorClient#0' defined
in URL
[bundleentry://178.fwk31983818/META-INF/spring/bundle-context.xml]:
Cannot
create inner bean 'cxfse:proxy#d37507' of type
[org.apache.servicemix.cxfse.CxfSeProxyFactoryBean] while setting bean
property 'gtPort'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean
with name 'cxfse:proxy#d37507': FactoryBean threw exception on object
creation; nested exception is javax.naming.NotContextException:
java:comp/env/jbi/ClientFactory
at
org
.springframework
.beans
.factory
.support
.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at
org
.springframework
.beans
.factory
.support
.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
org
.springframework
.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org
.springframework
.beans
.factory
.support
.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org
.springframework
.beans
.factory
.support
.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 20 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error
creating bean with name 'cxfse:proxy#d37507': FactoryBean threw
exception on
object creation; nested exception is javax.naming.NotContextException:
java:comp/env/jbi/ClientFactory
at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport
$1.run(FactoryBeanRegistrySupport.java:127)
at java.security.AccessController.doPrivileged(Native Method)
at
org
.springframework
.beans
.factory
.support
.FactoryBeanRegistrySupport
.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at
org
.springframework
.beans
.factory
.support
.FactoryBeanRegistrySupport
.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:98)
at
org
.springframework
.beans
.factory
.support
.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:223)
... 28 more
Caused by: javax.naming.NotContextException: java:comp/env/jbi/
ClientFactory
at
org
.apache
.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:171)
at
org
.apache
.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:611)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at
org
.apache
.servicemix
.cxfse
.CxfSeProxyFactoryBean.getInternalContext(CxfSeProxyFactoryBean.java:
153)
at
org
.apache
.servicemix
.cxfse.CxfSeProxyFactoryBean.createProxy(CxfSeProxyFactoryBean.java:
103)
at
org
.apache
.servicemix
.cxfse.CxfSeProxyFactoryBean.getObject(CxfSeProxyFactoryBean.java:83)
at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport
$1.run(FactoryBeanRegistrySupport.java:121)
... 32 more
--
View this message in context:
http://old.nabble.com/Invoking-external-web-service-from-SE-tp28722871p28808368.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com