You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dilip MD (Created) (JIRA)" <ji...@apache.org> on 2012/04/03 07:48:30 UTC

[jira] [Created] (CXF-4222) ClientPolicy fails to get resolve in Websphere AS 7.00.21

ClientPolicy fails to get resolve in Websphere AS 7.00.21
---------------------------------------------------------

                 Key: CXF-4222
                 URL: https://issues.apache.org/jira/browse/CXF-4222
             Project: CXF
          Issue Type: Bug
          Components: OSGi
    Affects Versions: 2.1
         Environment: Websphere AS7.0.0.21in Windows XP and OSGI enabled web application  
            Reporter: Dilip MD


Hi,

I am trying to run a CXF client from embedded OSGi in WAS 7.0.0.21. The client runs fine but with ClientPolicy class use I get class cast exception. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS.

below is the sample code:

Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(Long.parseLong(config.getConnectionTimeout()));
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(Integer.parseInt(config.getProxyPort()));

with missing DisableIBMJAXWSEngine property the exception is:
Exception data: java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93)

With default axis2 engine disables the exception is
java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in my pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


With the same code, I can see it working in Tomcat, JBoss and Weblogic. Only problem appears in Websphere. Please suggest.

--
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] (CXF-4222) ClientPolicy fails to get resolve in Websphere AS 7.00.21

Posted by "Dilip MD (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dilip MD updated CXF-4222:
--------------------------

    Description: 
Hi,

I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientPolicy class throws class cast exception when gets invoked. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientPolicy class.

below is the sample code:

...
Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(config.getProxyPort());
....

With default axis2 engine provided by WAS, the exception is:

java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy


With axis2 engine disabling the exception is :

java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

  was:
Hi,

I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientPolicy class throws class cast exception when gets invoked. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientPolicy class.

below is the sample code:

...
Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(config.getProxyPort());
....

With default axis2 engine provided by WAS, the exception is:
Exception data: java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93)

With axis2 engine disabling the exception is
java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

    
> ClientPolicy fails to get resolve in Websphere AS 7.00.21
> ---------------------------------------------------------
>
>                 Key: CXF-4222
>                 URL: https://issues.apache.org/jira/browse/CXF-4222
>             Project: CXF
>          Issue Type: Bug
>          Components: OSGi
>    Affects Versions: 2.1
>         Environment: Websphere AS7.0.0.21in Windows XP and OSGI enabled web application  
>            Reporter: Dilip MD
>              Labels: ClientPolicy, Websphere,
>
> Hi,
> I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientPolicy class throws class cast exception when gets invoked. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientPolicy class.
> below is the sample code:
> ...
> Client client = ClientProxy.getClient(port);
> HTTPConduit http = (HTTPConduit) client.getConduit();
> HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
> httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
> httpClientPolicy.setProxyServer(config.getProxyHost());
> httpClientPolicy.setProxyServerPort(config.getProxyPort());
> ....
> With default axis2 engine provided by WAS, the exception is:
> java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
> With axis2 engine disabling the exception is :
> java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy
> I'm using below 2 CXF dependencies in pom.xml
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
> 			<version>2.1.2</version>
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-transports-http</artifactId>
> 			<version>2.1.2</version>
> The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

--
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] (CXF-4222) ClientProxy fails to get resolve in Websphere AS 7.00.21

Posted by "Dilip MD (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dilip MD updated CXF-4222:
--------------------------

    Description: 
Hi,

I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientProxy class throws class cast exception when gets invoked. I need ClientProxy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientProxy class.

below is the sample code:

...
Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(config.getProxyPort());
....

With default axis2 engine provided by WAS, the exception is:

java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy


With axis2 engine disabling the exception is :

java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

  was:
Hi,

I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientPolicy class throws class cast exception when gets invoked. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientPolicy class.

below is the sample code:

...
Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(config.getProxyPort());
....

With default axis2 engine provided by WAS, the exception is:

java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy


With axis2 engine disabling the exception is :

java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

    Environment: Websphere AS7.0.0.21 in Windows XP and OSGI enabled web application    (was: Websphere AS7.0.0.21in Windows XP and OSGI enabled web application  )
         Labels: ClientProxy Websphere,  (was: ClientPolicy Websphere,)
        Summary: ClientProxy fails to get resolve in Websphere AS 7.00.21  (was: ClientPolicy fails to get resolve in Websphere AS 7.00.21)
    
> ClientProxy fails to get resolve in Websphere AS 7.00.21
> --------------------------------------------------------
>
>                 Key: CXF-4222
>                 URL: https://issues.apache.org/jira/browse/CXF-4222
>             Project: CXF
>          Issue Type: Bug
>          Components: OSGi
>    Affects Versions: 2.1
>         Environment: Websphere AS7.0.0.21 in Windows XP and OSGI enabled web application  
>            Reporter: Dilip MD
>              Labels: ClientProxy, Websphere,
>
> Hi,
> I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientProxy class throws class cast exception when gets invoked. I need ClientProxy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientProxy class.
> below is the sample code:
> ...
> Client client = ClientProxy.getClient(port);
> HTTPConduit http = (HTTPConduit) client.getConduit();
> HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
> httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
> httpClientPolicy.setProxyServer(config.getProxyHost());
> httpClientPolicy.setProxyServerPort(config.getProxyPort());
> ....
> With default axis2 engine provided by WAS, the exception is:
> java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
> With axis2 engine disabling the exception is :
> java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy
> I'm using below 2 CXF dependencies in pom.xml
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
> 			<version>2.1.2</version>
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-transports-http</artifactId>
> 			<version>2.1.2</version>
> The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

--
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] (CXF-4222) ClientPolicy fails to get resolve in Websphere AS 7.00.21

Posted by "Dilip MD (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dilip MD updated CXF-4222:
--------------------------

    Description: 
Hi,

I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientPolicy class throws class cast exception when gets invoked. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientPolicy class.

below is the sample code:

...
Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(config.getProxyPort());
....

With default axis2 engine provided by WAS, the exception is:
Exception data: java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93)

With axis2 engine disabling the exception is
java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

  was:
Hi,

I am trying to run a CXF client from embedded OSGi in WAS 7.0.0.21. The client runs fine but with ClientPolicy class use I get class cast exception. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS.

below is the sample code:

Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(Long.parseLong(config.getConnectionTimeout()));
httpClientPolicy.setProxyServer(config.getProxyHost());
httpClientPolicy.setProxyServerPort(Integer.parseInt(config.getProxyPort()));

with missing DisableIBMJAXWSEngine property the exception is:
Exception data: java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93)

With default axis2 engine disables the exception is
java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy


I'm using below 2 CXF dependencies in my pom.xml

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1.2</version>

<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>2.1.2</version>


With the same code, I can see it working in Tomcat, JBoss and Weblogic. Only problem appears in Websphere. Please suggest.

    
> ClientPolicy fails to get resolve in Websphere AS 7.00.21
> ---------------------------------------------------------
>
>                 Key: CXF-4222
>                 URL: https://issues.apache.org/jira/browse/CXF-4222
>             Project: CXF
>          Issue Type: Bug
>          Components: OSGi
>    Affects Versions: 2.1
>         Environment: Websphere AS7.0.0.21in Windows XP and OSGI enabled web application  
>            Reporter: Dilip MD
>              Labels: ClientPolicy, Websphere,
>
> Hi,
> I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientPolicy class throws class cast exception when gets invoked. I need ClientPolicy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientPolicy class.
> below is the sample code:
> ...
> Client client = ClientProxy.getClient(port);
> HTTPConduit http = (HTTPConduit) client.getConduit();
> HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
> httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
> httpClientPolicy.setProxyServer(config.getProxyHost());
> httpClientPolicy.setProxyServerPort(config.getProxyPort());
> ....
> With default axis2 engine provided by WAS, the exception is:
> Exception data: java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
> at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93)
> With axis2 engine disabling the exception is
> java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy
> I'm using below 2 CXF dependencies in pom.xml
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
> 			<version>2.1.2</version>
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-transports-http</artifactId>
> 			<version>2.1.2</version>
> The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

--
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] [Closed] (CXF-4222) ClientProxy fails to get resolve in Websphere AS 7.00.21

Posted by "Dilip MD (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dilip MD closed CXF-4222.
-------------------------

    Resolution: Invalid

I don't think it is a bug from CXF side. Mistake from my side in opening this as issue here.
                
> ClientProxy fails to get resolve in Websphere AS 7.00.21
> --------------------------------------------------------
>
>                 Key: CXF-4222
>                 URL: https://issues.apache.org/jira/browse/CXF-4222
>             Project: CXF
>          Issue Type: Bug
>          Components: OSGi
>    Affects Versions: 2.1
>         Environment: Websphere AS7.0.0.21 in Windows XP and OSGI enabled web application  
>            Reporter: Dilip MD
>              Labels: ClientProxy, Websphere,
>
> Hi,
> I am trying to run a CXF client from embedded OSGi webapp in Websphere AS 7.0.0.21. The client using ClientProxy class throws class cast exception when gets invoked. I need ClientProxy class to set HTTP headers like proxy setting and also for HTTPS. I have seen in some forum where jaxwsproxyfactorybean usage has been recommended but don't know if that can be used for setting HTTP headers without ClientProxy class.
> below is the sample code:
> ...
> Client client = ClientProxy.getClient(port);
> HTTPConduit http = (HTTPConduit) client.getConduit();
> HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
> httpClientPolicy.setConnectionTimeout(config.getConnectionTimeout());
> httpClientPolicy.setProxyServer(config.getProxyHost());
> httpClientPolicy.setProxyServerPort(config.getProxyPort());
> ....
> With default axis2 engine provided by WAS, the exception is:
> java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy
> With axis2 engine disabling the exception is :
> java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub incompatible with org.apache.cxf.frontend.ClientProxy
> I'm using below 2 CXF dependencies in pom.xml
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
> 			<version>2.1.2</version>
> <groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-transports-http</artifactId>
> 			<version>2.1.2</version>
> The same code works fine in Tomcat, JBoss and Weblogic app servers. Only problem appears in Websphere.

--
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