Announcement Announcement Module
Collapse
No announcement yet.
Error with Spring In Action Poker App Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment

    Working...
    X