Title: How to specify the location of server-config.wsdd?
Again, stepping through the source (I could compile 99% of it with the build from yesterday), I found the problem:
 
In org.apache.axis.configuration.FileProvider, if you choose the constructor with no base path (as I did), it automatically uses "." as base path, which of course does not work if you use it like I did below, because then it searches for ".\G:\axis-alpha3\server-config.wsdd", which does not work under Windows.
 
If I use it like follows, it works:
axisServer = new AxisServer(new FileProvider("G:\\axis-alpha3", "server-config.wsdd"));
 
IMHO, it should not automatically use "." as base path and it is not entirely clear to me, why it wants to fill in the seperator between path and filename itself. I would have liked to just specify one string with the complete path and filename.
 
 
-----Original Message-----
From: Thomas Börkel
Sent: Montag, 4. Februar 2002 17:13
To: [EMAIL PROTECTED]
Subject: RE: How to specify the location of server-config.wsdd?

HI!
 
This did not work.
 
I tried:
 
    axisServer = new AxisServer(new FileProvider("G:\\axis-alpha3\\server-config.wsdd"));
But I get:
java.lang.Exception: No engine configuration file - aborting!
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:126)
 
 
The file does exist.
 
Any ideas?
 
Thanks!
 
Regards,
Thomas
-----Original Message-----
From: Glen Daniels [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 1. Februar 2002 15:25
To: '[EMAIL PROTECTED]'
Subject: RE: How to specify the location of server-config.wsdd?

 
When you create an engine in your transport, you do something like this:
 
String myFileName = "/pathname/to/wsdd-file";
FileProvider config = new FileProvider(myFileName);
AxisServer server = new AxisServer(config);
 
--G
-----Original Message-----
From: Thomas Börkel [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 6:58 AM
To: Axis Mailinglist
Subject: How to specify the location of server-config.wsdd?

HI!

The docs are talking about the WEB_INF directory. I assume, if I have a servlet, then that's the current directory. But what if I have no servlet, but my own transport? I can't load files from the current dir, I need to have the ability to specify the config directory.

How can I do that?

Thanks!

Regards,
Thomas

Reply via email to