You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/03/28 11:59:50 UTC
svn commit: r389464 - in
/webservices/axis2/trunk/c/modules/core/transport/http/server:
apache2/mod_axis2.c simple_axis2_server/http_server_main.c
Author: sahan
Date: Tue Mar 28 01:59:48 2006
New Revision: 389464
URL: http://svn.apache.org/viewcvs?rev=389464&view=rev
Log:
we should init parser before using it
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/mod_axis2.c
webservices/axis2/trunk/c/modules/core/transport/http/server/simple_axis2_server/http_server_main.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/mod_axis2.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/mod_axis2.c?rev=389464&r1=389463&r2=389464&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/mod_axis2.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/mod_axis2.c Tue Mar 28 01:59:48 2006
@@ -24,6 +24,7 @@
#include <axis2_error_default.h>
#include <axis2_log_default.h>
#include <axis2_thread_pool.h>
+#include <axis2_xml_reader.h>
/* Configuration structure populated by apache2.conf */
typedef struct axis2_config_rec
@@ -71,6 +72,9 @@
axis2_config_rec_t *conf = apr_palloc(p, sizeof(*conf));
conf->axis2_log_file = NULL;
conf->axis2_repo_path = NULL;
+ /* We need to init xml readers before we go into threaded env
+ */
+ axis2_xml_reader_init();
return conf;
}
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/simple_axis2_server/http_server_main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/simple_axis2_server/http_server_main.c?rev=389464&r1=389463&r2=389464&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/simple_axis2_server/http_server_main.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/simple_axis2_server/http_server_main.c Tue Mar 28 01:59:48 2006
@@ -25,6 +25,7 @@
#include <signal.h>
#include <axis2_types.h>
#include <ctype.h>
+#include <axis2_xml_reader.h>
axis2_env_t *system_env = NULL;
axis2_transport_receiver_t *server = NULL;
@@ -39,6 +40,10 @@
axis2_error_t *error = axis2_error_create(allocator);
axis2_log_t *log = axis2_log_create(allocator, NULL, log_file);
axis2_thread_pool_t *thread_pool = axis2_thread_pool_init(allocator);
+ /* We need to init the parser in main thread before spawning child
+ * threads
+ */
+ axis2_xml_reader_init();
return axis2_env_create_with_error_log_thread_pool(allocator, error, log,
thread_pool);
}