Struts 2
  1. Struts 2
  2. WW-3754

java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.get(Ljava/lang/Object;)Ljava/lang/Object;

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 2.3.1.1
    • Fix Version/s: 2.0.15
    • Component/s: Integration
    • Labels:
      None
    • Environment:

      jboss5.1.0.ga

      Activity

      Hide
      mahendran added a comment -

      we were also facing this problem.
      while upgrading struts(from 2.0.5 to 2.3.15.1) we were just replacing new jar files in the production ear file., but this is not enough.
      we need to recompile the java files(The modules which uses struts and xwork APIs ie, our infra module and security module) with new struts jars.
      After that the issue is resolved.

      Show
      mahendran added a comment - we were also facing this problem. while upgrading struts(from 2.0.5 to 2.3.15.1) we were just replacing new jar files in the production ear file., but this is not enough. we need to recompile the java files(The modules which uses struts and xwork APIs ie, our infra module and security module) with new struts jars. After that the issue is resolved.
      Hide
      phani kumar janapati added a comment -

      Thanks Philip for your support

      On Wed, Feb 15, 2012 at 7:01 PM, phani kumar janapati (Commented) (JIRA) <

      Regards,
      Phani Kumar
      8099527537

      Show
      phani kumar janapati added a comment - Thanks Philip for your support On Wed, Feb 15, 2012 at 7:01 PM, phani kumar janapati (Commented) (JIRA) < – Regards, Phani Kumar 8099527537
      Hide
      Philip Luppens added a comment -

      Ok. I don't have time for this. Check your project to make sure that there are no outdated libraries present in your application archive (a .war, I presume). So, have a look in the exploded war, in the WEB-INF/lib directory, and see if there are any outdated jars (xwork jar, ognl jar, ...) because there's a transitive dependency somewhere, or because the build was not cleaned correctly.

      If that is not the case, check your classpath - JBoss is famous for this - to make sure there's no outdated jar living somewhere else and being included by accident.

      You can try the war in another application server (I suggest Tomcat). If that still does not work, then please do post a list of the jars included, and we'll have another look).

      Show
      Philip Luppens added a comment - Ok. I don't have time for this. Check your project to make sure that there are no outdated libraries present in your application archive (a .war, I presume). So, have a look in the exploded war, in the WEB-INF/lib directory, and see if there are any outdated jars (xwork jar, ognl jar, ...) because there's a transitive dependency somewhere, or because the build was not cleaned correctly. If that is not the case, check your classpath - JBoss is famous for this - to make sure there's no outdated jar living somewhere else and being included by accident. You can try the war in another application server (I suggest Tomcat). If that still does not work, then please do post a list of the jars included, and we'll have another look).
      Hide
      phani kumar janapati added a comment -

      Dear Philip, Is there any case rather than of this???

      Regards,
      Phani Kumar
      8099527537

      Show
      phani kumar janapati added a comment - Dear Philip, Is there any case rather than of this??? – Regards, Phani Kumar 8099527537
      Hide
      phani kumar janapati added a comment -

      Dear Philip outdated jars in case of struts libraries ????

      On Wed, Feb 15, 2012 at 6:40 PM, Philip Luppens (Commented) (JIRA) <

      Regards,
      Phani Kumar
      8099527537

      Show
      phani kumar janapati added a comment - Dear Philip outdated jars in case of struts libraries ???? On Wed, Feb 15, 2012 at 6:40 PM, Philip Luppens (Commented) (JIRA) < – Regards, Phani Kumar 8099527537
      Hide
      Philip Luppens added a comment -

      Exactly. Doublecheck your WEB-INF/lib directory to make sure there are no outdated jars left, and make sure you're not running into a classloader issue in JBoss.

      Show
      Philip Luppens added a comment - Exactly. Doublecheck your WEB-INF/lib directory to make sure there are no outdated jars left, and make sure you're not running into a classloader issue in JBoss.
      Hide
      phani kumar janapati added a comment -

      No Philip i am using xwork-2.1.3.jar and xwork-core-2.3.1.1.jar files .
      I am upgrading struts2.0.5 to 2.3.1 in and from jboss 4.3 to jboss5.1.0.ga

      On Wed, Feb 15, 2012 at 6:31 PM, Philip Luppens (Commented) (JIRA) <

      Regards,
      Phani Kumar
      8099527537

      Show
      phani kumar janapati added a comment - No Philip i am using xwork-2.1.3.jar and xwork-core-2.3.1.1.jar files . I am upgrading struts2.0.5 to 2.3.1 in and from jboss 4.3 to jboss5.1.0.ga On Wed, Feb 15, 2012 at 6:31 PM, Philip Luppens (Commented) (JIRA) < – Regards, Phani Kumar 8099527537
      Hide
      Philip Luppens added a comment -

      Make that outdated jars (OGNL for example).

      Show
      Philip Luppens added a comment - Make that outdated jars (OGNL for example).
      Hide
      Philip Luppens added a comment -

      Can you confirm you have no outdated xwork on your path (I presume you upgraded)?

      Show
      Philip Luppens added a comment - Can you confirm you have no outdated xwork on your path (I presume you upgraded)?

        People

        • Assignee:
          Unassigned
          Reporter:
          phani kumar janapati
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development