This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 29092007
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit 3178601ac034a8833c0b46a4136b21f80fc55320
Author: Damitha N.M. Kumarage <[email protected]>
AuthorDate: Fri Sep 28 22:02:15 2007 +0000

    Fixing jira AXIS2C-708 in this branch.
---
 src/core/deployment/conf_init.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/core/deployment/conf_init.c b/src/core/deployment/conf_init.c
index 7fda85a..bf374e0 100644
--- a/src/core/deployment/conf_init.c
+++ b/src/core/deployment/conf_init.c
@@ -218,6 +218,14 @@ axis2_load_services(
                         impl_class =
                             axutil_class_loader_create_dll(env,
                                                            impl_info_param);
+                        if(!impl_class)
+                        {
+                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                                "Service %s could not be loaded",
+                                axis2_svc_get_name(svc_desc, env));
+                            
axutil_allocator_switch_to_local_pool(env->allocator);
+                            return AXIS2_FAILURE;
+                        }
                         axis2_svc_set_impl_class(svc_desc, env, impl_class);
                         AXIS2_SVC_SKELETON_INIT_WITH_CONF((axis2_svc_skeleton_t
                                                            *) impl_class, env,

Reply via email to