[ http://issues.apache.org/jira/browse/AXIS2-701?page=all ]
Deepal Jayasinghe reassigned AXIS2-701:
---------------------------------------
Assign To: Deepal Jayasinghe
> NullPointerException when deployed as packed WAR
> ------------------------------------------------
>
> Key: AXIS2-701
> URL: http://issues.apache.org/jira/browse/AXIS2-701
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: core
> Versions: 1.0
> Environment: Windows XP Pro, Tomcat 5.5.12 & BEA Weblogic 8.1.3
> Reporter: Jeff Peterson
> Assignee: Deepal Jayasinghe
> Priority: Blocker
>
> If Axis 2 is deployed as a WAR on Tomcat 5.5.12 or BEA Weblogic 8.1.3
> (probably others), a NullPointerException occurs when a user attemps to
> access the Administration page (http://localhost:8080/axis2/axis2-admin/).
> In addition, the default Version web-service does not appear to be functional
> (not reported in happyaxis).
> The exception is as follows:
> java.lang.NullPointerException
> at org.apache.axis2.transport.http.AdminAgent.<init>(AdminAgent.java:76)
> at
> org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:58)
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1018)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
> at
> weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:894)
> at
> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
> at
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
> at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> After tracking the exception down in the source, the root cause is at
> /modules/core/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java:57
> and reads:
> repository = config.getServletContext().getRealPath("/WEB-INF");
> As it turns out, when a WAR is deployed but not unpacked by the container,
> repository will always be set to null. You can reproduce the error if you
> set unpackWARs="false" in your tomcat server.xml file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira