4 Replies Latest reply: Nov 20, 2012 2:30 AM by 974969 RSS

    weblogic application jar conflic, class loading

    974969
      I have problem with weblogic, i have installed weblogic in windows server machine and rhel 6 linux machine

      the same WAR application, works fine under windows and failed under linux (after searching i found it , jar conflict)

      after 3months, i have two linux rhel 6 server , in one it works and in the other not, after researching i found its jar conflict

      so please can somebody explain me why?
        • 1. Re: weblogic application jar conflic, class loading
          Kalyan Pasupuleti-Oracle
          Hi,

          Which jar conflict happens and can you copy error stack here to get the clue of the issue.

          Regards,
          Kal
          • 2. Re: weblogic application jar conflic, class loading
            974969
            the first it was struts.jar and struts-1.3...

            and the second with with common-validator.jar and common-validator-1.3..

            My problem is with weblogic under windows work and under linux does not work

            2012-11-13 14:14:57,641 : ERROR : com.riskanalysis.web.controller.BaseActionServlet:120 : doPost() : java.lang.NoSuchMethodError: org.apache.struts.config.Modu
            leConfig.findActionConfigId(Ljava/lang/String;)Lorg/apache/struts/config/ActionConfig;
            java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)Lorg/apache/struts/config/ActionConfig;
            at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:823)
            at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:467)
            at jsp_servlet._pages.__login._jsp__tag1(__login.java:182)
            at jsp_servlet._pages.__login._jspService(__login.java:120)
            at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)


            this is an example of trace system,


            please can you answer why it works under environment and not in the other
            • 3. Re: weblogic application jar conflic, class loading
              Kalyan Pasupuleti-Oracle
              Hi,

              To avoid such issues from application side it is always recommended to use prefer-web-inf option with in weblogic.xml file.

              try to implement this option and try again.

              Regards,
              Kal
              • 4. Re: weblogic application jar conflic, class loading
                974969
                Ok , i explain more, i don't have conflicts with weblgic and i am using weblogic.xml and i set application library as preferred

                But the problem its in the application lib it self, i can't find any explanation

                the jars are in the WEB-INF/lib of the application,

                in weblogic windows work , and in linux it doesnot work!!!!