Im now working with the beta rc and have ported my app from alpha3 without
too much difficulty.

However, since I am deploying to weblogic6.1, I encountered a slight problem
with configuration initialisation.

If I don’t define the axis.attachments.Directory init param in web.xml for
the AxisServlet, an exception is thrown in DefaultAxisServerFactory:

java.lang.NullPointerException
        at java.io.File.<init>(File.java:180)
        at
org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerF
actory.java:112)
        at org.apache.axis.server.AxisServer.getServer(AxisServer.java:105)
        at
org.apache.axis.transport.http.AxisServlet.getEngine(AxisServlet.java:200)
        at
org.apache.axis.transport.http.AxisServlet.getEngine(AxisServlet.java:163)
        at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:405)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

This is due to the fact that if the init param is not set, getServer()
attempts to use environment.get("servlet.realpath")
to specify a directory in which to place large attachments. Since my WAR is
unpacked, the real path is null. I assume this would apply to other J2EE
containers that don’t unpack WAR's too. Maybe no fix is required for this,
but a note to include something like:

        <!-- If this is not present the attachments directory is specified
    using the Real Path - which will be null in an unpacked WAR -->
    
    <init-param>
                <param-name>axis.attachments.Directory</param-name>
                <param-value>/tmp/attachments</param-value>
                <description>Mail attachments directory</description>
    </init-param>

may help.

Cheers

Adam

Adam Leggett
UPCO
Direct Line: 0113 20 10 631
Fax: 0113 20 10 666
<http://www.upco.co.uk>
The contents of this email are intended for the named addressees and may
contain confidential and / or privileged material. If received in error,
please contact UPCO on +44 (0)113 20 10 600 and then delete the entire email
from your system. Unauthorised review, distribution, disclosure or other use
of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated.



Reply via email to