Announcement Announcement Module
No announcement yet.
NoSuchFieldError Exception throwed when running in Websphere Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoSuchFieldError Exception throwed when running in Websphere

    I use spring portlet framework in my portlet dev,It's ok running on tomat,but when runing on websphere 5,the NoSuchFieldError throwed,Following is the error message:

    Nested Exception is java.lang.NoSuchFieldError: org.springframework.validation.AbstractBindingResu lt: field MODEL_KEY_PREFIX not found
    at org.springframework.validation.AbstractBindingResu lt.getModel(
    at org.springframework.validation.BindException.getMo del(
    at org.springframework.web.portlet.mvc.AbstractFormCo ntroller.showForm(
    at org.springframework.web.portlet.mvc.SimpleFormCont roller.showForm(


    I use spring.jar and spring-portlet.jar released in 2.0M4.

    please give me advice,Thinks.

  • #2
    Make sure you don't have any old spring.jar inside websphere (maybe at server level). This error usually occurs, when some different version is found on the parent classpath and used instead of yours.


    • #3
      Thanks for your reply

      First,Thanks for your reply,but I has searched all the classpath(include those of parent classloader),there are no any older version,I doubt the jdk version lead this issue(Websphere 5 use jdk1.3 ).

      I modify the code(at 345 line) in

      model.put(MODEL_KEY_PREFIX + getObjectName(), this);


      model.put(BindingResult.MODEL_KEY_PREFIX + getObjectName(), this);

      and rebuild the spring code and get the spring.jar,and the issue solved.

      But I need official solution however,so any advice is appreciated!

      Thank u for your reply again.

      Best Rgds