Results 1 to 2 of 2

Thread: Error with Spring In Action Poker App

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    21

    Default Error with Spring In Action Poker App

    I am getting this error using the Spring In Action book Poker app.

    Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'webServiceTemplate' defined in class path resource [com/springinaction/ws/client/poker-ws-client.xml]: Cannot resolve reference to bean 'urlMessageSender' while setting bean property 'messageSender'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'urlMessageSender' defined in class path resource [com/springinaction/ws/client/poker-ws-client.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException : Invalid property 'url' of bean class [org.springframework.ws.transport.http.HttpUrlConne ctionMessageSender]: No property 'url' found
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'urlMessageSender' defined in class path resource [com/springinaction/ws/client/poker-ws-client.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException : Invalid property 'url' of bean class


    Anyone have any idea why I am getting this error in eclipse? I am using Tomcat 6 as my container. help would be greatly appreciated.

  2. #2
    Join Date
    Oct 2007
    Location
    Birmingham, Alabama
    Posts
    60

    Smile

    Your problem is in your bean definition file

    Code:
     Invalid property 'url' of bean class [org.springframework.ws.transport.http.HttpUrlConnectionMessageSender]: No property 'url' found
    url is not a property of the HttpUrlConnectionMessageSender class.

    Code:
    http://static.springframework.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/HttpUrlConnectionMessageSender.html
    Hope that helps.....

    What I did was get the defaultUri in the WebServiceTemplate.

    Russ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •