Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-61

contextClassLoader null returned in LogFactory.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2
    • None
    • Operating System: other
      Platform: Other

    • 12149

    Description

      I was trying to deploy Axis beta3 on iPlanet 6 and kept getting the following
      exception.

      lang.ExceptionInInitializerError: java.lang.NullPointerException
      at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:326)
      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:394)
      at org.apache.axis.transport.http.AxisServlet.<clinit>(AxisServlet.java:104)
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java:232)
      at
      com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEntity.java:71)
      at
      com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1045)
      at
      com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

      Found another guy getting the same problem that was posting to the Axis mailing
      list. Here is a URL to his posts:
      http://www.mail-archive.com/axis-user@xml.apache.org/msg04319.html

      He mentioned a hack he did and I did the same and it seemed to fix the problem.
      I don't know whether I may have broke something else but my Axis web services
      are working fine now...

      Here is the hack in LogFactory.java at line 264 in method getFactory():

      /sjb - hack to default back/
      if(contextClassLoader==null)
      {
      contextClassLoader = ClassLoader.getSystemClassLoader();
      }

      Cheers...

      Attachments

        Activity

          People

            Unassigned Unassigned
            steve.bryant@aig.com steve bryant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: