Adam is right.
Concerning the issue to write to the server-config.wsdd file.
I have found that the problem is the use of
ServletContext.getRealPath with weblogic .
If you have deployed Axis as a WAR file, Weblogic will return null when ServletContext.getRealPath is called :
If you take a look to the getEngine method of org.apache.axis.transport.http.AdminServlet
the error will occur from
FileProvider provider =
new FileProvider(getServletContext().getRealPath("/WEB-INF"),
Constants.SERVER_CONFIG_FILE);
.This behavior persists even if the application is exploded onto disk - WL6.1still treats it the same as a war file
The conclusion is to do like Adam did....subclass AdminServlet and override getEngine method
herve
*********************************
Herve Attia
Cell (650) 922-1973
Home (650) 992-3997
http://www.chez.com/attia/resume/
>From: "Adam.Leggett" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Axis/BEA WL 6.1 still issue...
>Date: Fri, 1 Mar 2002 09:45:24 -0000
>
>Using Weblogic 6.1 SP2 and Axis alpha 3 we have solved this in a slightly
>different way.
>
>We used our own custom ConfigurationProvider implementation which looks for
>a System property to specify a resource name,
>so we can load our config from within the war in weblogic (Maybe the latest
>build gives you this). Then we extended AxisServlet and provided our own
>implementation of getEngine() to put this into the enviroment Map.
>
>We are taking the approach that we do not need to write out to our wsdd
>while the engine is up, ie dynamic deployment.
>
>As I said, the nightly build may already provide for all this, but we are
>sticking with alpha3 for now.
>
>Cheers
>
>Adam
>
>-----Original Message-----
>From: Glyn Normington [mailto:[EMAIL PROTECTED]]
>Sent: Friday, March 01, 2002 9:03 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Axis/BEA WL 6.1 still issue...
>
>
>
> >I added "-Daxis.ServerConfigFile=E:\temp\server-config.wsdd" to the BEA
>startup command line.
>
>I wonder if file access is somehow restricted to the /WEB-INF directory? I'd
>guess others are not using -Daxis.ServerConfigFile as it's relatively new
>(and undocumented).
>
>Glyn
Get your FREE download of MSN Explorer at http://explorer.msn.com.
