1 Reply Latest reply on Mar 17, 2011 11:18 AM by rajasekhar tolety

    Servlet is throwing Exception only in jboss 6 not in jboss 5.1

    rajasekhar tolety Newbie

      HTTP Status 500 -

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: Servlet.init() for servlet rajasekhart threw exception     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)    

       

       

      org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)    

      org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)    

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

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

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

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

      org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)    

      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)    

      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)    

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

      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)     java.lang.Thread.run(Thread.java:619)

       

       

       

       

      root cause

      java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.parsers.SAXParser.parse(Lorg/xml/sax/InputSource;Lorg/xml/sax/HandlerBase;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/rajasekhart/systemi/server/common/base/ControllerBase, and the class loader (instance of <bootloader>) for resolved class, javax/xml/parsers/SAXParser, have different Class objects for the type org/xml/sax/InputSource used in the signature     com.rajasekhart.systemi.server.common.base.ControllerBase.readConfigFile(ControllerBase.java:561)     com.rajasekhart.systemi.server.common.base.ControllerBase.init(ControllerBase.java:368)     com.rajasekhart.systemi.client.servlet.FrontController.init(FrontController.java:93)     com.rajasekhart.systemi.client.servlet.Dispatcher.init(Dispatcher.java:32)     org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)     org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)     org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)     org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)     org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)     org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)     org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)     org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)     java.lang.Thread.run(Thread.java:619)

       

       

      note The full stack trace of the root cause is available in the JBoss Web/3.0.0-CR1 logs.

      JBoss Web/3.0.0-CR1

        • 1. Servlet is throwing Exception only in jboss 6 not in jboss 5.1
          rajasekhar tolety Newbie

          Search for "InputSource" else "InputSource .class" and wether it is reapeting or not in any other ".jar" file and remove your repeating "InputSource.class" in your application as it will be there in "rt.jar" in java_home.

          So if u remove it i can asure you 99% your error will be rectified .......

           

           

          because .....

           

           

          the class loader (instance of <bootloader>) for resolved class, javax/xml/parsers/SAXParser, have different Class objects for the type org/xml/sax/InputSource used in the signature

           

           

          so 2 files with same name and different signatures.