|
> We really need to sort out this whole problem
resolution thing. How any times have we seen emails like this !? > Any
one got any clues as to what we can do ?
Yes, I have some suggestions:
int axis_handler_helper(request_rec*
req_rec)
and static void module_init(apr_pool_t* p,
server_rec* svr_rec)
in mod_axis2.cpp (and correspondingly for the other
"servers", but my guess is mod_axis2 is by far the most commenly used one), with
try and catch, where the catch should look like this:
} catch(AxisException& e) {
std::cerr << "An error
occurred while Axis was initializing: " << e.what() <<
std::endl;
} catch(...) {
std::cerr << "An unkown
error occurred while Axis was initializing: " << e.what() <<
std::endl;
}
You will need to add two lines at the top of the
file:
#include <iostream>
#include
<axis/AxisException.hpp>
This will result in errors being written to
Apache's access.log. There are other methods you can use to write to the
error.log file too. But writing to stderr is convenient, and the main point is
that we see the error message instead of a crash.
2. But wait, there is more! It turns out that the
error messages for the common library loading problems that many have happening,
do not include the name of the library being loaded. This can fixed
this way:
Search the code for the string "Load lib error='%s'
\n". Add to this string "Lib = '%s'", and make sure you include the path of the
library after PLATFORM_LOADLIB_ERROR in the sprintf arg list. (Oh, and while you
are at it you can replace sprintf() with std::string. And why is
PLATFORM_GET_ERROR_MESSAGE() returning string* instead of string
??!!)
I did this at work and it works fine (I keep
getting an error saying it can't find the xml parser lib, even though I have
Xerces in the path). This code was from memory, but it should
compile.
- Henrik
----- Original Message -----
Sent: Friday, September 09, 2005 2:37
AM
Subject: RE: Problem in Installing Axis
C++
We really need to sort out this whole problem resolution thing. How any
times have we seen emails like this !?
Any one got any clues as to what we can do ?
| "Dushshantha
Chandradasa" <[EMAIL PROTECTED]>
09/09/2005 10:07
|
Please respond
to "Apache AXIS C Developers
List" |
|
|
To
| "Apache AXIS C
Developers List" <[email protected]>
|
|
cc
|
|
|
Subject
| RE: Problem in
Installing Axis C++ |
|
I have experienced such thing when I didn't have xerces-c_2_2_0.dll
in the path. If apache can't load the module, it complains about
that. According to my experience, Apache crashes quietly only when there is
no xerces-c_2_2_0.dll file in the path.
-----Original
Message----- From: Thushantha De Alwis [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 2:57 PM To: Apache AXIS C Developers
List Subject: RE: Problem in Installing Axis C++
Yes, It's there in
the path. I double checked all the path settings. Following line is added
to path variable also,
C:\Program Files\Apache
Group\Apache2\Axis\lib
Regards Thushantha
> Just check
whether your xerces dll ( ex: if you are using xerces 2.2, >
xerces-c_2_2_0.dll) is in your system path. > > Regards, >
Dushshantha > > -----Original Message----- > From:
Thushantha De Alwis [mailto:[EMAIL PROTECTED] > Sent: Friday,
September 09, 2005 2:41 PM > To: [email protected];
[email protected] > Subject: Problem in Installing Axis
C++ > > Hi All > > I'm trying to install Axis C++
after a long time. Any how I have a > problem > when I tried to
install it. > > I added following lines to the end of the
httpd.conf file. > > LoadModule axis_module
modules/mod_axis2.dll > <Location /axis> > SetHandler
axis > </Location> > > axiscpp.conf file as
follows, > > LogPath:C:\Program Files\Apache
Group\Apache2\Axis\logs\AxisLog.txt > WSDDFilePath:C:\Program
Files\Apache Group\Apache2\axis\conf\server.wsdd >
XMLParser:C:\Program Files\Apache
Group\Apache2\Axis\lib\XMLParser.dll > Transport_http:C:\Program\Files\Apacheroup\Apache2Axis\lib\HTTPTransport >
.dll > Channel_HTTP:C:\Program Files\Apache >
Group\Apache\Axis\lib\HTTPChannel.dll > > When I tried to start
the apache server as mentioned in the install > document it dosn't show
any message. But actually Apache doesn't start. > But when I commnted
the line > LoadModule axis_module modules/mod_axis2.dll > >
it starts fine. Therefore I think there is a problem exists
in htpd.conf > entry to load the module. > > Can some one
help me on this issue. > > Best Regards >
Thushantha >
|