Given the numerous complaints on Simple Axis Server not working, I got a fresh machine (never touched by Axis C++) and installed Axis C++ from scratch and documented the process of how to get it running.
PFA the document The operating system on the machine was Windows 2003 server. HTH Thanks, Samisa... -----Original Message----- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 9:21 AM To: Apache AXIS C Developers List; [EMAIL PROTECTED] Subject: RE: SimpleAxisServer will not start As mentioned in the reply thread http://marc.theaimsgroup.com/?t=111333000000001&r=1&w=2, Xerces DLL is the culprit most of the time. However, as you have mentioned, you seem to have this on the PATH. I tried running simple axis server without Xerces dll on my PATH and I get the same error as you get. When I put this back, things work OK. Additionally do you have W:\SimpleAxisServer\Axis\conf\server.wsdd file as specified by axiscpp.conf in the correct location? If this is missing, you tend to get a similar error but the error will also say that it cannot locate the server.wsdd file. To verify that the settings are correct, before running simple axis server on a new shell, try echo %AXISCPP_DEPLOY% to and %PATH% to make sure that the settings include what is required by Axis C++. Thanks, Samisa... -----Original Message----- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 12:10 AM To: Apache AXIS C User List; Apache AXIS C Developers List Subject: Re: SimpleAxisServer will not start I had posted the same problem and did not get a reply :( -- dims On 4/28/05, Jeff Clary <[EMAIL PROTECTED]> wrote: > Folks, > > I am having trouble getting Axis C++ SimpleAxisServer to start under Windows XP. It gives the following message: > > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. > > I followed the instructions at http://ws.apache.org/axis/cpp/wininstall-guide.html, in the "Installation with Simple Axis Server" section. In particular: > > 1. I created the folder W:\SimpleAxisServer. > 2,3,4. I extracted axis-c-1-5-win32.zip copied the deploy folder to W:\SimpleAxisServer, and renamed it Axis. > 5,6. I set AXISCPP_DEPLOY=W:\SimpleAxisServer\Axis and added W:\SimpleAxisServer\Axis\lib to my PATH variable. > 7. I copied SimpleAccessServer.exe from the extracted files to W:\SimpleAxisServer. > 8,9,10. I copied the required DLLs to W:\SimpleAxisServer\Axis\lib, including xerces-c_2_2_0.dll. (I renamed AxisXMLParser_Xerces.dll to AxisXMLParser.dll as instructed.) > 10. I edited W:\SimpleAxisServer\Axis\axiscpp.conf as follows: > > LogPath:W:\SimpleAxisServer\log\AxisLog > WSDDFilePath:W:\SimpleAxisServer\Axis\conf\server.wsdd > XMLParser:W:\SimpleAxisServer\lib\AxisXMLParser.dll > Transport_http:W:\SimpleAxisServer\lib\HTTPTransport.dll > Channel_HTTP:W:\SimpleAxisServer\lib\HTTPChannel.dll > Channel_HTTP_SSL:W:\SimpleAxisServer\lib\HTTPSSLChannel.dll > > 11. I opened a command prompt in W:\SimpleAxisServer and ran the command "SimpleAxisServer 80". No joy. I retried it with port 8080. Following the note in the instructions, I copied AxisClient.dll to W:\SimpleAxisServer. In fact, I copied *all* the DLLs from the Axis bin directory to W:\SimpleAxisServer. > > I checked the W:\SimpleAxisServer\log\AxisLog file for errors, but it is empty. (I created it empty just in case Axis needed an existing log file.) > > Sorry if this is a FAQ kind of thing, but I searched the lists without finding anything obvious. I did find something dated 2004-07-06 saying SimpleAxisServer was out of date and has problems. Could that still be the case? > > Thanks, > Jeff > -- Davanum Srinivas - http://webservices.apache.org/~dims/
1. Download binaries Axis C++ binary from http://www.apache.org/dist/ws/axis-c/axis-c-win32-current-bin.zip Xerces binary from http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_2_0/xerces-c2_2_0-win32.zip 2. Extract downloads Extract axis-c-win32-current-bin.zip to D:\axis-c-1-5-win32 Extract xerces-c2_2_0-win32.zip to D:\xerces-c2_2_0-win32 3. Copy Xerces lib to Axis C++ extract folder copy D:\xerces-c2_2_0-win32\bin\xerces-c_2_2_0.dll D:\axis-c-1-5-win32\bin 4. Set Environment variables Open a command shell and run: set AXISCPP_DEPLOY=D:\axis-c-1-5-win32 set PATH=%PATH%;%AXISCPP_DEPLOY%\bin 5. Set up the configuration On the same shell used in step 4 run: cd %AXISCPP_DEPLOY% Now you should be on D:\axis-c-1-5-win32 Copy the conf file: copy deploy\axiscpp.conf_win axiscpp.conf Edit the conf file to have the following content LogPath:D:\axis-c-1-5-win32\bin\AxisLog.txt WSDDFilePath:D:\axis-c-1-5-win32\samples\server.wsdd XMLParser:D:\axis-c-1-5-win32\bin\AxisXMLParserXerces.dll Transport_http:D:\axis-c-1-5-win32\bin\HTTPTransport.dll Channel_HTTP:D:\axis-c-1-5-win32\bin\HTTPChannel.dll NOTE: Please do not set Channel_HTTP_SSL in axiscpp.conf Now setup the server.wsdd file copy samples\server.wsdd.win32 samples\server.wsdd Edit server.wsdd file to match your settings (In this case replace all C:\obj\samples with D:\axis-c-1-5-win32\deploy\webservices) 6. Run SimpleAxisServer On the same command shell used in steps 4 and 5 bin\simpleaxisserver 9090 7. Run clients Open a new command shell Set environment variables: set AXISCPP_DEPLOY=D:\axis-c-1-5-win32 set PATH=%PATH%;%AXISCPP_DEPLOY%\bin cd to %AXISCPP_DEPLOY% And run the sample bin\base http://localhost:9090/axis/base