On 2009-12-17, at 下午9:26, Philip wrote:

Hi,

thanks for the reply. We tried to add the JbiJAASInterceptor but get
following error:

...<loc-message>org.
springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
[C:\osesbinaction\esb\apache-servicemix-3.2.1\data\smx\service- assemblies\SA-CALC-CXF\version_12\sus\servicemix-cxf-bc\SU-CALC-CXF- BC\xbean.xml]:
Cannot create inner bean
'org.apache.servicemix.cxfbc.interceptors.JbiJAASInterceptor' of type
[org.apache.servicemix.cxfbc.interceptors.JbiJAASInterceptor] while setting
bean property 'inInterceptors' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicemix.cxfbc.interceptors.JbiJAASInterceptor'
defined in file
[C:\osesbinaction\esb\apache-servicemix-3.2.1\data\smx\service- assemblies\SA-CALC-CXF\version_12\sus\servicemix-cxf-bc\SU-CALC-CXF- BC\xbean.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.servicemix.cxfbc.interceptors.JbiJAASInterceptor]: No
default constructor found; nested exception is
java.lang.NoSuchMethodException:
org .apache.servicemix.cxfbc.interceptors.JbiJAASInterceptor.<init> ()</loc-message>
.....

do you have any idea how to solve this problem?


You needn't add JbiJAASInterceptor explicitly in spring bean, it's added by default for cxf bc consumer endpoint and passed in AuthenticationService as argument for constructor. The error you saw means JbiJAASInterceptor has no default constructor, it needs an argument for constructor.

What I mean in my previous mail is that you can take a look at the JbiJAASInterceptor and get idea how to get username/password from WSUsernameTokenPrincipal.

furthermore we have this error:

[Fatal Error] :13:1212: The element type "init" must be terminated by the
matching end-tag "</init>"

do you know where the <init> element is?

thanks for your help!

best regards,
philip and nicolas


--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to