[ 
https://issues.apache.org/jira/browse/AXIS2-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467142
 ] 

Jeff Peterson commented on AXIS2-2005:
--------------------------------------

The following chage fixed the problem:

Index: modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
===================================================================
--- modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java 
(revision 499476)
+++ modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java 
(working copy)
@@ -111,7 +111,7 @@
     }

     public void destroy() {
-        super.destroy();
+        //super.destroy();
         //stoping listner manager
         try {
             if (configContext != null) {
===================================================================

Its not the right way to do it, but it definitely isolates the super.destroy() 
call as the cluprit.

> NullPointerException when undeploying/redeploying
> -------------------------------------------------
>
>                 Key: AXIS2-2005
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2005
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.1
>         Environment: Solaris 8
> Weblogic 8.1.3
>            Reporter: Jeff Peterson
>            Priority: Minor
>
> I get this exception every time I undeploy axis2 or redeploy axis2.
> <Jan 19, 2007 9:05:11 AM PST> <Error> <HTTP> <BEA-101268> 
> <ServletContext(id=9519730,name=axis2,context-path=/axis2): Failed while 
> destroying servlet: AxisServlet.
> java.lang.NullPointerException
>         at 
> javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
>         at javax.servlet.GenericServlet.log(GenericServlet.java:300)
>         at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
>         at 
> org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:111)
>         at 
> weblogic.servlet.internal.ServletStubImpl$ServletDestroyAction.run(ServletStubImpl.java:1054)
>         at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>         at 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
>         at 
> weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:608)
>         at 
> weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:635)
>         at 
> weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:620)
>         at 
> weblogic.servlet.internal.WebAppServletContext.destroyServlets(WebAppServletContext.java:5900)
>         at 
> weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:5773)
>         at 
> weblogic.servlet.internal.ServletContextManager.destroyContext(ServletContextManager.java:196)
>         at 
> weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:746)
>         at 
> weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:773)
>         at 
> weblogic.servlet.internal.WebAppModule.rollback(WebAppModule.java:751)
>         at 
> weblogic.j2ee.J2EEApplicationContainer.rollbackModule(J2EEApplicationContainer.java:3196)
>         at 
> weblogic.j2ee.J2EEApplicationContainer.rectifyClassLoaders(J2EEApplicationContainer.java:1449)
>         at 
> weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1196)
>         at 
> weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1051)
>         at 
> weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2444)
>         at 
> weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2394)
>         at 
> weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2310)
>         at 
> weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
>         at 
> weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
>         at 
> weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
>         at 
> weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
>         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to