Announcement Announcement Module
No announcement yet.
Mutliple spring.jar and taglib location Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mutliple spring.jar and taglib location

    Hi all,

    My ear file contains two wars, which requires to use two different versions of spring.jar. The layout is

      -> app1-ejb.jar (manifest point to 1.2 jar)
      -> app1.war (manifest point to 1.2 jar)
      -> app2-ejb.jar (manifest point to 2.0.1 jar)
      -> app2.war (manifest point to 2.0.1 jar)
      -> spring-1.2.jar
      -> spring-2.0.1.jar
    The application can be started up correct. (I'm using WebSphere But when I come to a page with spring <form:form> being used. It gives me the exception:

     java.lang.NoSuchMethodError: org.springframework.web.util.ExpressionEvaluationUtils: method evaluate(Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/PageContext;)Ljava/lang/Object; not found
    The trace log shows that the call is from AbstractFormTag.evaluate().

    Does it mean that it is loading different version of spring?? Because:
    - AbstractFormTag exists in Spring 2.0.1 only.
    - ExpressionEvaluationUtils.evaluate(String,String,P ageContext) exists in Spring 2.0.1 but not 1.2

    Currently all jsp in both wars config the taglib like this:
    <%@ taglib prefix="spring" uri="/WEB-INF/spring.tld" %>
    <%@ taglib prefix="form" uri="/WEB-INF/spring-form.tld" %>
    I tried to change to real uri ( but it seems that Websphere cannot recognize it.

    Thank you for you attention.

  • #2
    Another question: is Spring 2.0 compatible with Spring 1.2? Any problem with that upgrade?