Author: damitha
Date: Tue Aug 3 10:29:03 2010
New Revision: 981810
URL: http://svn.apache.org/viewvc?rev=981810&view=rev
Log:
If Apache2 installed without mod-dbd enabled and session sample run then it
crash. Fixed this.
Modified:
axis/axis2/c/core/branches/c/1.7.x/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c
Modified:
axis/axis2/c/core/branches/c/1.7.x/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/branches/c/1.7.x/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c?rev=981810&r1=981809&r2=981810&view=diff
==============================================================================
---
axis/axis2/c/core/branches/c/1.7.x/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c
(original)
+++
axis/axis2/c/core/branches/c/1.7.x/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c
Tue Aug 3 10:29:03 2010
@@ -809,12 +809,15 @@ axis2_set_session(
request = (request_rec *) req;
authn_dbd_acquire_fn = APR_RETRIEVE_OPTIONAL_FN(ap_dbd_acquire);
- dbd = authn_dbd_acquire_fn(request);
+ if(authn_dbd_acquire_fn)
+ {
+ dbd = authn_dbd_acquire_fn(request);
+ }
if (!dbd)
{
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, request,
"Failed to acquire database connection to insert session
for "
- "id '%s'", id);
+ "id '%s'. Check whether apache2 is installed with
mod-dbd enabled", id);
return AXIS2_FAILURE;
}