axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10512] - different servlet-engines and servletContext-method getRealPath()
Date Sun, 14 Jul 2002 23:46:35 GMT
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=10512>.
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=10512

different servlet-engines and servletContext-method getRealPath()

markmansour@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markmansour@yahoo.com
           Priority|Other                       |High



------- Additional Comments From markmansour@yahoo.com  2002-07-14 23:46 -------
This is also a problem with WebLogic 6.1 and 7.0 (have not tested on other 
versions).  

More specifically, when an application is deployed as a .war the getRealPath() 
will not work as resources within a .war file do not have real paths.  Instead, 
these resources should be accessed via the getResource (ServletContext) 
method.  The Cocoon project has mentioned this issue a few times also.

I have also changed the priority to HIGH since WebLogic has such a large market 
share and it should (I believe) work out of the box.

java.lang.NullPointerException
        at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:279
)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:945)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:332)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5360)
        at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
        at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2468)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
>

Mime
View raw message