1 Reply Latest reply on Jun 13, 2011 1:26 AM by jaikiran pai

    LinkageError in JBOSS 5.1.0.GA

    sureshtechspot Newbie

      Hi ,

       

        We are trying to migrate from JBoss 4.0.3SP1 to 5.1.0.GA. I have war file which is working in older version of jboss. But in 5.1.0.GA the same war file is giving below exception,

       

      when resolving overridden method "jsp.login_002djaas_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, jsp/login_002djaas_jsp, and its superclass loader (instance of org/jboss/classloader/spi/base/BaseClassLoader), have different Class objects for the type javax/servlet/http/HttpServletRequest used in the signature

          at java.lang.Class.getDeclaredConstructors0(Native Method)

          at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

          at java.lang.Class.getConstructor0(Class.java:2699)

          at java.lang.Class.newInstance0(Class.java:326)

          at java.lang.Class.newInstance(Class.java:308)

          at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)

          at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)

          at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:607)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)

          at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)

          at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

          at java.lang.Thread.run(Thread.java:619)

       

      Then  I removed xerces and el-api jar files from my lib folder of war file. Sill the problem exists.

       

      In my war file I have servlet-api-2.4.jar also there. If I remove this jar file from the war file then if submit any reuqest for this web application it is not reaching the server I came to this conclusion by looking at the logger file.

       

      Can any one suggest me what could be the problem. I suspect this is something related to duplicate jar files problem. But I am not able to figure this out. Please help.

       

      Thanks

      Suresh

        • 1. Re: LinkageError in JBOSS 5.1.0.GA
          jaikiran pai Master

          sureshtechspot wrote:

           

           

          In my war file I have servlet-api-2.4.jar also there.

          Remove that jar from the application packaging.

           

           

          sureshtechspot wrote:

           

          If I remove this jar file from the war file then if submit any reuqest for this web application it is not reaching the server I came to this conclusion by looking at the logger file.

           

          Please post more details about this (after removing the servlet api jar).