You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tony Su (Created) (JIRA)" <ji...@apache.org> on 2012/03/30 20:20:35 UTC
[jira] [Created] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
blueprint configuration of cxf endpoint inInterceptors by reference not triggered
---------------------------------------------------------------------------------
Key: CAMEL-5132
URL: https://issues.apache.org/jira/browse/CAMEL-5132
Project: Camel
Issue Type: Bug
Components: camel-cxf
Affects Versions: 2.9.1
Reporter: Tony Su
When following blueprint cxf:cxfEndpoint configuration is used:
<cxf:cxfEndpoint id="myEP"
address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
serviceClass="com.mycom.MyEPRPC">
<cxf:inInterceptors ref="wss4jInterceptor" />
</cxf:cxfEndpoint>
The interceptor is never triggered.
When the configuration is replaced with an inline bean for the interceptor, it is again working:
<cxf:cxfEndpoint id="myEP"
address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
serviceClass="com.mycom.MyEPRPC">
<cxf:inInterceptors>
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<argument>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordText" />
<entry key="passwordCallbackRef" ref="passwdCallback" />
<entry key="wss4j.validator.map" >
<map>
<entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
</map>
</entry>
</map>
</argument>
</bean>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-5132.
---------------------------------
Resolution: Won't Fix
It's a user misuse.
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243060#comment-13243060 ]
Willem Jiang commented on CAMEL-5132:
-------------------------------------
If you want to pass the reference of wss4jInterceptor like this
{code}
<cxf:cxfEndpoint id="myEP"
address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
serviceClass="com.mycom.MyEPRPC">
<cxf:inInterceptors>
<ref component-id="wss4jInterceptor"/>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
{code}
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-5132:
-----------------------------------
Assignee: Willem Jiang
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Tony Su (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243093#comment-13243093 ]
Tony Su commented on CAMEL-5132:
--------------------------------
Thanks for catching that. I should have noticed the mistake earlier. Config was (incorrectly) converted over from spring several months ago and was only recently discovered to be silently failing.
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243061#comment-13243061 ]
Willem Jiang commented on CAMEL-5132:
-------------------------------------
If you want to pass the reference of wss4jInterceptor like this
{code}
<cxf:cxfEndpoint id="myEP"
address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
serviceClass="com.mycom.MyEPRPC">
<cxf:inInterceptors>
<ref component-id="wss4jInterceptor"/>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
{code}
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-5132:
-----------------------------------
Assignee: Willem Jiang
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243034#comment-13243034 ]
Willem Jiang commented on CAMEL-5132:
-------------------------------------
CxfEndpoint only takes inInterceptors is a array list, you should pass a list object reference instead of an interceptor object reference.
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-5132) blueprint configuration of cxf
endpoint inInterceptors by reference not triggered
Posted by "Willem Jiang (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CAMEL-5132:
--------------------------------
Comment: was deleted
(was: If you want to pass the reference of wss4jInterceptor like this
{code}
<cxf:cxfEndpoint id="myEP"
address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
serviceClass="com.mycom.MyEPRPC">
<cxf:inInterceptors>
<ref component-id="wss4jInterceptor"/>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
{code})
> blueprint configuration of cxf endpoint inInterceptors by reference not triggered
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-5132
> URL: https://issues.apache.org/jira/browse/CAMEL-5132
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.9.1
> Reporter: Tony Su
> Assignee: Willem Jiang
>
> When following blueprint cxf:cxfEndpoint configuration is used:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors ref="wss4jInterceptor" />
> </cxf:cxfEndpoint>
> The interceptor is never triggered.
> When the configuration is replaced with an inline bean for the interceptor, it is again working:
> <cxf:cxfEndpoint id="myEP"
> address="${mtosiProtocol}://0.0.0.0:${mtosiPort}/myEP_RPC"
> serviceClass="com.mycom.MyEPRPC">
> <cxf:inInterceptors>
> <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <argument>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordText" />
> <entry key="passwordCallbackRef" ref="passwdCallback" />
> <entry key="wss4j.validator.map" >
> <map>
> <entry value-ref="userNameTokenValidator" key-ref="usernameTokenQName" />
> </map>
> </entry>
> </map>
> </argument>
> </bean>
> </cxf:inInterceptors>
> </cxf:cxfEndpoint>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira