You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/08/29 10:28:34 UTC

DO NOT REPLY [Bug 12149] New: - contextClassLoader null returned in LogFactory.java

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12149>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12149

contextClassLoader null returned in LogFactory.java

           Summary: contextClassLoader null returned in LogFactory.java
           Product: Commons
           Version: 1.0.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Logging
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: steve.bryant@aig.com


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...

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>