You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by John Baker <jo...@camelotgroup.co.uk> on 2012/04/27 15:13:42 UTC

Spring bean problem

Hello,

I've put this into Spring and am using CXF 2.3.0:

                <jaxws:endpoint
                                address="http://localhost:8080/moo"
                                xmlns:ns="http://ctp.company.com/il/wsdl/AuditLog-v1"
                                wsdlLocation="META-INF/il-auditlog-wsdl/AuditLog-v1.wsdl"
                                serviceName="AuditLogService_v1_0"
                                implementorClass="com.company.TestClass">
                 <jaxws:properties>
                    <entry key="schema-validation-enabled" value="true" />
                  </jaxws:properties>
                </jaxws:endpoint>

And I get this exception when I try to run the application:

Caused by: java.lang.NoSuchMethodException: org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl.<init>()
     at java.lang.Class.getConstructor0(Unknown Source)
     at java.lang.Class.getDeclaredConstructor(Unknown Source)
     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
     ... 14 more



The problem seems to be the EndpointDefintionParser which returns the SpringEndpointImpl subclass to Spring as the bean classname, and it doesn't have an empty constructor.

What's going on?


John


******************************************************************************
The information contained in this email may be confidential. It is intended
only for the use of the named recipient. If you are not the named recipient
please delete this email and notify the sender of the delivery error. If you
have received this email and are not the named recipient, any disclosure,
reproduction, distribution or other dissemination or use of the information
contained in this email is strictly prohibited.
 
The transmission of email cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of email transmission. If verification is required please
request a hard copy version.

The Camelot group of companies includes:
Camelot UK Lotteries Limited (reg. no 2822203), Camelot Business Solutions
Limited (reg. no 07553982), Camelot Strategic Solutions Limited (reg. no
07553980), Camelot Global Services Limited (reg. no 02822300) and Camelot
Commercial Services Limited (reg. no 06911097), all of which are registered
in England and Wales and have their registered office at:
Tolpits Lane
Watford
WD18 9RN
Tel : 01923 425000
******************************************************************************

RE: Spring bean problem

Posted by John Baker <jo...@camelotgroup.co.uk>.
Well, for future reference, the problem went away when I imported the CXF configuration:


	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath*:META-INF/cxf/cxf-extension-http.xml" />

But that now leaves me with a problem which suggests CXF and Spring Integrate won't work together..

-----Original Message-----
From: John Baker [mailto:john.baker@camelotgroup.co.uk] 
Sent: 27 April 2012 14:14
To: users@cxf.apache.org
Subject: Spring bean problem

Hello,

I've put this into Spring and am using CXF 2.3.0:

                <jaxws:endpoint
                                address="http://localhost:8080/moo"
                                xmlns:ns="http://ctp.company.com/il/wsdl/AuditLog-v1"
                                wsdlLocation="META-INF/il-auditlog-wsdl/AuditLog-v1.wsdl"
                                serviceName="AuditLogService_v1_0"
                                implementorClass="com.company.TestClass">
                 <jaxws:properties>
                    <entry key="schema-validation-enabled" value="true" />
                  </jaxws:properties>
                </jaxws:endpoint>

And I get this exception when I try to run the application:

Caused by: java.lang.NoSuchMethodException: org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl.<init>()
     at java.lang.Class.getConstructor0(Unknown Source)
     at java.lang.Class.getDeclaredConstructor(Unknown Source)
     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
     ... 14 more



The problem seems to be the EndpointDefintionParser which returns the SpringEndpointImpl subclass to Spring as the bean classname, and it doesn't have an empty constructor.

What's going on?


John


******************************************************************************
The information contained in this email may be confidential. It is intended only for the use of the named recipient. If you are not the named recipient please delete this email and notify the sender of the delivery error. If you have received this email and are not the named recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained in this email is strictly prohibited.
 
The transmission of email cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required please request a hard copy version.

The Camelot group of companies includes:
Camelot UK Lotteries Limited (reg. no 2822203), Camelot Business Solutions Limited (reg. no 07553982), Camelot Strategic Solutions Limited (reg. no 07553980), Camelot Global Services Limited (reg. no 02822300) and Camelot Commercial Services Limited (reg. no 06911097), all of which are registered in England and Wales and have their registered office at:
Tolpits Lane
Watford
WD18 9RN
Tel : 01923 425000
******************************************************************************

RE: Spring bean problem

Posted by John Baker <jo...@camelotgroup.co.uk>.
Hello

Are there specific Spring Integration elements that pull in CXF? If so ,I can't find the docs..


John

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: 27 April 2012 21:07
To: users@cxf.apache.org
Cc: John Baker
Subject: Re: Spring bean problem

On Friday, April 27, 2012 01:13:42 PM John Baker wrote:
> Hello,
> 
> I've put this into Spring and am using CXF 2.3.0:

I would strongly suggest an upgrade.   2.3.x will be going out of support 
very shortly.    Also, the spring integration have improved significantly 
over time.

Dan



> 
>                 <jaxws:endpoint
>                                 address="http://localhost:8080/moo"
>                                
> xmlns:ns="http://ctp.company.com/il/wsdl/AuditLog-v1"
> wsdlLocation="META-INF/il-auditlog-wsdl/AuditLog-v1.wsdl"
> serviceName="AuditLogService_v1_0"
> implementorClass="com.company.TestClass"> <jaxws:properties>
>                     <entry key="schema-validation-enabled" 
> value="true" /> </jaxws:properties>
>                 </jaxws:endpoint>
> 
> And I get this exception when I try to run the application:
> 
> Caused by: java.lang.NoSuchMethodException:
> org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImp
> l.<
> init>() at java.lang.Class.getConstructor0(Unknown Source)
>      at java.lang.Class.getDeclaredConstructor(Unknown Source)
>      at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.
> ins
> tantiate(SimpleInstantiationStrategy.java:65) ... 14 more
> 
> 
> 
> The problem seems to be the EndpointDefintionParser which returns the 
> SpringEndpointImpl subclass to Spring as the bean classname, and it 
> doesn't have an empty constructor.
> 
> What's going on?
> 
> 
> John
> 
> 
> **********************************************************************
> ****
> **** The information contained in this email may be confidential. It 
> is intended only for the use of the named recipient. If you are not 
> the named recipient please delete this email and notify the sender of 
> the delivery error. If you have received this email and are not the 
> named recipient, any disclosure, reproduction, distribution or other 
> dissemination or use of the information contained in this email is 
> strictly prohibited.
> 
> The transmission of email cannot be guaranteed to be secure or error 
> free as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses. The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of email transmission. If 
> verification is required please request a hard copy version.
> 
> The Camelot group of companies includes:
> Camelot UK Lotteries Limited (reg. no 2822203), Camelot Business 
> Solutions Limited (reg. no 07553982), Camelot Strategic Solutions 
> Limited (reg. no 07553980), Camelot Global Services Limited (reg. no 
> 02822300) and Camelot Commercial Services Limited (reg. no 06911097), 
> all of which are registered in England and Wales and have their registered office at:
> Tolpits Lane
> Watford
> WD18 9RN
> Tel : 01923 425000
> **********************************************************************
> ****
> ****
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com


Re: Spring bean problem

Posted by Daniel Kulp <dk...@apache.org>.
On Friday, April 27, 2012 01:13:42 PM John Baker wrote:
> Hello,
> 
> I've put this into Spring and am using CXF 2.3.0:

I would strongly suggest an upgrade.   2.3.x will be going out of support 
very shortly.    Also, the spring integration have improved significantly 
over time.

Dan



> 
>                 <jaxws:endpoint
>                                 address="http://localhost:8080/moo"
>                                
> xmlns:ns="http://ctp.company.com/il/wsdl/AuditLog-v1"
> wsdlLocation="META-INF/il-auditlog-wsdl/AuditLog-v1.wsdl"
> serviceName="AuditLogService_v1_0"
> implementorClass="com.company.TestClass"> <jaxws:properties>
>                     <entry key="schema-validation-enabled" value="true" />
> </jaxws:properties>
>                 </jaxws:endpoint>
> 
> And I get this exception when I try to run the application:
> 
> Caused by: java.lang.NoSuchMethodException:
> org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl.<
> init>() at java.lang.Class.getConstructor0(Unknown Source)
>      at java.lang.Class.getDeclaredConstructor(Unknown Source)
>      at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.ins
> tantiate(SimpleInstantiationStrategy.java:65) ... 14 more
> 
> 
> 
> The problem seems to be the EndpointDefintionParser which returns the
> SpringEndpointImpl subclass to Spring as the bean classname, and it
> doesn't have an empty constructor.
> 
> What's going on?
> 
> 
> John
> 
> 
> **************************************************************************
> **** The information contained in this email may be confidential. It is
> intended only for the use of the named recipient. If you are not the
> named recipient please delete this email and notify the sender of the
> delivery error. If you have received this email and are not the named
> recipient, any disclosure, reproduction, distribution or other
> dissemination or use of the information contained in this email is
> strictly prohibited.
> 
> The transmission of email cannot be guaranteed to be secure or error free
> as information could be intercepted, corrupted, lost, destroyed, arrive
> late or incomplete, or contain viruses. The sender therefore does not
> accept liability for any errors or omissions in the contents of this
> message which arise as a result of email transmission. If verification is
> required please request a hard copy version.
> 
> The Camelot group of companies includes:
> Camelot UK Lotteries Limited (reg. no 2822203), Camelot Business Solutions
> Limited (reg. no 07553982), Camelot Strategic Solutions Limited (reg. no
> 07553980), Camelot Global Services Limited (reg. no 02822300) and Camelot
> Commercial Services Limited (reg. no 06911097), all of which are
> registered in England and Wales and have their registered office at:
> Tolpits Lane
> Watford
> WD18 9RN
> Tel : 01923 425000
> **************************************************************************
> ****
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com