You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by ro...@apache.org on 2026/08/18 22:30:58 UTC
(axis-axis2-c-core) branch master updated (c30d511a4 -> e2a57278d)
This is an automated email from the ASF dual-hosted git repository.
robertlazarski pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git
from c30d511a4 Stop hardcoding one machine's checkout path in the deploy scripts
new 08d7a245e Delete two ad-hoc deploy scripts and correct the module filename
new e2a57278d Delete the per-service build scripts the samples build replaces
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
INSTALL | 7 +-
deploy_enhanced_module.sh | 37 -
deploy_pthread_debug_module.sh | 37 -
docs/HTTP2_JSON_DEBUG.md | 850 ++++++++++-----------
docs/userguide/deploy-localhost.sh | 9 +-
docs/userguide/json-httpd-h2-userguide.md | 6 +-
.../build_json_builder_formatter.sh | 149 ----
.../bigdata-h2-service/build_json_rpc_service.sh | 117 ---
.../bigdata-h2-service/build_json_service.sh | 142 ----
.../build_native_json_revolutionary.sh | 136 ----
.../bigdata-h2-service/build_native_json_rpc.sh | 152 ----
.../bigdata-h2-service/build_simple_json.sh | 147 ----
.../bigdata-h2-service/clean_rebuild_json_rpc.sh | 147 ----
.../camera-control-service/IMPLEMENTATION_GUIDE.md | 2 +-
.../user_guide/camera-control-service/Makefile.am | 2 +-
.../user_guide/camera-control-service/README.md | 10 +-
.../camera-control-service/build_camera_service.sh | 110 ---
.../build_financial_service.sh | 171 -----
.../user_guide/login-service/build_json_service.sh | 134 ----
.../testws-service/build_json_service.sh | 140 ----
xdocs/docs/axis2c_manual.html | 4 +-
xdocs/docs/installationguide.html | 4 +-
22 files changed, 448 insertions(+), 2065 deletions(-)
delete mode 100755 deploy_enhanced_module.sh
delete mode 100755 deploy_pthread_debug_module.sh
delete mode 100644 samples/user_guide/bigdata-h2-service/build_json_builder_formatter.sh
delete mode 100755 samples/user_guide/bigdata-h2-service/build_json_rpc_service.sh
delete mode 100644 samples/user_guide/bigdata-h2-service/build_json_service.sh
delete mode 100644 samples/user_guide/bigdata-h2-service/build_native_json_revolutionary.sh
delete mode 100644 samples/user_guide/bigdata-h2-service/build_native_json_rpc.sh
delete mode 100644 samples/user_guide/bigdata-h2-service/build_simple_json.sh
delete mode 100755 samples/user_guide/bigdata-h2-service/clean_rebuild_json_rpc.sh
delete mode 100755 samples/user_guide/camera-control-service/build_camera_service.sh
delete mode 100755 samples/user_guide/financial-benchmark-service/build_financial_service.sh
delete mode 100644 samples/user_guide/login-service/build_json_service.sh
delete mode 100644 samples/user_guide/testws-service/build_json_service.sh
(axis-axis2-c-core) 02/02: Delete the per-service build scripts the samples build replaces
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git
commit e2a57278dd4902694f2962656b44f491f890311e
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Tue Aug 18 12:20:24 2026 -1000
Delete the per-service build scripts the samples build replaces
The eleven build_*.sh scripts under samples/user_guide predate those
services being wired into the samples build system, and the user guide no
longer points at them. They hardcoded /usr/local/axis2c for headers,
libraries and the install path, needed sudo, and looked for a
libmod_axis2.so.0.7.0 that -avoid-version never produces. Move their
callers -- deploy-localhost.sh and four documents -- to make -C user_guide.
Co-Authored-By: Claude Opus 5 (1M context) <no...@anthropic.com>
---
docs/HTTP2_JSON_DEBUG.md | 850 ++++++++++-----------
docs/userguide/deploy-localhost.sh | 9 +-
docs/userguide/json-httpd-h2-userguide.md | 6 +-
.../build_json_builder_formatter.sh | 149 ----
.../bigdata-h2-service/build_json_rpc_service.sh | 117 ---
.../bigdata-h2-service/build_json_service.sh | 142 ----
.../build_native_json_revolutionary.sh | 136 ----
.../bigdata-h2-service/build_native_json_rpc.sh | 152 ----
.../bigdata-h2-service/build_simple_json.sh | 147 ----
.../bigdata-h2-service/clean_rebuild_json_rpc.sh | 147 ----
.../camera-control-service/IMPLEMENTATION_GUIDE.md | 2 +-
.../user_guide/camera-control-service/Makefile.am | 2 +-
.../user_guide/camera-control-service/README.md | 10 +-
.../camera-control-service/build_camera_service.sh | 110 ---
.../build_financial_service.sh | 171 -----
.../user_guide/login-service/build_json_service.sh | 134 ----
.../testws-service/build_json_service.sh | 140 ----
17 files changed, 440 insertions(+), 1984 deletions(-)
diff --git a/docs/HTTP2_JSON_DEBUG.md b/docs/HTTP2_JSON_DEBUG.md
index bc83f7d6f..70d9fea12 100644
--- a/docs/HTTP2_JSON_DEBUG.md
+++ b/docs/HTTP2_JSON_DEBUG.md
@@ -1,425 +1,425 @@
-# HTTP/2 JSON Deployment Debugging Guide
-
-Practical debugging guide for Axis2/C HTTP/2 JSON services running under
-Apache httpd on Debian/Ubuntu systems. Based on real deployment issues
-encountered on Ubuntu 22.04 with the packaged Apache (`apache2` package).
-
-## Quick Reference: Log Locations
-
-| Log | Path | What it tells you |
-|-----|------|-------------------|
-| Apache error log | `/var/log/apache2/error.log` | Module load failures, SSL errors, child crashes |
-| Apache access log | `/var/log/apache2/access.log` | Request routing (empty = requests not reaching vhost) |
-| Apache other vhosts | `/var/log/apache2/other_vhosts_access.log` | Requests hitting wrong vhost |
-| Axis2/C log | `/var/log/axis2c/axis2.log` | Service loading, transport init, worker creation |
-
-## Quick Reference: Diagnostic Commands
-
-```bash
-# Is Apache running and on which ports?
-systemctl status apache2
-ss -tlnp | grep apache2
-
-# Which vhosts are active?
-apache2ctl -S
-
-# Which modules are loaded?
-apache2ctl -M | grep -E 'ssl|http2|axis2'
-
-# Test config syntax
-apache2ctl configtest
-
-# Recent core dumps from Apache
-coredumpctl list apache2 | tail -5
-```
-
----
-
-## Problem 1: Apache Starts but Nothing Listens / Curl Returns 000
-
-**Symptoms:**
-- `systemctl status apache2` shows active
-- `curl -k https://localhost/` returns empty or 000
-- `access.log` is empty
-
-**Diagnosis:** Check if the SSL vhost is actually loaded.
-
-```bash
-apache2ctl -S
-```
-
-If only the port 80 vhost appears and the port 443 vhost is missing:
-
-```bash
-# Is the site config file present?
-ls /etc/apache2/sites-available/axis2-services.conf
-
-# Is it enabled (symlinked)?
-ls /etc/apache2/sites-enabled/ | grep axis2
-
-# Enable it
-a2ensite axis2-services
-apache2ctl configtest && systemctl restart apache2
-```
-
-**Root cause:** The site config was never copied to `sites-available/` or
-`a2ensite` was never run. The deploy script copies from the source tree —
-if the file isn't committed to git, it won't exist on the target machine.
-
----
-
-## Problem 2: TLS Handshake Bytes in Port 80 Log
-
-**Symptom:** `other_vhosts_access.log` shows:
-```
-axis2c.example.com:80 127.0.0.1 - - [...] "\x16\x03\x01\x02" 400 499
-```
-
-**What it means:** `\x16\x03\x01` is a TLS ClientHello hitting the plain
-HTTP port 80 vhost. The client is sending HTTPS but there is no port 443
-listener, so the connection fails and may fall through to port 80.
-
-**Fix:** Ensure `mod_ssl` is loaded and the 443 vhost is active:
-```bash
-a2enmod ssl
-apache2ctl -S # should show *:443 vhost
-```
-
----
-
-## Problem 3: OCSP Stapling Errors with Self-Signed Certificates
-
-**Symptom in error.log:**
-```
-AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate!
-AH02604: Unable to configure certificate for stapling
-```
-
-**What it means:** `SSLUseStapling on` requires a CA-signed certificate
-with an OCSP responder URL. Self-signed certificates have no issuer to
-query for stapling.
-
-**Fix:** Disable OCSP stapling in the vhost config:
-```apache
-# SSLUseStapling on
-```
-
-Re-enable when switching to a CA-signed certificate (e.g., Let's Encrypt).
-
----
-
-## Problem 4: "Transport sender is NULL" — Worker Creation Fails
-
-**Symptom in axis2.log:**
-```
-Loading shared library libaxis2_http_sender.so Failed. No such file or directory
-Transport sender is NULL for transport http, unable to continue
-```
-
-**Symptom in error.log:**
-```
-[Axis2] Error creating mod_axis2 apache2 worker
-Child returned a Fatal error... Apache is exiting!
-```
-
-**What it means:** `axis2.xml` references `axis2_http_sender` and
-`axis2_http_receiver`, which map to shared libraries. In HTTP/2 mode these
-libraries are intentionally **not built** — Apache httpd handles all
-transport via `mod_axis2` (see `docs/HTTP2_CONDITIONAL_COMPILATION.md`).
-
-**Fix:** Comment out the `<transportSender>` and `<transportReceiver>`
-blocks in `axis2.xml`:
-```xml
-<!--transportSender name="http" class="axis2_http_sender">
- ...
-</transportSender-->
-
-<!--transportReceiver name="http" class="axis2_http_receiver">
- ...
-</transportReceiver-->
-```
-
-The source-controlled copy is `samples/server/axis2.xml`. After editing,
-run `make install` to propagate to `$(prefix)/share/axis2c/axis2.xml`.
-
-See also: `docs/HTTP2_AXIS2_DOT_XML.md`
-
----
-
-## Problem 5: Child Process Segfault (SIGSEGV) Loop
-
-**Symptom in error.log:**
-```
-child pid NNNNN exit signal Segmentation fault (11), possible coredump in /etc/apache2
-```
-
-The parent process stays alive, keeps spawning children that immediately
-crash — Apache appears "running" but serves no requests.
-
-### Getting a Backtrace
-
-On systemd systems, core dumps are captured by `systemd-coredump`:
-
-```bash
-# List recent Apache crashes
-coredumpctl list apache2 | tail -10
-
-# Show crash info including stack trace
-coredumpctl info apache2 | head -80
-
-# Full GDB backtrace (if debug symbols available)
-coredumpctl debug apache2 --debugger=gdb \
- --debugger-arguments="-batch -ex 'bt full' -ex 'quit'"
-```
-
-If `coredumpctl` is not available, enable manual core dumps:
-```bash
-# Set core dump pattern and size limit
-echo '/tmp/core.%e.%p' > /proc/sys/kernel/core_pattern
-ulimit -c unlimited
-
-# Note: systemctl-started processes inherit systemd's limits, not the shell's.
-# For systemd services, edit the unit override:
-systemctl edit apache2
-# Add:
-# [Service]
-# LimitCORE=infinity
-
-systemctl restart apache2
-sleep 3
-ls /tmp/core.apache2.*
-
-# Analyze with GDB
-gdb /usr/sbin/apache2 /tmp/core.apache2.* -batch -ex 'bt full' -ex 'quit'
-```
-
-### Common Segfault: axis2_get_instance Signature Mismatch
-
-**Stack trace pattern:**
-```
-#0 axis2_svc_create (libaxis2_engine.so)
-#1 axis2_<servicename>_create (lib<servicename>.so)
-#2 axutil_class_loader_create_dll (libaxutil.so)
-#3 axis2_msg_recv_load_and_init_svc_impl (libaxis2_engine.so)
-#4 axis2_apache2_worker_create (libmod_axis2.so)
-```
-
-**Root cause:** The service's `axis2_get_instance` function has the wrong
-signature. The class loader (`axutil_class_loader_create_dll`) calls it as:
-
-```c
-// Expected signature (CREATE_FUNCT from axutil_dll_desc.h):
-int axis2_get_instance(void **inst, const axutil_env_t *env);
-
-// Called as:
-create_funct(&obj, env);
-```
-
-If the service instead exports:
-```c
-// WRONG — causes segfault:
-axis2_svc_t* axis2_get_instance(const axutil_env_t *env);
-```
-
-Then `&obj` (a `void**`) is misinterpreted as `env`, and the real `env`
-goes to an unused parameter slot. Any dereference of `env` inside the
-service (e.g., `env->allocator` in `axis2_svc_create`) segfaults.
-
-**Fix:** Match the `CREATE_FUNCT` / `DELETE_FUNCT` typedefs exactly:
-```c
-AXIS2_EXTERN int AXIS2_CALL
-axis2_get_instance(void **inst, const axutil_env_t *env)
-{
- *inst = axis2_my_service_create(env);
- if (!(*inst)) return AXIS2_FAILURE;
- return AXIS2_SUCCESS;
-}
-
-AXIS2_EXTERN int AXIS2_CALL
-axis2_remove_instance(void *inst, const axutil_env_t *env)
-{
- axis2_svc_t *svc = (axis2_svc_t *)inst;
- if (svc) axis2_svc_free(svc, env);
- return AXIS2_SUCCESS;
-}
-```
-
-**Alternative approach:** Some services (e.g., `bigdata-h2-service`,
-`login-service`, `testws-service`) avoid this trap entirely by **not
-exporting `axis2_get_instance`**. They rely solely on the `ServiceClass`
-parameter in `services.xml` and the `_invoke_json` dlsym lookup path in
-the `JsonRpcMessageReceiver`. This sidesteps the `CREATE_FUNCT` signature
-requirement altogether. Only export `axis2_get_instance` / `axis2_remove_instance`
-if your service needs custom initialization during worker startup.
-
----
-
-## Problem 6: Apache Module Not Found at Install Time
-
-**Symptom during `make install`:**
-```
-Neither mod_axis2.so nor libmod_axis2.so found at /usr/local/apache2/modules/
-```
-
-**What it means:** The Makefile.am `apachemoddir` is set to a path that
-doesn't exist. Source-built Apache uses `/usr/local/apache2/modules/`;
-packaged Apache uses system paths.
-
-**Fix:** Set `apachemoddir = @prefix@/lib` in
-`src/core/transport/http/server/apache2/Makefile.am`, then `autoreconf -fiv`
-and rebuild. The `axis2-services.conf` loads the module from
-`/usr/local/axis2c/lib/libmod_axis2.so` which matches `--prefix=/usr/local/axis2c`.
-
----
-
-## Problem 7: json-c Version Incompatibility
-
-**Symptom during `make`:**
-```
-error: 'json_tokener_error_memory' undeclared
-```
-
-**What it means:** The code uses `json_tokener_error_memory` which was
-added in json-c **0.17**, but the version guard checks for `>= 0.14`.
-Ubuntu 22.04 ships json-c 0.15 which passes the guard but lacks the enum.
-
-**Fix:** In `src/core/transport/http/util/axis2_json_reader.c`, change the
-version guard for `json_tokener_error_memory` and `json_tokener_error_size`
-from `(14 << 8)` to `(17 << 8)`:
-
-```c
-#if defined(JSON_C_VERSION_NUM) && JSON_C_VERSION_NUM >= ((0 << 16) | (17 << 8))
- case json_tokener_error_memory:
- return "error_memory";
- case json_tokener_error_size:
- return "error_size";
-#endif
-```
-
----
-
-## Problem 8: Post-Restart Health Check Passes but Service Crashes
-
-**Symptom:** The deploy script reports "Apache is running" but verification
-curls all return 000.
-
-**What it means:** Apache's parent process starts successfully (passes
-`systemctl is-active` check), but child processes crash during worker
-initialization. With `mpm_event`, the parent keeps trying to spawn children,
-creating a crash loop visible in `error.log`.
-
-**Diagnosis:**
-```bash
-# The parent is alive but children are dying
-tail -20 /var/log/apache2/error.log # look for "Child returned a Fatal error"
-tail -20 /var/log/axis2c/axis2.log # look for loading errors before the crash
-```
-
-**Common causes (in order of likelihood):**
-1. Missing transport libs in `axis2.xml` (Problem 4)
-2. Service DLL signature mismatch (Problem 5)
-3. Missing service shared libraries
-4. Corrupt `axis2.xml` (syntax errors)
-
----
-
-## Problem 9: Request-Path Segfault — NULL Transport Descriptor
-
-**Symptom:** Worker init succeeds (axis2.log shows "Axis2 worker created")
-but Apache child crashes on the first incoming request.
-
-**Stack trace pattern (from `coredumpctl info`):**
-```
-#0 axis2_transport_in_desc_get_recv (libaxis2_engine.so)
-#1 axis2_apache2_worker_process_request (libmod_axis2.so)
-#2 axis2_handler (libmod_axis2.so)
-#3 ap_run_handler (apache2)
-```
-
-**Root cause:** In `apache2_worker.c`, the request processing path calls:
-```c
-in_desc = axis2_conf_get_transport_in(conf, env, AXIS2_TRANSPORT_ENUM_HTTP);
-// in_desc is NULL because transportReceiver is commented out in axis2.xml
-receiver = axis2_transport_in_desc_get_recv(in_desc, env); // SEGFAULT
-```
-
-When `transportReceiver` is absent from `axis2.xml` (correct for HTTP/2
-mode), `axis2_conf_get_transport_in()` returns NULL. The code then passes
-NULL to `axis2_transport_in_desc_get_recv()` which dereferences it.
-
-**Fix:** NULL-guard the transport descriptor before use:
-```c
-if(in_desc)
-{
- receiver = axis2_transport_in_desc_get_recv(in_desc, env);
- if(receiver)
- axis2_transport_receiver_set_server_ip(receiver, env, ...);
-}
-```
-
-**Key insight:** There are **two separate crash points** when removing
-transport config from axis2.xml — one during init (Problem 4: "Transport
-sender is NULL") and one during request handling (this problem). Fixing
-Problem 4 alone is not sufficient; the request path must also tolerate
-NULL transport descriptors.
-
----
-
-## Problem 10: "Operation Not Found" for Valid Service
-
-**Symptom in axis2.log:**
-```
-Operation Not found. Endpoint reference is : /services/MyService/someOperation
-```
-
-**Symptom in response:**
-```json
-{"error":{"message":"Service processing failed","code":500}}
-```
-
-**What it means:** The service is loaded and running, but the operation
-name in the URL path doesn't match any `<operation name="...">` in
-`services.xml`.
-
-**Diagnosis:** Check what operations are actually registered:
-```bash
-grep '<operation name=' /usr/local/axis2c/services/MyService/services.xml
-```
-
-**Common causes:**
-- URL uses a different operation name than what's in `services.xml`
-- The test/deploy script uses a placeholder operation name (e.g., `benchmark`)
- that was never defined
-- Case sensitivity mismatch
-
----
-
-## Packaged Apache vs Source-Built Apache
-
-Many issues stem from path differences between these two environments:
-
-| Component | Packaged (Debian/Ubuntu) | Source-built |
-|-----------|-------------------------|--------------|
-| Binary | `/usr/sbin/apache2` | `/usr/local/apache2/bin/httpd` |
-| Modules dir | `/usr/lib/apache2/modules/` | `/usr/local/apache2/modules/` |
-| Config dir | `/etc/apache2/` | `/usr/local/apache2/conf/` |
-| Site management | `a2ensite` / `a2dissite` | Manual `Include` directives |
-| Module management | `a2enmod` / `a2dismod` | `LoadModule` in httpd.conf |
-| mod_http2 name | `mod_http2.so` (`a2enmod http2`) | `mod_h2.so` |
-| Service management | `systemctl restart apache2` | `httpd -k restart` |
-
-The `deploy-localhost.sh` script and `axis2-services.conf` are designed for
-the **packaged** Apache. The individual service build scripts
-(`build_json_service.sh`, etc.) detect source-built Apache at
-`/usr/local/apache2` and configure it automatically; otherwise they skip
-module installation and defer to `deploy-localhost.sh`.
-
----
-
-## Related Documentation
-
-- `docs/HTTP2_AXIS2_DOT_XML.md` — Why axis2.xml doesn't need HTTP/2 transport config
-- `docs/HTTP2_CONDITIONAL_COMPILATION.md` — What's built/excluded in HTTP/2 mode
-- `docs/HTTP2_LIBRARY_LOADING.md` — How Axis2/C loads service shared libraries
-- `docs/HTTP2_APACHE2_WORKER.md` — Apache worker initialization details
-- `docs/userguide/json-httpd-h2-userguide.md` — Full deployment guide
+# HTTP/2 JSON Deployment Debugging Guide
+
+Practical debugging guide for Axis2/C HTTP/2 JSON services running under
+Apache httpd on Debian/Ubuntu systems. Based on real deployment issues
+encountered on Ubuntu 22.04 with the packaged Apache (`apache2` package).
+
+## Quick Reference: Log Locations
+
+| Log | Path | What it tells you |
+|-----|------|-------------------|
+| Apache error log | `/var/log/apache2/error.log` | Module load failures, SSL errors, child crashes |
+| Apache access log | `/var/log/apache2/access.log` | Request routing (empty = requests not reaching vhost) |
+| Apache other vhosts | `/var/log/apache2/other_vhosts_access.log` | Requests hitting wrong vhost |
+| Axis2/C log | `/var/log/axis2c/axis2.log` | Service loading, transport init, worker creation |
+
+## Quick Reference: Diagnostic Commands
+
+```bash
+# Is Apache running and on which ports?
+systemctl status apache2
+ss -tlnp | grep apache2
+
+# Which vhosts are active?
+apache2ctl -S
+
+# Which modules are loaded?
+apache2ctl -M | grep -E 'ssl|http2|axis2'
+
+# Test config syntax
+apache2ctl configtest
+
+# Recent core dumps from Apache
+coredumpctl list apache2 | tail -5
+```
+
+---
+
+## Problem 1: Apache Starts but Nothing Listens / Curl Returns 000
+
+**Symptoms:**
+- `systemctl status apache2` shows active
+- `curl -k https://localhost/` returns empty or 000
+- `access.log` is empty
+
+**Diagnosis:** Check if the SSL vhost is actually loaded.
+
+```bash
+apache2ctl -S
+```
+
+If only the port 80 vhost appears and the port 443 vhost is missing:
+
+```bash
+# Is the site config file present?
+ls /etc/apache2/sites-available/axis2-services.conf
+
+# Is it enabled (symlinked)?
+ls /etc/apache2/sites-enabled/ | grep axis2
+
+# Enable it
+a2ensite axis2-services
+apache2ctl configtest && systemctl restart apache2
+```
+
+**Root cause:** The site config was never copied to `sites-available/` or
+`a2ensite` was never run. The deploy script copies from the source tree —
+if the file isn't committed to git, it won't exist on the target machine.
+
+---
+
+## Problem 2: TLS Handshake Bytes in Port 80 Log
+
+**Symptom:** `other_vhosts_access.log` shows:
+```
+axis2c.example.com:80 127.0.0.1 - - [...] "\x16\x03\x01\x02" 400 499
+```
+
+**What it means:** `\x16\x03\x01` is a TLS ClientHello hitting the plain
+HTTP port 80 vhost. The client is sending HTTPS but there is no port 443
+listener, so the connection fails and may fall through to port 80.
+
+**Fix:** Ensure `mod_ssl` is loaded and the 443 vhost is active:
+```bash
+a2enmod ssl
+apache2ctl -S # should show *:443 vhost
+```
+
+---
+
+## Problem 3: OCSP Stapling Errors with Self-Signed Certificates
+
+**Symptom in error.log:**
+```
+AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate!
+AH02604: Unable to configure certificate for stapling
+```
+
+**What it means:** `SSLUseStapling on` requires a CA-signed certificate
+with an OCSP responder URL. Self-signed certificates have no issuer to
+query for stapling.
+
+**Fix:** Disable OCSP stapling in the vhost config:
+```apache
+# SSLUseStapling on
+```
+
+Re-enable when switching to a CA-signed certificate (e.g., Let's Encrypt).
+
+---
+
+## Problem 4: "Transport sender is NULL" — Worker Creation Fails
+
+**Symptom in axis2.log:**
+```
+Loading shared library libaxis2_http_sender.so Failed. No such file or directory
+Transport sender is NULL for transport http, unable to continue
+```
+
+**Symptom in error.log:**
+```
+[Axis2] Error creating mod_axis2 apache2 worker
+Child returned a Fatal error... Apache is exiting!
+```
+
+**What it means:** `axis2.xml` references `axis2_http_sender` and
+`axis2_http_receiver`, which map to shared libraries. In HTTP/2 mode these
+libraries are intentionally **not built** — Apache httpd handles all
+transport via `mod_axis2` (see `docs/HTTP2_CONDITIONAL_COMPILATION.md`).
+
+**Fix:** Comment out the `<transportSender>` and `<transportReceiver>`
+blocks in `axis2.xml`:
+```xml
+<!--transportSender name="http" class="axis2_http_sender">
+ ...
+</transportSender-->
+
+<!--transportReceiver name="http" class="axis2_http_receiver">
+ ...
+</transportReceiver-->
+```
+
+The source-controlled copy is `samples/server/axis2.xml`. After editing,
+run `make install` to propagate to `$(prefix)/share/axis2c/axis2.xml`.
+
+See also: `docs/HTTP2_AXIS2_DOT_XML.md`
+
+---
+
+## Problem 5: Child Process Segfault (SIGSEGV) Loop
+
+**Symptom in error.log:**
+```
+child pid NNNNN exit signal Segmentation fault (11), possible coredump in /etc/apache2
+```
+
+The parent process stays alive, keeps spawning children that immediately
+crash — Apache appears "running" but serves no requests.
+
+### Getting a Backtrace
+
+On systemd systems, core dumps are captured by `systemd-coredump`:
+
+```bash
+# List recent Apache crashes
+coredumpctl list apache2 | tail -10
+
+# Show crash info including stack trace
+coredumpctl info apache2 | head -80
+
+# Full GDB backtrace (if debug symbols available)
+coredumpctl debug apache2 --debugger=gdb \
+ --debugger-arguments="-batch -ex 'bt full' -ex 'quit'"
+```
+
+If `coredumpctl` is not available, enable manual core dumps:
+```bash
+# Set core dump pattern and size limit
+echo '/tmp/core.%e.%p' > /proc/sys/kernel/core_pattern
+ulimit -c unlimited
+
+# Note: systemctl-started processes inherit systemd's limits, not the shell's.
+# For systemd services, edit the unit override:
+systemctl edit apache2
+# Add:
+# [Service]
+# LimitCORE=infinity
+
+systemctl restart apache2
+sleep 3
+ls /tmp/core.apache2.*
+
+# Analyze with GDB
+gdb /usr/sbin/apache2 /tmp/core.apache2.* -batch -ex 'bt full' -ex 'quit'
+```
+
+### Common Segfault: axis2_get_instance Signature Mismatch
+
+**Stack trace pattern:**
+```
+#0 axis2_svc_create (libaxis2_engine.so)
+#1 axis2_<servicename>_create (lib<servicename>.so)
+#2 axutil_class_loader_create_dll (libaxutil.so)
+#3 axis2_msg_recv_load_and_init_svc_impl (libaxis2_engine.so)
+#4 axis2_apache2_worker_create (libmod_axis2.so)
+```
+
+**Root cause:** The service's `axis2_get_instance` function has the wrong
+signature. The class loader (`axutil_class_loader_create_dll`) calls it as:
+
+```c
+// Expected signature (CREATE_FUNCT from axutil_dll_desc.h):
+int axis2_get_instance(void **inst, const axutil_env_t *env);
+
+// Called as:
+create_funct(&obj, env);
+```
+
+If the service instead exports:
+```c
+// WRONG — causes segfault:
+axis2_svc_t* axis2_get_instance(const axutil_env_t *env);
+```
+
+Then `&obj` (a `void**`) is misinterpreted as `env`, and the real `env`
+goes to an unused parameter slot. Any dereference of `env` inside the
+service (e.g., `env->allocator` in `axis2_svc_create`) segfaults.
+
+**Fix:** Match the `CREATE_FUNCT` / `DELETE_FUNCT` typedefs exactly:
+```c
+AXIS2_EXTERN int AXIS2_CALL
+axis2_get_instance(void **inst, const axutil_env_t *env)
+{
+ *inst = axis2_my_service_create(env);
+ if (!(*inst)) return AXIS2_FAILURE;
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_EXTERN int AXIS2_CALL
+axis2_remove_instance(void *inst, const axutil_env_t *env)
+{
+ axis2_svc_t *svc = (axis2_svc_t *)inst;
+ if (svc) axis2_svc_free(svc, env);
+ return AXIS2_SUCCESS;
+}
+```
+
+**Alternative approach:** Some services (e.g., `bigdata-h2-service`,
+`login-service`, `testws-service`) avoid this trap entirely by **not
+exporting `axis2_get_instance`**. They rely solely on the `ServiceClass`
+parameter in `services.xml` and the `_invoke_json` dlsym lookup path in
+the `JsonRpcMessageReceiver`. This sidesteps the `CREATE_FUNCT` signature
+requirement altogether. Only export `axis2_get_instance` / `axis2_remove_instance`
+if your service needs custom initialization during worker startup.
+
+---
+
+## Problem 6: Apache Module Not Found at Install Time
+
+**Symptom during `make install`:**
+```
+Neither mod_axis2.so nor libmod_axis2.so found at /usr/local/apache2/modules/
+```
+
+**What it means:** The Makefile.am `apachemoddir` is set to a path that
+doesn't exist. Source-built Apache uses `/usr/local/apache2/modules/`;
+packaged Apache uses system paths.
+
+**Fix:** Set `apachemoddir = @prefix@/lib` in
+`src/core/transport/http/server/apache2/Makefile.am`, then `autoreconf -fiv`
+and rebuild. The `axis2-services.conf` loads the module from
+`/usr/local/axis2c/lib/libmod_axis2.so` which matches `--prefix=/usr/local/axis2c`.
+
+---
+
+## Problem 7: json-c Version Incompatibility
+
+**Symptom during `make`:**
+```
+error: 'json_tokener_error_memory' undeclared
+```
+
+**What it means:** The code uses `json_tokener_error_memory` which was
+added in json-c **0.17**, but the version guard checks for `>= 0.14`.
+Ubuntu 22.04 ships json-c 0.15 which passes the guard but lacks the enum.
+
+**Fix:** In `src/core/transport/http/util/axis2_json_reader.c`, change the
+version guard for `json_tokener_error_memory` and `json_tokener_error_size`
+from `(14 << 8)` to `(17 << 8)`:
+
+```c
+#if defined(JSON_C_VERSION_NUM) && JSON_C_VERSION_NUM >= ((0 << 16) | (17 << 8))
+ case json_tokener_error_memory:
+ return "error_memory";
+ case json_tokener_error_size:
+ return "error_size";
+#endif
+```
+
+---
+
+## Problem 8: Post-Restart Health Check Passes but Service Crashes
+
+**Symptom:** The deploy script reports "Apache is running" but verification
+curls all return 000.
+
+**What it means:** Apache's parent process starts successfully (passes
+`systemctl is-active` check), but child processes crash during worker
+initialization. With `mpm_event`, the parent keeps trying to spawn children,
+creating a crash loop visible in `error.log`.
+
+**Diagnosis:**
+```bash
+# The parent is alive but children are dying
+tail -20 /var/log/apache2/error.log # look for "Child returned a Fatal error"
+tail -20 /var/log/axis2c/axis2.log # look for loading errors before the crash
+```
+
+**Common causes (in order of likelihood):**
+1. Missing transport libs in `axis2.xml` (Problem 4)
+2. Service DLL signature mismatch (Problem 5)
+3. Missing service shared libraries
+4. Corrupt `axis2.xml` (syntax errors)
+
+---
+
+## Problem 9: Request-Path Segfault — NULL Transport Descriptor
+
+**Symptom:** Worker init succeeds (axis2.log shows "Axis2 worker created")
+but Apache child crashes on the first incoming request.
+
+**Stack trace pattern (from `coredumpctl info`):**
+```
+#0 axis2_transport_in_desc_get_recv (libaxis2_engine.so)
+#1 axis2_apache2_worker_process_request (libmod_axis2.so)
+#2 axis2_handler (libmod_axis2.so)
+#3 ap_run_handler (apache2)
+```
+
+**Root cause:** In `apache2_worker.c`, the request processing path calls:
+```c
+in_desc = axis2_conf_get_transport_in(conf, env, AXIS2_TRANSPORT_ENUM_HTTP);
+// in_desc is NULL because transportReceiver is commented out in axis2.xml
+receiver = axis2_transport_in_desc_get_recv(in_desc, env); // SEGFAULT
+```
+
+When `transportReceiver` is absent from `axis2.xml` (correct for HTTP/2
+mode), `axis2_conf_get_transport_in()` returns NULL. The code then passes
+NULL to `axis2_transport_in_desc_get_recv()` which dereferences it.
+
+**Fix:** NULL-guard the transport descriptor before use:
+```c
+if(in_desc)
+{
+ receiver = axis2_transport_in_desc_get_recv(in_desc, env);
+ if(receiver)
+ axis2_transport_receiver_set_server_ip(receiver, env, ...);
+}
+```
+
+**Key insight:** There are **two separate crash points** when removing
+transport config from axis2.xml — one during init (Problem 4: "Transport
+sender is NULL") and one during request handling (this problem). Fixing
+Problem 4 alone is not sufficient; the request path must also tolerate
+NULL transport descriptors.
+
+---
+
+## Problem 10: "Operation Not Found" for Valid Service
+
+**Symptom in axis2.log:**
+```
+Operation Not found. Endpoint reference is : /services/MyService/someOperation
+```
+
+**Symptom in response:**
+```json
+{"error":{"message":"Service processing failed","code":500}}
+```
+
+**What it means:** The service is loaded and running, but the operation
+name in the URL path doesn't match any `<operation name="...">` in
+`services.xml`.
+
+**Diagnosis:** Check what operations are actually registered:
+```bash
+grep '<operation name=' /usr/local/axis2c/services/MyService/services.xml
+```
+
+**Common causes:**
+- URL uses a different operation name than what's in `services.xml`
+- The test/deploy script uses a placeholder operation name (e.g., `benchmark`)
+ that was never defined
+- Case sensitivity mismatch
+
+---
+
+## Packaged Apache vs Source-Built Apache
+
+Many issues stem from path differences between these two environments:
+
+| Component | Packaged (Debian/Ubuntu) | Source-built |
+|-----------|-------------------------|--------------|
+| Binary | `/usr/sbin/apache2` | `/usr/local/apache2/bin/httpd` |
+| Modules dir | `/usr/lib/apache2/modules/` | `/usr/local/apache2/modules/` |
+| Config dir | `/etc/apache2/` | `/usr/local/apache2/conf/` |
+| Site management | `a2ensite` / `a2dissite` | Manual `Include` directives |
+| Module management | `a2enmod` / `a2dismod` | `LoadModule` in httpd.conf |
+| mod_http2 name | `mod_http2.so` (`a2enmod http2`) | `mod_h2.so` |
+| Service management | `systemctl restart apache2` | `httpd -k restart` |
+
+The `deploy-localhost.sh` script and `axis2-services.conf` are designed for
+the **packaged** Apache. The services themselves are built through the
+samples build system (`./configure --enable-json --enable-http2` in
+`samples`, then `make -C user_guide`), which installs them under
+`${AXIS2C_HOME}` and leaves module installation to `deploy-localhost.sh`.
+
+---
+
+## Related Documentation
+
+- `docs/HTTP2_AXIS2_DOT_XML.md` — Why axis2.xml doesn't need HTTP/2 transport config
+- `docs/HTTP2_CONDITIONAL_COMPILATION.md` — What's built/excluded in HTTP/2 mode
+- `docs/HTTP2_LIBRARY_LOADING.md` — How Axis2/C loads service shared libraries
+- `docs/HTTP2_APACHE2_WORKER.md` — Apache worker initialization details
+- `docs/userguide/json-httpd-h2-userguide.md` — Full deployment guide
diff --git a/docs/userguide/deploy-localhost.sh b/docs/userguide/deploy-localhost.sh
index 66f917cfc..01ad96d6a 100755
--- a/docs/userguide/deploy-localhost.sh
+++ b/docs/userguide/deploy-localhost.sh
@@ -70,10 +70,11 @@ make install
# Build sample services (skip CameraControlService — Android only)
echo ""
echo "── Building sample services ──"
-cd samples/user_guide/bigdata-h2-service && bash build_json_service.sh && cd "$AXIS2C_SRC"
-cd samples/user_guide/login-service && bash build_json_service.sh && cd "$AXIS2C_SRC"
-cd samples/user_guide/testws-service && bash build_json_service.sh && cd "$AXIS2C_SRC"
-cd samples/user_guide/financial-benchmark-service && bash build_financial_service.sh && cd "$AXIS2C_SRC"
+cd samples
+./configure --prefix="${AXIS2C_HOME}" --enable-json --enable-http2
+make -C user_guide
+make -C user_guide install
+cd "$AXIS2C_SRC"
# ─────────────────────────────────────────────────────────────────────────────
# Step 3: Enable Apache modules
diff --git a/docs/userguide/json-httpd-h2-userguide.md b/docs/userguide/json-httpd-h2-userguide.md
index f46bc9387..c3d875300 100644
--- a/docs/userguide/json-httpd-h2-userguide.md
+++ b/docs/userguide/json-httpd-h2-userguide.md
@@ -1571,8 +1571,10 @@ This benchmark demonstrates that Axis2/C can perform enterprise financial calcul
**Build the service:**
```bash
-cd samples/user_guide/financial-benchmark-service
-bash build_financial_service.sh
+cd samples
+./configure --prefix=${AXIS2C_HOME} --enable-json --enable-http2
+make -C user_guide/financial-benchmark-service
+make -C user_guide/financial-benchmark-service install
```
## Architecture Comparison: Spring Boot vs Apache httpd
diff --git a/samples/user_guide/bigdata-h2-service/build_json_builder_formatter.sh b/samples/user_guide/bigdata-h2-service/build_json_builder_formatter.sh
deleted file mode 100644
index 8ba49de40..000000000
--- a/samples/user_guide/bigdata-h2-service/build_json_builder_formatter.sh
+++ /dev/null
@@ -1,149 +0,0 @@
-#!/bin/bash
-set -e
-
-# Build BigDataH2Service with JSON Builder/Formatter Pattern
-# Following Axis2/Java JSONBuilder/JSONFormatter architecture for pure JSON processing
-
-echo "🚀 Building BigDataH2 JSON Builder/Formatter Service - Pure JSON Architecture"
-echo "Following Axis2/Java JSONBuilder + JSONFormatter + JsonRpcMessageReceiver Pattern"
-echo "📁 Creating services directory..."
-
-# Ensure AXIS2C_HOME is set
-if [ -z "$AXIS2C_HOME" ]; then
- export AXIS2C_HOME="/usr/local/axis2c"
- echo "📍 Set AXIS2C_HOME to $AXIS2C_HOME"
-fi
-
-# Create services directory structure
-sudo mkdir -p /usr/local/axis2c/services/BigDataH2Service
-
-echo "🔨 Building with JSON Builder/Formatter Pattern..."
-echo "✅ INCLUDING: JSON Message Builder (creates dummy SOAP envelope + JSON properties)"
-echo "✅ INCLUDING: JSON Message Formatter (writes pure JSON response)"
-echo "✅ INCLUDING: JSON-aware Message Receiver (processes JSON from properties)"
-echo "✅ INCLUDING: Pure JSON service functions (enableJSONOnly=true)"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lm"
-echo "❌ EXCLUDED: AXIOM conversion overhead (Builder/Formatter handles minimal AXIOM)"
-
-# Compile all source files following Axis2/Java pattern
-gcc -shared -fPIC \
- -I../../../include \
- -I../../../util/include \
- -I../../../axiom/include \
- -I/usr/include/json-c \
- -DAXIS2_GUTHTHILA_ENABLED \
- -DAXIS2_SVR_MULTI_THREADED \
- -DAXIS2_JSON_ENABLED \
- -DWITH_NGHTTP2 \
- -DENABLE_JSON_ONLY \
- src/bigdata_h2_service.c \
- src/bigdata_h2_service_handler.c \
- src/axis2_json_msg_builder.c \
- src/axis2_json_msg_formatter.c \
- src/axis2_json_msg_receiver.c \
- -L../../../deploy/lib \
- -laxutil -laxis2_engine -laxis2_axiom -ljson-c -lm \
- -o liblibbigdata_h2_service.so
-
-if [ $? -eq 0 ]; then
- echo "✅ JSON Builder/Formatter Service compilation successful!"
-else
- echo "❌ Compilation failed!"
- exit 1
-fi
-
-echo "📦 Installing JSON Builder/Formatter service..."
-
-# Copy shared library
-sudo cp liblibbigdata_h2_service.so /usr/local/axis2c/services/BigDataH2Service/
-
-# Create services.xml with standard message receiver (Builder/Formatter handles JSON)
-echo "📝 Creating services.xml with enableJSONOnly=true (Builder/Formatter pattern)..."
-sudo tee /usr/local/axis2c/services/BigDataH2Service/services.xml > /dev/null << 'EOF'
-<?xml version="1.0" encoding="UTF-8"?>
-<serviceGroup>
- <service name="BigDataH2Service">
- <description>HTTP/2 Pure JSON BigData Service - Builder/Formatter Pattern</description>
- <serviceClass>bigdata_h2_service</serviceClass>
- <parameter name="ServiceClass">liblibbigdata_h2_service</parameter>
-
- <!-- enableJSONOnly=true: Pure JSON processing via Builder/Formatter -->
- <parameter name="enableJSONOnly">true</parameter>
-
- <!-- Use standard message receiver (JSON processing handled by Builder/Formatter) -->
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
- class="axis2_raw_xml_in_out_msg_recv" />
-
- <operation name="processBigDataSet">
- <description>Process big data set with HTTP/2 JSON via Builder/Formatter</description>
- </operation>
-
- <operation name="getServiceMetadata">
- <description>Get service metadata as pure JSON via Builder/Formatter</description>
- </operation>
- </service>
-</serviceGroup>
-EOF
-
-echo "🔄 Updating Apache module..."
-# Try different Apache binary locations
-if [ -x "/usr/local/apache2/bin/httpd" ]; then
- APACHE_CMD="/usr/local/apache2/bin/httpd"
-elif command -v apache2 >/dev/null 2>&1; then
- APACHE_CMD="apache2"
-else
- echo "⚠️ Apache binary not found, skipping module update"
- APACHE_CMD=""
-fi
-
-if [ -n "$APACHE_CMD" ]; then
- # Copy Axis2/C module to Apache
- if [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- sudo cp ../../../deploy/lib/libmod_axis2.so.0.7.0 /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Apache module updated"
- else
- echo "⚠️ Axis2/C module not found in deploy/lib"
- fi
-
- # Test Apache configuration
- echo "🔍 Testing Apache configuration..."
- if sudo $APACHE_CMD -t; then
- echo "✅ Apache configuration test passed"
-
- # Restart Apache if running
- if sudo systemctl is-active --quiet apache2; then
- echo "🔄 Restarting Apache..."
- sudo systemctl restart apache2
- echo "✅ Apache restarted successfully"
- else
- echo "ℹ️ Apache not running, skipping restart"
- fi
- else
- echo "❌ Apache configuration test failed"
- exit 1
- fi
-else
- echo "⚠️ Skipping Apache integration - Apache binary not found"
-fi
-
-echo ""
-echo "🎉 BigDataH2 JSON Builder/Formatter Service Build Complete!"
-echo ""
-echo "📋 Service Architecture (Following Axis2/Java Pattern):"
-echo " • JSON Builder: Creates dummy SOAP envelope + stores JSON in properties"
-echo " • JSON Formatter: Extracts JSON from properties + writes pure JSON response"
-echo " • Message Receiver: Processes JSON directly from properties (no AXIOM)"
-echo " • enableJSONOnly: true (pure JSON processing)"
-echo " • Performance: 70% memory reduction, 30% faster processing"
-echo ""
-echo "🔗 Service Endpoints:"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/processBigDataSet"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata"
-echo ""
-echo "🧪 Test with:"
-echo " curl -k -X POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata \\"
-echo " -H 'Content-Type: application/json' \\"
-echo " -d '{}'"
-echo ""
-echo "📊 Architecture Flow:"
-echo " JSON Request → JSONBuilder → JSON Properties → Service Processing → JSON Response → JSONFormatter → Pure JSON Output"
\ No newline at end of file
diff --git a/samples/user_guide/bigdata-h2-service/build_json_rpc_service.sh b/samples/user_guide/bigdata-h2-service/build_json_rpc_service.sh
deleted file mode 100755
index 89eede246..000000000
--- a/samples/user_guide/bigdata-h2-service/build_json_rpc_service.sh
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/bash
-set -e
-
-# Build BigDataH2Service with JSON RPC Message Receiver (enableJSONOnly=true)
-# Following Axis2/Java JsonRpcMessageReceiver pattern for pure JSON processing
-
-echo "🚀 Building BigDataH2 JSON RPC Service - Pure JSON Architecture (No AXIOM)"
-echo "📁 Creating services directory..."
-
-# Ensure AXIS2C_HOME is set
-if [ -z "$AXIS2C_HOME" ]; then
- export AXIS2C_HOME="/usr/local/axis2c"
- echo "📍 Set AXIS2C_HOME to $AXIS2C_HOME"
-fi
-
-# Create services directory structure
-sudo mkdir -p /usr/local/axis2c/services/BigDataH2Service
-
-echo "🔨 Building with JSON RPC Message Receiver..."
-echo "✅ INCLUDING: JSON RPC Message Receiver (axis2_json_rpc_msg_recv)"
-echo "✅ INCLUDING: Pure JSON service functions (enableJSONOnly=true)"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lm"
-echo "❌ EXCLUDED: AXIOM dependencies for pure JSON processing"
-
-# Compile all source files including JSON RPC message receiver
-gcc -shared -fPIC \
- -I../../../include \
- -I../../../util/include \
- -I../../../axiom/include \
- -I/usr/include/json-c \
- -DAXIS2_GUTHTHILA_ENABLED \
- -DAXIS2_SVR_MULTI_THREADED \
- -DAXIS2_JSON_ENABLED \
- -DWITH_NGHTTP2 \
- -DENABLE_JSON_ONLY \
- src/bigdata_h2_service.c \
- src/bigdata_h2_service_handler.c \
- src/axis2_json_rpc_msg_recv_simple.c \
- -L../../../deploy/lib \
- -laxutil -laxis2_engine -ljson-c -lm \
- -o liblibbigdata_h2_service.so
-
-if [ $? -eq 0 ]; then
- echo "✅ JSON RPC Service compilation successful!"
-else
- echo "❌ Compilation failed!"
- exit 1
-fi
-
-echo "📦 Installing JSON RPC service..."
-
-# Copy shared library
-sudo cp liblibbigdata_h2_service.so /usr/local/axis2c/services/BigDataH2Service/
-
-# Create/update services.xml with enableJSONOnly=true
-echo "📝 Creating services.xml with enableJSONOnly=true..."
-sudo bash /tmp/create_services_json.sh
-sudo cp /tmp/services_json_only.xml /usr/local/axis2c/services/BigDataH2Service/services.xml
-
-echo "🔄 Updating Apache module..."
-# Try different Apache binary locations
-if [ -x "/usr/local/apache2/bin/httpd" ]; then
- APACHE_CMD="/usr/local/apache2/bin/httpd"
-elif command -v apache2 >/dev/null 2>&1; then
- APACHE_CMD="apache2"
-else
- echo "⚠️ Apache binary not found, skipping module update"
- APACHE_CMD=""
-fi
-
-if [ -n "$APACHE_CMD" ]; then
- # Copy Axis2/C module to Apache
- if [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- sudo cp ../../../deploy/lib/libmod_axis2.so.0.7.0 /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Apache module updated"
- else
- echo "⚠️ Axis2/C module not found in deploy/lib"
- fi
-
- # Test Apache configuration
- echo "🔍 Testing Apache configuration..."
- if sudo $APACHE_CMD -t; then
- echo "✅ Apache configuration test passed"
-
- # Restart Apache if running
- if sudo systemctl is-active --quiet apache2; then
- echo "🔄 Restarting Apache..."
- sudo systemctl restart apache2
- echo "✅ Apache restarted successfully"
- else
- echo "ℹ️ Apache not running, skipping restart"
- fi
- else
- echo "❌ Apache configuration test failed"
- exit 1
- fi
-else
- echo "⚠️ Skipping Apache integration - Apache binary not found"
-fi
-
-echo ""
-echo "🎉 BigDataH2 JSON RPC Service Build Complete!"
-echo ""
-echo "📋 Service Configuration:"
-echo " • enableJSONOnly: true (pure JSON processing)"
-echo " • Message Receiver: axis2_json_rpc_msg_recv"
-echo " • Architecture: HTTP/2 + JSON (no AXIOM conversion)"
-echo " • Performance: 70% memory reduction, 30% faster processing"
-echo ""
-echo "🔗 Service Endpoints:"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/processBigDataSet"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata"
-echo ""
-echo "🧪 Test with:"
-echo " curl -k -X POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata \\"
-echo " -H 'Content-Type: application/json' \\"
-echo " -d '{}'"
\ No newline at end of file
diff --git a/samples/user_guide/bigdata-h2-service/build_json_service.sh b/samples/user_guide/bigdata-h2-service/build_json_service.sh
deleted file mode 100644
index 7ae9523ce..000000000
--- a/samples/user_guide/bigdata-h2-service/build_json_service.sh
+++ /dev/null
@@ -1,142 +0,0 @@
-#!/bin/bash
-set -e
-
-echo "🚀 Building BigDataH2 JSON Service - AXIOM-FREE HTTP/2 Architecture"
-
-# Create services directory
-echo "📁 Creating services directory..."
-sudo mkdir -p /usr/local/axis2c/services/BigDataH2Service
-
-echo "🔨 Building with PURE JSON dependencies (AXIOM-FREE)..."
-echo "❌ EXCLUDED: -laxis2_axiom (XML object model not needed for pure JSON)"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lm"
-
-gcc -shared -fPIC \
- -DAXIS2_JSON_ENABLED -DWITH_NGHTTP2 -O2 \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I../../include \
- -I../../util/include \
- -I../../src/core/transport/http/util \
- -I/usr/include/json-c \
- src/bigdata_h2_service.c \
- src/bigdata_h2_service_handler.c \
- -o libbigdata_h2_json_service.so \
- -L/usr/local/axis2c/lib \
- -laxutil -laxis2_engine \
- -ljson-c -lm
-
-echo "Build exit code: $?"
-
-if [ -f "libbigdata_h2_json_service.so" ]; then
- echo ""
- echo "🎉 SUCCESS: BigDataH2 JSON Service built with AXIOM-FREE architecture!"
-
- # Show file info
- ls -la libbigdata_h2_json_service.so
- file libbigdata_h2_json_service.so
-
- # Check dependencies
- echo ""
- echo "🔍 Checking runtime dependencies..."
- echo "📋 Service-level: No direct AXIOM usage (pure JSON processing)"
- echo "🔧 Engine-level: AXIOM present as transitive dependency (expected in Axis2/C)"
- # Show axis2 related dependencies only
- ldd libbigdata_h2_json_service.so | grep -E '(axis2|json|libax)' || echo " (Dependencies shown above in full ldd output)"
-
- # Install the service
- echo ""
- echo "🚀 Installing AXIOM-free JSON service..."
- sudo cp libbigdata_h2_json_service.so /usr/local/axis2c/services/BigDataH2Service/libbigdata_h2_service.so
- sudo cp services.xml /usr/local/axis2c/services/BigDataH2Service/
-
- # Fix ownership and permissions for Apache (runs as www-data)
- sudo chown -R www-data:www-data /usr/local/axis2c/services/BigDataH2Service
- sudo chmod 755 /usr/local/axis2c/services/BigDataH2Service
- sudo chmod 644 /usr/local/axis2c/services/BigDataH2Service/services.xml
- sudo chmod 755 /usr/local/axis2c/services/BigDataH2Service/libbigdata_h2_service.so
-
- echo "📋 Installed files:"
- ls -la /usr/local/axis2c/services/BigDataH2Service/
-
- # Apache module + config: only needed for source-built Apache (/usr/local/apache2).
- # Packaged Apache (Debian/Ubuntu) uses deploy-localhost.sh + axis2-services.conf instead.
- if [ -d "/usr/local/apache2" ]; then
- echo ""
- echo "🔧 Source-built Apache detected at /usr/local/apache2 — configuring module..."
-
- # Copy Axis2/C module to Apache modules directory
- if [ ! -f "/usr/local/apache2/modules/mod_axis2.so" ]; then
- AXIS2_MODULE=""
- if [ -n "${AXIS2C_HOME:-}" ] && [ -f "$AXIS2C_HOME/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="$AXIS2C_HOME/lib/libmod_axis2.so.0.7.0"
- elif [ -f "/usr/local/axis2c/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="/usr/local/axis2c/lib/libmod_axis2.so.0.7.0"
- elif [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="../../../deploy/lib/libmod_axis2.so.0.7.0"
- elif [ -f "../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="../../deploy/lib/libmod_axis2.so.0.7.0"
- fi
-
- if [ -n "$AXIS2_MODULE" ]; then
- sudo cp "$AXIS2_MODULE" /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Axis2/C module copied from: $AXIS2_MODULE"
- else
- echo "⚠️ Axis2/C module not found. Please set AXIS2C_HOME or ensure Axis2/C is built."
- echo " Searched: \$AXIS2C_HOME/lib, /usr/local/axis2c/lib, ../../../deploy/lib"
- fi
- else
- echo "✅ Axis2/C module already installed"
- fi
-
- # Create Apache configuration for Axis2/C
- AXIS2_CONF="/usr/local/apache2/conf/extra/httpd-axis2.conf"
- if [ ! -f "$AXIS2_CONF" ]; then
- echo ""
- echo "📝 Creating Axis2/C Apache configuration..."
- sudo tee "$AXIS2_CONF" > /dev/null << 'CONFEOF'
-# Axis2/C Configuration for HTTP/2 JSON Services
-LoadModule axis2_module modules/mod_axis2.so
-Protocols h2 h2c http/1.1
-Axis2RepoPath /usr/local/axis2c
-Axis2LogFile /var/log/axis2c/axis2.log
-Axis2LogLevel info
-Axis2MaxLogFileSize 1024
-<Location /services>
- SetHandler axis2_module
-</Location>
-<LocationMatch "^/services/.*">
- Header always set Access-Control-Allow-Origin "*"
- Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
- Header always set Access-Control-Allow-Headers "Content-Type, Authorization, Accept"
-</LocationMatch>
-CONFEOF
- echo "✅ Created $AXIS2_CONF"
- fi
-
- # Include in main httpd.conf if not already present
- if [ -f /usr/local/apache2/conf/httpd.conf ] && \
- ! grep -q "Include conf/extra/httpd-axis2.conf" /usr/local/apache2/conf/httpd.conf; then
- { echo ""; echo "# Include Axis2/C configuration"; echo "Include conf/extra/httpd-axis2.conf"; } \
- | sudo tee -a /usr/local/apache2/conf/httpd.conf > /dev/null
- echo "✅ Added Include directive to httpd.conf"
- fi
-
- sudo mkdir -p /var/log/axis2c && sudo chmod 755 /var/log/axis2c
-
- echo ""
- echo "🔄 Restart Apache to apply changes:"
- echo " sudo /usr/local/apache2/bin/httpd -k restart"
- else
- echo ""
- echo "ℹ️ Packaged Apache detected — skipping module/config install."
- echo " Use deploy-localhost.sh + axis2-services.conf for Debian/Ubuntu."
- fi
-
- echo ""
- echo "✅ BigDataH2 JSON Service ready"
-else
- echo ""
- echo "❌ BUILD FAILED"
- echo "This indicates potential missing dependencies or compilation issues"
- exit 1
-fi
\ No newline at end of file
diff --git a/samples/user_guide/bigdata-h2-service/build_native_json_revolutionary.sh b/samples/user_guide/bigdata-h2-service/build_native_json_revolutionary.sh
deleted file mode 100644
index f2f0514ef..000000000
--- a/samples/user_guide/bigdata-h2-service/build_native_json_revolutionary.sh
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/bash
-# Revolutionary Native JSON Build Script
-# Implements Axis2/Java Native approach in Axis2/C without AXIOM imports
-
-echo "🚀 Building Revolutionary Native JSON Service (AXIOM-Free)"
-echo "Following Axis2/Java Native approach with Axis2/C built-in JSON capabilities"
-echo ""
-echo "Key Revolutionary Features:"
-echo " ✅ Uses axis2_msg_ctx_set_doing_json() native flag"
-echo " ✅ Direct JSON processing with axis2_json_reader/writer"
-echo " ✅ No AXIOM imports or SOAP envelope processing"
-echo " ✅ Pure JSON responses (no SOAP wrapper)"
-echo " ✅ HTTP/2 optimized for large payload streaming"
-echo " ✅ Compatible with enableJSONOnly=true global setting"
-
-# Create services directory structure
-sudo mkdir -p /usr/local/axis2c/services/BigDataH2Service
-
-echo ""
-echo "🔨 Compiling Native JSON Service with Revolutionary Architecture..."
-
-# Compile with Native JSON Message Receiver (AXIOM-Free) - Build locally first
-gcc -shared -fPIC \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I/usr/include/json-c \
- -DAXIS2_JSON_ENABLED \
- -DAXIS2_H2_JSON_ONLY_BUILD \
- -O2 -g \
- -o liblibbigdata_h2_service.so \
- src/bigdata_h2_service.c \
- src/axis2_native_json_msg_recv.c \
- -L/usr/local/axis2c/lib \
- -laxis2_engine -laxutil -ljson-c -lm
-
-# Check compilation success
-if [ $? -eq 0 ]; then
- echo "✅ Revolutionary Native JSON Service compiled locally!"
-
- # Install the compiled service with proper permissions
- sudo cp liblibbigdata_h2_service.so /usr/local/axis2c/services/BigDataH2Service/
-
- if [ $? -eq 0 ]; then
- echo "✅ Revolutionary Native JSON Service installed successfully!"
- else
- echo "❌ Service installation failed"
- exit 1
- fi
-else
- echo "❌ Compilation failed"
- exit 1
-fi
-
-echo ""
-echo "📝 Creating services.xml with Native JSON Message Receiver..."
-
-# Create services.xml with Revolutionary Native JSON configuration
-sudo tee /usr/local/axis2c/services/BigDataH2Service/services.xml > /dev/null << 'EOF'
-<?xml version="1.0" encoding="UTF-8"?>
-<serviceGroup>
- <service name="BigDataH2Service">
- <description>Revolutionary Native JSON Service - AXIOM-Free HTTP/2 Processing</description>
- <serviceClass>bigdata_h2_service</serviceClass>
- <parameter name="ServiceClass">liblibbigdata_h2_service</parameter>
-
- <!-- Revolutionary Native JSON Message Receiver (AXIOM-Free) -->
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
- class="axis2_native_json_msg_recv" />
-
- <operation name="processBigDataSet">
- <description>Process big data with Revolutionary Native JSON (no AXIOM/SOAP overhead)</description>
- </operation>
-
- <operation name="getServiceMetadata">
- <description>Get service metadata with Revolutionary Native JSON (pure JSON response)</description>
- </operation>
- </service>
-</serviceGroup>
-EOF
-
-echo "✅ Revolutionary services.xml created"
-
-echo ""
-echo "🔄 Updating Apache module..."
-sudo cp /home/robert/repos/axis-axis2-c-core/deploy/lib/libmod_axis2.so.0.7.0 /usr/local/apache2/modules/mod_axis2.so
-
-echo "✅ Apache module updated with Revolutionary Native JSON support"
-
-echo ""
-echo "🔍 Testing Apache configuration..."
-sudo /usr/local/apache2/bin/httpd -t
-if [ $? -eq 0 ]; then
- echo "✅ Apache configuration test passed"
-else
- echo "❌ Apache configuration test failed"
- exit 1
-fi
-
-echo ""
-echo "🔄 Restarting Apache..."
-sudo systemctl restart apache2-custom
-if [ $? -eq 0 ]; then
- echo "✅ Apache restarted successfully"
-else
- echo "❌ Apache restart failed"
- exit 1
-fi
-
-echo ""
-echo "🎉 Revolutionary Native JSON Service Build Complete!"
-echo ""
-echo "📋 Revolutionary Service Architecture:"
-echo " • Message Receiver: axis2_native_json_msg_recv (AXIOM-Free)"
-echo " • JSON Processing: axis2_msg_ctx_set_doing_json() native flag"
-echo " • Stream Processing: Direct JSON extraction from HTTP stream"
-echo " • Response Format: Pure JSON (no SOAP envelope)"
-echo " • Configuration: enableJSONOnly=true in axis2.xml"
-echo " • HTTP/2 Features: Streaming optimization for large payloads"
-echo ""
-echo "🔗 Service Endpoints:"
-echo " • POST https://localhost/services/BigDataH2Service/processBigDataSet"
-echo " • POST https://localhost/services/BigDataH2Service/getServiceMetadata"
-echo ""
-echo "🧪 Test with Revolutionary Native JSON:"
-echo " curl -k --http2 -X POST https://localhost/services/BigDataH2Service/getServiceMetadata \\"
-echo " -H 'Content-Type: application/json' \\"
-echo " -H 'Accept: application/json' \\"
-echo " -d '{}'"
-echo ""
-echo "🌟 Revolutionary Benefits Achieved:"
-echo " • ✅ No AXIOM imports or SOAP processing overhead"
-echo " • ✅ Direct JSON-to-POJO conversion using json-c"
-echo " • ✅ Pure JSON responses without XML conversion"
-echo " • ✅ HTTP/2 streaming optimization for 50MB+ payloads"
-echo " • ✅ 70% memory reduction vs traditional SOAP approach"
-echo " • ✅ 30% performance improvement for JSON processing"
-echo " • ✅ Compatible with Axis2/C enableJSONOnly global configuration"
\ No newline at end of file
diff --git a/samples/user_guide/bigdata-h2-service/build_native_json_rpc.sh b/samples/user_guide/bigdata-h2-service/build_native_json_rpc.sh
deleted file mode 100644
index a537ab695..000000000
--- a/samples/user_guide/bigdata-h2-service/build_native_json_rpc.sh
+++ /dev/null
@@ -1,152 +0,0 @@
-#!/bin/bash
-set -e
-
-# Build BigDataH2Service with Native JSON RPC Message Receiver
-# Following Axis2/Java JsonRpcMessageReceiver pattern - NO SOAP PROCESSING
-
-echo "🚀 Building BigDataH2 Native JSON RPC Service - Following Axis2/Java Pattern"
-echo "Using JsonRpcMessageReceiver pattern: Pure JSON processing, SOAP fallback"
-echo "📁 Creating services directory..."
-
-# Ensure AXIS2C_HOME is set
-if [ -z "$AXIS2C_HOME" ]; then
- export AXIS2C_HOME="/usr/local/axis2c"
- echo "📍 Set AXIS2C_HOME to $AXIS2C_HOME"
-fi
-
-# Create services directory structure
-sudo mkdir -p /usr/local/axis2c/services/BigDataH2Service
-
-echo "🔨 Building with Native JSON RPC Message Receiver..."
-echo "✅ INCLUDING: Native JSON RPC Message Receiver (mimics Axis2/Java JsonRpcMessageReceiver)"
-echo "✅ INCLUDING: IS_JSON_STREAM property checking"
-echo "✅ INCLUDING: Pure JSON processing when IS_JSON_STREAM=true"
-echo "✅ INCLUDING: SOAP fallback when IS_JSON_STREAM=false"
-echo "✅ INCLUDING: enableJSONOnly parameter support"
-echo "✅ INCLUDING: Direct JSON response writing (no SOAP envelope)"
-echo "❌ EXCLUDED: axis2_raw_xml_in_out_msg_recv for JSON requests"
-
-# Compile with Native JSON RPC Message Receiver
-gcc -shared -fPIC \
- -I../../../include \
- -I../../../util/include \
- -I../../../axiom/include \
- -I/usr/include/json-c \
- -DAXIS2_GUTHTHILA_ENABLED \
- -DAXIS2_SVR_MULTI_THREADED \
- -DAXIS2_JSON_ENABLED \
- -DWITH_NGHTTP2 \
- -DENABLE_JSON_ONLY \
- src/bigdata_h2_service.c \
- src/bigdata_h2_service_handler.c \
- src/axis2_json_rpc_msg_recv_native.c \
- -L../../../deploy/lib \
- -laxutil -laxis2_engine -laxis2_axiom -ljson-c -lm \
- -o liblibbigdata_h2_service.so
-
-if [ $? -eq 0 ]; then
- echo "✅ Native JSON RPC Service compilation successful!"
-else
- echo "❌ Compilation failed!"
- exit 1
-fi
-
-echo "📦 Installing Native JSON RPC service..."
-
-# Copy shared library
-sudo cp liblibbigdata_h2_service.so /usr/local/axis2c/services/BigDataH2Service/
-
-# Create services.xml with Native JSON RPC Message Receiver
-echo "📝 Creating services.xml with Native JSON RPC Message Receiver..."
-sudo tee /usr/local/axis2c/services/BigDataH2Service/services.xml > /dev/null << 'EOF'
-<?xml version="1.0" encoding="UTF-8"?>
-<serviceGroup>
- <service name="BigDataH2Service">
- <description>HTTP/2 Native JSON RPC Service - Following Axis2/Java JsonRpcMessageReceiver Pattern</description>
- <serviceClass>bigdata_h2_service</serviceClass>
- <parameter name="ServiceClass">liblibbigdata_h2_service</parameter>
-
- <!-- enableJSONOnly parameter (Axis2/Java JsonRpcMessageReceiver pattern) -->
- <parameter name="enableJSONOnly">true</parameter>
-
- <!-- Use Native JSON RPC Message Receiver (NOT axis2_raw_xml_in_out_msg_recv) -->
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
- class="axis2_json_rpc_msg_recv_native" />
-
- <operation name="processBigDataSet">
- <description>Process big data set with Native JSON RPC (pure JSON when IS_JSON_STREAM=true)</description>
- </operation>
-
- <operation name="getServiceMetadata">
- <description>Get service metadata with Native JSON RPC (pure JSON when IS_JSON_STREAM=true)</description>
- </operation>
- </service>
-</serviceGroup>
-EOF
-
-echo "🔄 Updating Apache module..."
-# Try different Apache binary locations
-if [ -x "/usr/local/apache2/bin/httpd" ]; then
- APACHE_CMD="/usr/local/apache2/bin/httpd"
-elif command -v apache2 >/dev/null 2>&1; then
- APACHE_CMD="apache2"
-else
- echo "⚠️ Apache binary not found, skipping module update"
- APACHE_CMD=""
-fi
-
-if [ -n "$APACHE_CMD" ]; then
- # Copy Axis2/C module to Apache
- if [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- sudo cp ../../../deploy/lib/libmod_axis2.so.0.7.0 /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Apache module updated"
- else
- echo "⚠️ Axis2/C module not found in deploy/lib"
- fi
-
- # Test Apache configuration
- echo "🔍 Testing Apache configuration..."
- if sudo $APACHE_CMD -t; then
- echo "✅ Apache configuration test passed"
-
- # Restart Apache if running
- if sudo systemctl is-active --quiet apache2-custom; then
- echo "🔄 Restarting Apache..."
- sudo systemctl restart apache2-custom
- echo "✅ Apache restarted successfully"
- else
- echo "ℹ️ Apache not running, skipping restart"
- fi
- else
- echo "❌ Apache configuration test failed"
- exit 1
- fi
-else
- echo "⚠️ Skipping Apache integration - Apache binary not found"
-fi
-
-echo ""
-echo "🎉 BigDataH2 Native JSON RPC Service Build Complete!"
-echo ""
-echo "📋 Service Architecture (Following Axis2/Java JsonRpcMessageReceiver Pattern):"
-echo " • Request Processing:"
-echo " - Check IS_JSON_STREAM property"
-echo " - If true: Pure JSON processing (bypass SOAP entirely)"
-echo " - If false: Fall back to SOAP processing"
-echo " • Message Receiver: axis2_json_rpc_msg_recv_native (NOT axis2_raw_xml_in_out_msg_recv)"
-echo " • enableJSONOnly: true (for pure JSON services)"
-echo " • Response: Direct JSON writing (no SOAP envelope)"
-echo ""
-echo "🔗 Service Endpoints:"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/processBigDataSet"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata"
-echo ""
-echo "🧪 Test with:"
-echo " curl -k -X POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata \\"
-echo " -H 'Content-Type: application/json' \\"
-echo " -d '{}'"
-echo ""
-echo "📊 Architecture Flow (Pure JSON when IS_JSON_STREAM=true):"
-echo " JSON Request → Native JSON RPC Message Receiver → Check IS_JSON_STREAM"
-echo " → If true: Service Function (pure JSON) → Direct JSON Response (no SOAP envelope)"
-echo " → If false: axis2_raw_xml_in_out_msg_recv → SOAP processing"
\ No newline at end of file
diff --git a/samples/user_guide/bigdata-h2-service/build_simple_json.sh b/samples/user_guide/bigdata-h2-service/build_simple_json.sh
deleted file mode 100644
index c2ea6906a..000000000
--- a/samples/user_guide/bigdata-h2-service/build_simple_json.sh
+++ /dev/null
@@ -1,147 +0,0 @@
-#!/bin/bash
-set -e
-
-# Build BigDataH2Service with Native Axis2/C JSON Processing
-# Following Axis2/C's actual architecture rather than trying to recreate Axis2/Java patterns
-
-echo "🚀 Building BigDataH2 Simple JSON Service - Native Axis2/C Architecture"
-echo "Using existing axis2_json_reader/axis2_json_writer + axis2_msg_recv pattern"
-echo "📁 Creating services directory..."
-
-# Ensure AXIS2C_HOME is set
-if [ -z "$AXIS2C_HOME" ]; then
- export AXIS2C_HOME="/usr/local/axis2c"
- echo "📍 Set AXIS2C_HOME to $AXIS2C_HOME"
-fi
-
-# Create services directory structure
-sudo mkdir -p /usr/local/axis2c/services/BigDataH2Service
-
-echo "🔨 Building with Native Axis2/C JSON Processing..."
-echo "✅ INCLUDING: Native axis2_json_reader (parses JSON from HTTP stream)"
-echo "✅ INCLUDING: Native axis2_json_writer (writes JSON to HTTP stream)"
-echo "✅ INCLUDING: Custom message receiver for pure JSON processing"
-echo "✅ INCLUDING: Pure JSON service functions (no SOAP/XML conversion)"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lm"
-echo "❌ EXCLUDED: AXIOM/SOAP conversion overhead"
-
-# Compile only the working source files (no builder/formatter interfaces)
-gcc -shared -fPIC \
- -I../../../include \
- -I../../../util/include \
- -I../../../axiom/include \
- -I/usr/include/json-c \
- -DAXIS2_GUTHTHILA_ENABLED \
- -DAXIS2_SVR_MULTI_THREADED \
- -DAXIS2_JSON_ENABLED \
- -DWITH_NGHTTP2 \
- -DENABLE_JSON_ONLY \
- src/bigdata_h2_service.c \
- src/bigdata_h2_service_handler.c \
- -L../../../deploy/lib \
- -laxutil -laxis2_engine -laxis2_axiom -ljson-c -lm \
- -o liblibbigdata_h2_service.so
-
-if [ $? -eq 0 ]; then
- echo "✅ Simple JSON Service compilation successful!"
-else
- echo "❌ Compilation failed!"
- exit 1
-fi
-
-echo "📦 Installing Simple JSON service..."
-
-# Copy shared library
-sudo cp liblibbigdata_h2_service.so /usr/local/axis2c/services/BigDataH2Service/
-
-# Create services.xml with simple JSON configuration
-echo "📝 Creating services.xml with native JSON processing..."
-sudo tee /usr/local/axis2c/services/BigDataH2Service/services.xml > /dev/null << 'EOF'
-<?xml version="1.0" encoding="UTF-8"?>
-<serviceGroup>
- <service name="BigDataH2Service">
- <description>HTTP/2 Simple JSON BigData Service - Native Axis2/C</description>
- <serviceClass>bigdata_h2_service</serviceClass>
- <parameter name="ServiceClass">liblibbigdata_h2_service</parameter>
-
- <!-- Native JSON processing parameters -->
- <parameter name="enableJSONOnly">true</parameter>
- <parameter name="JSONContentType">application/json</parameter>
-
- <!-- Use standard message receiver -->
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
- class="axis2_raw_xml_in_out_msg_recv" />
-
- <operation name="processBigDataSet">
- <description>Process big data set with HTTP/2 JSON (native processing)</description>
- </operation>
-
- <operation name="getServiceMetadata">
- <description>Get service metadata as JSON (native processing)</description>
- </operation>
- </service>
-</serviceGroup>
-EOF
-
-echo "🔄 Updating Apache module..."
-# Try different Apache binary locations
-if [ -x "/usr/local/apache2/bin/httpd" ]; then
- APACHE_CMD="/usr/local/apache2/bin/httpd"
-elif command -v apache2 >/dev/null 2>&1; then
- APACHE_CMD="apache2"
-else
- echo "⚠️ Apache binary not found, skipping module update"
- APACHE_CMD=""
-fi
-
-if [ -n "$APACHE_CMD" ]; then
- # Copy Axis2/C module to Apache
- if [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- sudo cp ../../../deploy/lib/libmod_axis2.so.0.7.0 /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Apache module updated"
- else
- echo "⚠️ Axis2/C module not found in deploy/lib"
- fi
-
- # Test Apache configuration
- echo "🔍 Testing Apache configuration..."
- if sudo $APACHE_CMD -t; then
- echo "✅ Apache configuration test passed"
-
- # Restart Apache if running
- if sudo systemctl is-active --quiet apache2; then
- echo "🔄 Restarting Apache..."
- sudo systemctl restart apache2
- echo "✅ Apache restarted successfully"
- else
- echo "ℹ️ Apache not running, skipping restart"
- fi
- else
- echo "❌ Apache configuration test failed"
- exit 1
- fi
-else
- echo "⚠️ Skipping Apache integration - Apache binary not found"
-fi
-
-echo ""
-echo "🎉 BigDataH2 Simple JSON Service Build Complete!"
-echo ""
-echo "📋 Service Architecture (Native Axis2/C Pattern):"
-echo " • HTTP Request: Native HTTP transport receives JSON"
-echo " • JSON Processing: Service functions handle JSON directly with json-c"
-echo " • HTTP Response: Native HTTP transport sends JSON response"
-echo " • enableJSONOnly: true (bypass SOAP processing)"
-echo " • Performance: Direct JSON processing, no AXIOM/SOAP overhead"
-echo ""
-echo "🔗 Service Endpoints:"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/processBigDataSet"
-echo " • POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata"
-echo ""
-echo "🧪 Test with:"
-echo " curl -k -X POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata \\"
-echo " -H 'Content-Type: application/json' \\"
-echo " -d '{}'"
-echo ""
-echo "📊 Architecture Flow:"
-echo " JSON Request → HTTP Transport → Message Receiver → Service Function (pure JSON) → JSON Response"
\ No newline at end of file
diff --git a/samples/user_guide/bigdata-h2-service/clean_rebuild_json_rpc.sh b/samples/user_guide/bigdata-h2-service/clean_rebuild_json_rpc.sh
deleted file mode 100755
index b5d18dfba..000000000
--- a/samples/user_guide/bigdata-h2-service/clean_rebuild_json_rpc.sh
+++ /dev/null
@@ -1,147 +0,0 @@
-#!/bin/bash
-set -e
-
-# Clean rebuild strategy for JSON RPC Message Receiver
-# Avoids HTTP/1.1 JSON compilation issues by building service-only
-
-echo "🧹 Clean Rebuild Strategy for JSON RPC Message Receiver"
-echo "========================================================"
-
-# Check if we're in the right directory
-if [ ! -f "build_json_rpc_service.sh" ]; then
- echo "❌ Error: Must be run from bigdata-h2-service directory"
- exit 1
-fi
-
-echo "📍 Current directory: $(pwd)"
-echo ""
-
-# Step 1: Clean previous builds
-echo "🧹 Step 1: Cleaning previous builds..."
-rm -f *.so *.o core
-rm -f /tmp/services_json_only.xml
-echo "✅ Local cleanup complete"
-echo ""
-
-# Step 2: Verify source files
-echo "🔍 Step 2: Verifying JSON RPC source files..."
-required_files=(
- "src/axis2_json_rpc_msg_recv.h"
- "src/axis2_json_rpc_msg_recv.c"
- "src/bigdata_h2_service.h"
- "src/bigdata_h2_service.c"
- "src/bigdata_h2_service_handler.c"
-)
-
-missing_files=0
-for file in "${required_files[@]}"; do
- if [ -f "$file" ]; then
- echo "✅ $file found"
- else
- echo "❌ $file missing"
- missing_files=$((missing_files + 1))
- fi
-done
-
-if [ $missing_files -gt 0 ]; then
- echo "❌ Error: $missing_files source files missing"
- exit 1
-fi
-echo ""
-
-# Step 3: Check Axis2/C deployment
-echo "🔍 Step 3: Checking Axis2/C deployment..."
-axis2c_dirs=(
- "../../../deploy/lib"
- "../../../deploy/include"
- "/usr/local/axis2c/services"
-)
-
-for dir in "${axis2c_dirs[@]}"; do
- if [ -d "$dir" ]; then
- echo "✅ $dir exists"
- else
- echo "❌ $dir missing"
- if [[ "$dir" == "/usr/local/axis2c/services" ]]; then
- echo "🔧 Creating $dir..."
- sudo mkdir -p "$dir"
- echo "✅ Created $dir"
- else
- echo "⚠️ Warning: $dir not found - may need full Axis2/C rebuild"
- fi
- fi
-done
-echo ""
-
-# Step 4: Check required libraries
-echo "🔍 Step 4: Checking required libraries..."
-if [ -f "../../../deploy/lib/libaxutil.so" ]; then
- echo "✅ libaxutil.so found"
-else
- echo "❌ libaxutil.so missing - need Axis2/C rebuild"
- echo ""
- echo "💡 RECOMMENDATION: Full rebuild required"
- echo " Run: cd /home/robert/repos/axis-axis2-c-core"
- echo " make distclean"
- echo " ./configure --enable-http2 --enable-json --with-apache2=/usr/include/apache2 --with-apr=/usr/include/apr-1.0 --prefix=/home/robert/repos/axis-axis2-c-core/deploy"
- echo " make -j2"
- echo " sudo make install"
- echo ""
- read -p "Do you want to proceed with service-only build anyway? (y/N): " -n 1 -r
- echo
- if [[ ! $REPLY =~ ^[Yy]$ ]]; then
- exit 1
- fi
-fi
-
-if pkg-config --exists json-c; then
- echo "✅ json-c library found"
-else
- echo "❌ json-c library missing"
- echo "🔧 Install with: sudo apt-get install libjson-c-dev"
- exit 1
-fi
-echo ""
-
-# Step 5: Build JSON RPC service
-echo "🔨 Step 5: Building JSON RPC Service..."
-chmod +x build_json_rpc_service.sh
-chmod +x test_json_rpc_service.sh
-
-# Create services.xml script if not exists
-if [ ! -f "/tmp/create_services_json.sh" ]; then
- echo "📝 Creating services.xml generation script..."
- chmod +x /tmp/create_services_json.sh
-fi
-
-echo "🚀 Running build_json_rpc_service.sh..."
-./build_json_rpc_service.sh
-
-if [ $? -eq 0 ]; then
- echo ""
- echo "🎉 Clean Rebuild Successful!"
- echo ""
- echo "🧪 Next Steps:"
- echo " 1. Test the service:"
- echo " ./test_json_rpc_service.sh"
- echo ""
- echo " 2. Manual test:"
- echo " curl -k -X POST https://localhost/axis2/services/BigDataH2Service/getServiceMetadata \\"
- echo " -H 'Content-Type: application/json' -d '{}'"
- echo ""
- echo "📊 Architecture Benefits:"
- echo " • enableJSONOnly=true: Pure JSON processing"
- echo " • No AXIOM conversion: 70% memory reduction"
- echo " • Direct json-c processing: 30% faster"
- echo " • HTTP/2 + JSON: Network efficiency"
-else
- echo ""
- echo "❌ Build failed!"
- echo ""
- echo "💡 Troubleshooting:"
- echo " 1. Full Axis2/C rebuild may be required"
- echo " 2. Check Apache HTTP/2 module configuration"
- echo " 3. Verify json-c library installation"
- echo ""
- exit 1
-fi
\ No newline at end of file
diff --git a/samples/user_guide/camera-control-service/IMPLEMENTATION_GUIDE.md b/samples/user_guide/camera-control-service/IMPLEMENTATION_GUIDE.md
index fca3a154c..15082f7bc 100644
--- a/samples/user_guide/camera-control-service/IMPLEMENTATION_GUIDE.md
+++ b/samples/user_guide/camera-control-service/IMPLEMENTATION_GUIDE.md
@@ -90,7 +90,7 @@ libcamera_control_service_la_LIBADD += \
-ladditional_deps
```
-#### 2. Update build_camera_service.sh
+#### 2. Update Makefile.am
```bash
# Add camera-specific compile flags
diff --git a/samples/user_guide/camera-control-service/Makefile.am b/samples/user_guide/camera-control-service/Makefile.am
index a644a391e..ab8ef7974 100644
--- a/samples/user_guide/camera-control-service/Makefile.am
+++ b/samples/user_guide/camera-control-service/Makefile.am
@@ -46,7 +46,7 @@ service_DATA = services.xml
confdir = $(datadir)/axis2c/samples/user_guide/camera-control-service
conf_DATA = README.md IMPLEMENTATION_GUIDE.md
-EXTRA_DIST = services.xml README.md IMPLEMENTATION_GUIDE.md build_camera_service.sh
+EXTRA_DIST = services.xml README.md IMPLEMENTATION_GUIDE.md
# Clean generated files
CLEANFILES = *.la *.lo *.o
diff --git a/samples/user_guide/camera-control-service/README.md b/samples/user_guide/camera-control-service/README.md
index 40bc2641f..f7db28bd2 100644
--- a/samples/user_guide/camera-control-service/README.md
+++ b/samples/user_guide/camera-control-service/README.md
@@ -131,7 +131,6 @@ camera-control-service/
│ └── camera_control_service.c # Service implementation with stubs
├── services.xml # HTTP/2 service configuration
├── Makefile.am # Build system integration
-├── build_camera_service.sh # Quick build script
├── README.md # This documentation
└── IMPLEMENTATION_GUIDE.md # Detailed implementation examples
```
@@ -185,14 +184,13 @@ See `IMPLEMENTATION_GUIDE.md` for detailed examples and integration patterns.
### Build and Install
```bash
-# Navigate to service directory
-cd /path/to/axis-axis2-c-core/samples/user_guide/camera-control-service
-
# Install dependencies (Ubuntu/Debian)
sudo apt install libjson-c-dev
-# Build the service
-./build_camera_service.sh
+# Build and install the service
+cd /path/to/axis-axis2-c-core/samples
+./configure --prefix="${AXIS2C_HOME}" --enable-json --enable-http2
+make -C user_guide/camera-control-service install
# Service is automatically installed to:
# /usr/local/axis2c/services/CameraControlService/
diff --git a/samples/user_guide/camera-control-service/build_camera_service.sh b/samples/user_guide/camera-control-service/build_camera_service.sh
deleted file mode 100755
index 2e37d2bca..000000000
--- a/samples/user_guide/camera-control-service/build_camera_service.sh
+++ /dev/null
@@ -1,110 +0,0 @@
-#!/bin/bash
-set -e
-
-echo "🚀 Building Camera Control JSON Service - SOAP-FREE HTTP/2 Architecture"
-
-# Create services directory
-echo "📁 Creating services directory..."
-sudo mkdir -p /usr/local/axis2c/services/CameraControlService
-
-echo "🔨 Building with PURE JSON dependencies (AXIOM-FREE + SOAP-FREE)..."
-echo "❌ EXCLUDED: -laxis2_axiom (XML object model not needed for pure JSON)"
-echo "❌ EXCLUDED: SOAP service skeleton framework patterns"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c"
-echo ""
-echo "⚠️ STUB IMPLEMENTATION WARNING:"
-echo " This service contains STUB implementations only!"
-echo " Users must implement camera_device_*_impl() functions"
-echo " for their specific camera system (OpenCamera, V4L2, IP cameras, etc.)"
-echo ""
-
-gcc -shared -fPIC \
- -DAXIS2_JSON_ENABLED -DWITH_NGHTTP2 -O2 \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I../../include \
- -I../../util/include \
- -I../../src/core/transport/http/util \
- -I/usr/include/json-c \
- src/camera_control_service.c \
- -o libcamera_control_service.so \
- -L/usr/local/axis2c/lib \
- -laxutil -laxis2_engine \
- -ljson-c
-
-echo "Build exit code: $?"
-
-if [ -f "libcamera_control_service.so" ]; then
- echo ""
- echo "🎉 SUCCESS: Camera Control JSON Service built with SOAP-FREE architecture!"
- echo "⚠️ REMINDER: This service contains STUB implementations only!"
-
- # Show file info
- ls -la libcamera_control_service.so
- file libcamera_control_service.so
-
- # Check dependencies
- echo ""
- echo "🔍 Checking runtime dependencies..."
- echo "📋 Service-level: No direct AXIOM usage (pure JSON processing)"
- echo "🔧 Engine-level: AXIOM present as transitive dependency (expected in Axis2/C)"
- # Show axis2 related dependencies only
- ldd libcamera_control_service.so | grep -E '(axis2|json|libax)' || echo " (Dependencies shown above in full ldd output)"
-
- # Install the service
- echo ""
- echo "🚀 Installing SOAP-free JSON Camera Control service..."
- sudo cp libcamera_control_service.so /usr/local/axis2c/services/CameraControlService/
- sudo cp services.xml /usr/local/axis2c/services/CameraControlService/
-
- # Fix ownership and permissions for Apache (runs as www-data)
- sudo chown -R www-data:www-data /usr/local/axis2c/services/CameraControlService
- sudo chmod 755 /usr/local/axis2c/services/CameraControlService
- sudo chmod 644 /usr/local/axis2c/services/CameraControlService/services.xml
- sudo chmod 755 /usr/local/axis2c/services/CameraControlService/libcamera_control_service.so
-
- echo ""
- echo "✅ Installation complete! Camera Control Service ready for HTTP/2 JSON requests"
- echo ""
- echo "🧪 TEST THE SERVICE (STUB IMPLEMENTATION):"
- echo ""
- echo "1. Start Apache httpd with mod_axis2:"
- echo " sudo systemctl start apache2 # or httpd"
- echo ""
- echo "2. Test start recording (STUB - will log but not record):"
- echo ' curl -k --http2 -H "Content-Type: application/json" \'
- echo ' -d '\''{"action":"start_recording","clip_name":"test_001","quality":"1080p","duration":60}'\'' \'
- echo ' https://localhost:443/services/CameraControlService/startRecording'
- echo ""
- echo "3. Test get status (STUB - returns demo data):"
- echo ' curl -k --http2 -H "Content-Type: application/json" \'
- echo ' -d '\''{"action":"get_status"}'\'' \'
- echo ' https://localhost:443/services/CameraControlService/getStatus'
- echo ""
- echo "4. Test stop recording (STUB - will log but not stop recording):"
- echo ' curl -k --http2 -H "Content-Type: application/json" \'
- echo ' -d '\''{"action":"stop_recording"}'\'' \'
- echo ' https://localhost:443/services/CameraControlService/stopRecording'
- echo ""
- echo "5. Test SFTP transfer (STUB - will log but not transfer):"
- echo ' curl -k --http2 -H "Content-Type: application/json" \'
- echo ' -d '\''{"action":"sftp_transfer","hostname":"backup.example.com","username":"camera_user","private_key_path":"/home/camera/.ssh/id_rsa","local_file_path":"/tmp/test.mp4","remote_path":"/backups/"}'\'' \'
- echo ' https://localhost:443/services/CameraControlService/sftpTransfer'
- echo ""
- echo "📖 IMPLEMENTATION GUIDE:"
- echo " See IMPLEMENTATION_GUIDE.md for examples of replacing stub functions"
- echo " with camera-specific code (OpenCamera JNI, V4L2, IP cameras, etc.)"
- echo ""
- echo "🔍 CHECK LOGS:"
- echo " tail -f /usr/local/axis2c/logs/axis2.log"
- echo " (Look for STUB warnings and camera operation logs)"
-
-else
- echo ""
- echo "❌ Build failed - check compiler errors above"
- echo ""
- echo "💡 Common solutions:"
- echo "1. Install json-c development files: sudo apt install libjson-c-dev"
- echo "2. Check Apache Axis2/C installation: ls -la /usr/local/axis2c/lib"
- echo "3. Verify include paths exist: ls -la /usr/local/axis2c/include/axis2-2.0.0"
- exit 1
-fi
\ No newline at end of file
diff --git a/samples/user_guide/financial-benchmark-service/build_financial_service.sh b/samples/user_guide/financial-benchmark-service/build_financial_service.sh
deleted file mode 100755
index e34ca5244..000000000
--- a/samples/user_guide/financial-benchmark-service/build_financial_service.sh
+++ /dev/null
@@ -1,171 +0,0 @@
-#!/bin/bash
-set -e
-
-echo "🚀 Building Financial Benchmark JSON Service - SOAP-FREE HTTP/2 Architecture"
-echo ""
-echo "📊 PURPOSE: Demonstrate Axis2/C performance on resource-constrained hardware"
-echo " where Java/WildFly cannot run (old Android phones, embedded systems)"
-echo ""
-
-# Create services directory
-echo "📁 Creating services directory..."
-sudo mkdir -p /usr/local/axis2c/services/FinancialBenchmarkService
-
-echo "🔨 Building with PURE JSON dependencies (AXIOM-FREE + SOAP-FREE)..."
-echo "❌ EXCLUDED: -laxis2_axiom (XML object model not needed for pure JSON)"
-echo "❌ EXCLUDED: SOAP service skeleton framework patterns"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lm (math library)"
-echo ""
-echo "📈 ALGORITHMS INCLUDED:"
-echo " • Portfolio Variance - O(n²) covariance matrix calculation"
-echo " • Monte Carlo VaR - Compute-intensive simulation"
-echo " • Scenario Analysis - Hash table lookups"
-echo ""
-echo "🤖 MCP (Model Context Protocol) binary also built:"
-echo " • financial-benchmark-mcp — JSON-RPC 2.0 stdio, runs as an MCP client subprocess"
-echo ""
-
-# ── 1. Build the httpd shared library ─────────────────────────────────────────
-#
-# Includes:
-# financial_benchmark_service.c — core computation + JSON I/O
-# financial_benchmark_service_handler.c — Axis2/C HTTP entry points (D1)
-# mcp_catalog_handler.c — /_mcp/openapi-mcp.json endpoint (D1)
-# axis2_json_secure_fault.c — correlation-ID error responses (D2)
-gcc -shared -fPIC \
- -DAXIS2_JSON_ENABLED -DWITH_NGHTTP2 -O2 \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I../../include \
- -I../../util/include \
- -I../../src/core/transport/http/util \
- -I/usr/include/json-c \
- src/financial_benchmark_service.c \
- src/financial_benchmark_service_handler.c \
- src/mcp_catalog_handler.c \
- src/axis2_json_secure_fault.c \
- -o libfinancial_benchmark_service.so \
- -L/usr/local/axis2c/lib \
- -laxutil -laxis2_engine \
- -ljson-c \
- -lm
-
-# ── 2. Build the MCP stdio binary (C1) ────────────────────────────────────────
-gcc -O2 \
- -DAXIS2_JSON_ENABLED -DWITH_NGHTTP2 \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I../../include \
- -I../../util/include \
- -I../../src/core/transport/http/util \
- -I/usr/include/json-c \
- src/financial_benchmark_service.c \
- src/finbench_mcp.c \
- src/finbench_mcp_main.c \
- -o financial-benchmark-mcp \
- -L/usr/local/axis2c/lib \
- -Wl,-rpath,/usr/local/axis2c/lib \
- -laxutil -laxis2_engine \
- -ljson-c \
- -lm
-
-echo "Build exit code: $?"
-
-if [ -f "libfinancial_benchmark_service.so" ] && [ -f "financial-benchmark-mcp" ]; then
- echo ""
- echo "🎉 SUCCESS: Financial Benchmark Service built (httpd .so + MCP binary)"
-
- # Show file info
- ls -la libfinancial_benchmark_service.so financial-benchmark-mcp
- file libfinancial_benchmark_service.so financial-benchmark-mcp
-
- # Check dependencies
- echo ""
- echo "🔍 Checking runtime dependencies..."
- ldd libfinancial_benchmark_service.so | grep -E '(axis2|json|libax|libm)' || true
- ldd financial-benchmark-mcp | grep -E '(axis2|json|libax|libm)' || true
-
- # ── Install httpd service ──
- echo ""
- echo "🚀 Installing httpd JSON service (mod_axis2)..."
- sudo cp libfinancial_benchmark_service.so /usr/local/axis2c/services/FinancialBenchmarkService/
- sudo cp services.xml /usr/local/axis2c/services/FinancialBenchmarkService/
- sudo chown -R www-data:www-data /usr/local/axis2c/services/FinancialBenchmarkService
- sudo chmod 755 /usr/local/axis2c/services/FinancialBenchmarkService
- sudo chmod 644 /usr/local/axis2c/services/FinancialBenchmarkService/services.xml
- sudo chmod 755 /usr/local/axis2c/services/FinancialBenchmarkService/libfinancial_benchmark_service.so
-
- # ── Install MCP binary ──
- echo "🤖 Installing MCP stdio binary..."
- sudo mkdir -p /usr/local/axis2c/bin
- sudo cp financial-benchmark-mcp /usr/local/axis2c/bin/
- sudo chmod 755 /usr/local/axis2c/bin/financial-benchmark-mcp
-
- echo ""
- echo "✅ Installation complete!"
- echo ""
- echo "============================================================"
- echo "🧪 TEST THE SERVICE:"
- echo "============================================================"
- echo ""
- echo "── HTTP/2 JSON (via Apache httpd) ──"
- echo ""
- echo "1. Start Apache httpd with mod_axis2:"
- echo " sudo systemctl start apache2 # or httpd"
- echo ""
- echo "2. Get service metadata:"
- echo ' curl -k --http2 https://localhost:443/services/FinancialBenchmarkService/metadata'
- echo ""
- echo "3. Test Portfolio Variance (100 assets - quick test):"
- echo ' python3 test/generate_test_data.py --assets 100 | \'
- echo ' curl -k --http2 -H "Content-Type: application/json" -d @- \'
- echo ' https://localhost:443/services/FinancialBenchmarkService/portfolioVariance'
- echo ""
- echo "4. Test Scenario Analysis:"
- echo ' curl -k --http2 -H "Content-Type: application/json" \'
- echo ' -d '"'"'{"assets":[{"asset_id":1,"current_price":100,"position_size":10,"scenarios":[{"price":110,"probability":0.4},{"price":100,"probability":0.35},{"price":90,"probability":0.25}]}]}'"'"' \'
- echo ' https://localhost:443/services/FinancialBenchmarkService/scenarioAnalysis'
- echo ""
- echo "5. Test Monte Carlo VaR (10,000 simulations):"
- echo ' curl -k --http2 -H "Content-Type: application/json" \'
- echo ' -d '\''{"n_simulations":10000,"n_periods":252,"initial_value":1000000,"expected_return":0.08,"volatility":0.20}'\'' \'
- echo ' https://localhost:443/services/FinancialBenchmarkService/monteCarlo'
- echo ""
- echo "── MCP stdio (stdio-based MCP client) ──"
- echo ""
- echo "6. Add to your MCP client config (path varies by client;"
- echo " Claude Desktop's ~/.config/claude/claude_desktop_config.json shown):"
- echo ' {"mcpServers":{"axis2c-financial":{"command":"/usr/local/axis2c/bin/financial-benchmark-mcp"}}}'
- echo ""
- echo "7. Smoke-test MCP stdio directly:"
- echo ' echo '"'"'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'"'"' \'
- echo ' | /usr/local/axis2c/bin/financial-benchmark-mcp'
- echo ""
- echo " Expected: {\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"protocolVersion\":\"2024-11-05\",...}}"
- echo ""
- echo "============================================================"
- echo "📊 EXPECTED BENCHMARK RESULTS (on modest hardware):"
- echo "============================================================"
- echo ""
- echo "┌─────────────────────────────────────────────────────────────┐"
- echo "│ Test │ Axis2/C │ Java/WildFly │"
- echo "├─────────────────────────────────────────────────────────────┤"
- echo "│ Portfolio 500 assets │ ~5ms │ Cannot run (4GB+)│"
- echo "│ Monte Carlo 10K sims │ ~100ms │ Cannot run (4GB+)│"
- echo "│ Memory usage │ ~30MB │ 4-8GB minimum │"
- echo "│ Device cost │ \$20 │ \$2000+ │"
- echo "└─────────────────────────────────────────────────────────────┘"
- echo ""
- echo "🔍 CHECK LOGS:"
- echo " tail -f /usr/local/axis2c/logs/axis2.log"
- echo " (Look for FinBench calculation timing logs)"
-
-else
- echo ""
- echo "❌ Build failed - check compiler errors above"
- echo ""
- echo "💡 Common solutions:"
- echo "1. Install json-c development files: sudo apt install libjson-c-dev"
- echo "2. Check Apache Axis2/C installation: ls -la /usr/local/axis2c/lib"
- echo "3. Verify include paths exist: ls -la /usr/local/axis2c/include/axis2-2.0.0"
- echo "4. Ensure math library is available: gcc ... -lm"
- exit 1
-fi
diff --git a/samples/user_guide/login-service/build_json_service.sh b/samples/user_guide/login-service/build_json_service.sh
deleted file mode 100644
index 3a1c6cbe9..000000000
--- a/samples/user_guide/login-service/build_json_service.sh
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/bash
-set -e
-
-echo "🚀 Building Login JSON Service - SOAP-FREE HTTP/2 Architecture"
-
-# Create services directory
-echo "📁 Creating services directory..."
-sudo mkdir -p /usr/local/axis2c/services/LoginService
-
-echo "🔨 Building with PURE JSON dependencies (AXIOM-FREE + SOAP-FREE)..."
-echo "❌ EXCLUDED: -laxis2_axiom (XML object model not needed for pure JSON)"
-echo "❌ EXCLUDED: SOAP service skeleton framework patterns"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lssl -lcrypto -lm"
-
-gcc -shared -fPIC \
- -DAXIS2_JSON_ENABLED -DWITH_NGHTTP2 -O2 \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I../../include \
- -I../../util/include \
- -I../../src/core/transport/http/util \
- -I/usr/include/json-c \
- src/login_service.c \
- src/login_json_handler.c \
- -o liblogin_json_service.so \
- -L/usr/local/axis2c/lib \
- -laxutil -laxis2_engine \
- -ljson-c -lssl -lcrypto -lm
-
-echo "Build exit code: $?"
-
-if [ -f "liblogin_json_service.so" ]; then
- echo ""
- echo "🎉 SUCCESS: Login JSON Service built with SOAP-FREE architecture!"
-
- # Show file info
- ls -la liblogin_json_service.so
- file liblogin_json_service.so
-
- # Check dependencies
- echo ""
- echo "🔍 Checking runtime dependencies..."
- echo "📋 Service-level: No direct AXIOM usage (pure JSON processing)"
- echo "🔧 Engine-level: AXIOM present as transitive dependency (expected in Axis2/C)"
- # Show axis2 related dependencies only
- ldd liblogin_json_service.so | grep -E '(axis2|json|libax)' || echo " (Dependencies shown above in full ldd output)"
-
- # Install the service
- echo ""
- echo "🚀 Installing SOAP-free JSON service..."
- sudo cp liblogin_json_service.so /usr/local/axis2c/services/LoginService/liblogin_service.so
- sudo cp services.xml /usr/local/axis2c/services/LoginService/
-
- echo "📋 Installed files:"
- ls -la /usr/local/axis2c/services/LoginService/
-
- # Apache module + config: only needed for source-built Apache (/usr/local/apache2).
- # Packaged Apache (Debian/Ubuntu) uses deploy-localhost.sh + axis2-services.conf instead.
- if [ -d "/usr/local/apache2" ]; then
- echo ""
- echo "🔧 Source-built Apache detected at /usr/local/apache2 — configuring module..."
-
- if [ ! -f "/usr/local/apache2/modules/mod_axis2.so" ]; then
- AXIS2_MODULE=""
- if [ -n "${AXIS2C_HOME:-}" ] && [ -f "$AXIS2C_HOME/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="$AXIS2C_HOME/lib/libmod_axis2.so.0.7.0"
- elif [ -f "/usr/local/axis2c/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="/usr/local/axis2c/lib/libmod_axis2.so.0.7.0"
- elif [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="../../../deploy/lib/libmod_axis2.so.0.7.0"
- elif [ -f "../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="../../deploy/lib/libmod_axis2.so.0.7.0"
- fi
-
- if [ -n "$AXIS2_MODULE" ]; then
- sudo cp "$AXIS2_MODULE" /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Axis2/C module copied from: $AXIS2_MODULE"
- else
- echo "⚠️ Axis2/C module not found. Please set AXIS2C_HOME or ensure Axis2/C is built."
- echo " Searched: \$AXIS2C_HOME/lib, /usr/local/axis2c/lib, ../../../deploy/lib"
- fi
- else
- echo "✅ Axis2/C module already installed"
- fi
-
- AXIS2_CONF="/usr/local/apache2/conf/extra/httpd-axis2.conf"
- if [ ! -f "$AXIS2_CONF" ]; then
- echo ""
- echo "📝 Creating Axis2/C Apache configuration..."
- sudo tee "$AXIS2_CONF" > /dev/null << 'CONFEOF'
-# Axis2/C Configuration for HTTP/2 JSON Services
-LoadModule axis2_module modules/mod_axis2.so
-Protocols h2 h2c http/1.1
-Axis2RepoPath /usr/local/axis2c
-Axis2LogFile /var/log/axis2c/axis2.log
-Axis2LogLevel info
-Axis2MaxLogFileSize 1024
-<Location /services>
- SetHandler axis2_module
-</Location>
-<LocationMatch "^/services/.*">
- Header always set Access-Control-Allow-Origin "*"
- Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
- Header always set Access-Control-Allow-Headers "Content-Type, Authorization, Accept"
-</LocationMatch>
-CONFEOF
- echo "✅ Created $AXIS2_CONF"
- fi
-
- if [ -f /usr/local/apache2/conf/httpd.conf ] && \
- ! grep -q "Include conf/extra/httpd-axis2.conf" /usr/local/apache2/conf/httpd.conf; then
- { echo ""; echo "# Include Axis2/C configuration"; echo "Include conf/extra/httpd-axis2.conf"; } \
- | sudo tee -a /usr/local/apache2/conf/httpd.conf > /dev/null
- echo "✅ Added Include directive to httpd.conf"
- fi
-
- sudo mkdir -p /var/log/axis2c && sudo chmod 755 /var/log/axis2c
-
- echo ""
- echo "🔄 Restart Apache to apply changes:"
- echo " sudo /usr/local/apache2/bin/httpd -k restart"
- else
- echo ""
- echo "ℹ️ Packaged Apache detected — skipping module/config install."
- echo " Use deploy-localhost.sh + axis2-services.conf for Debian/Ubuntu."
- fi
-
- echo ""
- echo "✅ Login JSON Service ready"
-else
- echo ""
- echo "❌ BUILD FAILED"
- echo "This indicates potential missing dependencies or compilation issues"
- exit 1
-fi
\ No newline at end of file
diff --git a/samples/user_guide/testws-service/build_json_service.sh b/samples/user_guide/testws-service/build_json_service.sh
deleted file mode 100644
index 8c9469f70..000000000
--- a/samples/user_guide/testws-service/build_json_service.sh
+++ /dev/null
@@ -1,140 +0,0 @@
-#!/bin/bash
-set -e
-
-echo "🚀 Building TestWS JSON Service - SOAP-FREE HTTP/2 Architecture"
-
-# Create services directory
-echo "📁 Creating services directory..."
-sudo mkdir -p /usr/local/axis2c/services/TestwsService
-
-echo "🔨 Building with PURE JSON dependencies (AXIOM-FREE + SOAP-FREE)..."
-echo "❌ EXCLUDED: -laxis2_axiom (XML object model not needed for pure JSON)"
-echo "❌ EXCLUDED: SOAP service skeleton framework patterns"
-echo "✅ INCLUDING: -laxutil -laxis2_engine -ljson-c -lm"
-
-gcc -shared -fPIC \
- -DAXIS2_JSON_ENABLED -DWITH_NGHTTP2 -O2 \
- -I/usr/local/axis2c/include/axis2-2.0.0 \
- -I../../include \
- -I../../util/include \
- -I../../src/core/transport/http/util \
- -I/usr/include/json-c \
- src/testws_service.c \
- src/testws_json_handler.c \
- -o libtestws_json_service.so \
- -L/usr/local/axis2c/lib \
- -laxutil -laxis2_engine \
- -ljson-c -lm
-
-echo "Build exit code: $?"
-
-if [ -f "libtestws_json_service.so" ]; then
- echo ""
- echo "🎉 SUCCESS: TestWS JSON Service built with SOAP-FREE architecture!"
-
- # Show file info
- ls -la libtestws_json_service.so
- file libtestws_json_service.so
-
- # Check dependencies
- echo ""
- echo "🔍 Checking runtime dependencies..."
- echo "📋 Service-level: No direct AXIOM usage (pure JSON processing)"
- echo "🔧 Engine-level: AXIOM present as transitive dependency (expected in Axis2/C)"
- # Show axis2 related dependencies only
- ldd libtestws_json_service.so | grep -E '(axis2|json|libax)' || echo " (Dependencies shown above in full ldd output)"
-
- # Install the service
- echo ""
- echo "🚀 Installing SOAP-free JSON service..."
- sudo cp libtestws_json_service.so /usr/local/axis2c/services/TestwsService/libtestws_service.so
- sudo cp services.xml /usr/local/axis2c/services/TestwsService/
-
- # Fix ownership and permissions for Apache (runs as www-data)
- sudo chown -R www-data:www-data /usr/local/axis2c/services/TestwsService
- sudo chmod 755 /usr/local/axis2c/services/TestwsService
- sudo chmod 644 /usr/local/axis2c/services/TestwsService/services.xml
- sudo chmod 755 /usr/local/axis2c/services/TestwsService/libtestws_service.so
-
- echo "📋 Installed files:"
- ls -la /usr/local/axis2c/services/TestwsService/
-
- # Apache module + config: only needed for source-built Apache (/usr/local/apache2).
- # Packaged Apache (Debian/Ubuntu) uses deploy-localhost.sh + axis2-services.conf instead.
- if [ -d "/usr/local/apache2" ]; then
- echo ""
- echo "🔧 Source-built Apache detected at /usr/local/apache2 — configuring module..."
-
- if [ ! -f "/usr/local/apache2/modules/mod_axis2.so" ]; then
- AXIS2_MODULE=""
- if [ -n "${AXIS2C_HOME:-}" ] && [ -f "$AXIS2C_HOME/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="$AXIS2C_HOME/lib/libmod_axis2.so.0.7.0"
- elif [ -f "/usr/local/axis2c/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="/usr/local/axis2c/lib/libmod_axis2.so.0.7.0"
- elif [ -f "../../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="../../../deploy/lib/libmod_axis2.so.0.7.0"
- elif [ -f "../../deploy/lib/libmod_axis2.so.0.7.0" ]; then
- AXIS2_MODULE="../../deploy/lib/libmod_axis2.so.0.7.0"
- fi
-
- if [ -n "$AXIS2_MODULE" ]; then
- sudo cp "$AXIS2_MODULE" /usr/local/apache2/modules/mod_axis2.so
- echo "✅ Axis2/C module copied from: $AXIS2_MODULE"
- else
- echo "⚠️ Axis2/C module not found. Please set AXIS2C_HOME or ensure Axis2/C is built."
- echo " Searched: \$AXIS2C_HOME/lib, /usr/local/axis2c/lib, ../../../deploy/lib"
- fi
- else
- echo "✅ Axis2/C module already installed"
- fi
-
- AXIS2_CONF="/usr/local/apache2/conf/extra/httpd-axis2.conf"
- if [ ! -f "$AXIS2_CONF" ]; then
- echo ""
- echo "📝 Creating Axis2/C Apache configuration..."
- sudo tee "$AXIS2_CONF" > /dev/null << 'CONFEOF'
-# Axis2/C Configuration for HTTP/2 JSON Services
-LoadModule axis2_module modules/mod_axis2.so
-Protocols h2 h2c http/1.1
-Axis2RepoPath /usr/local/axis2c
-Axis2LogFile /var/log/axis2c/axis2.log
-Axis2LogLevel info
-Axis2MaxLogFileSize 1024
-<Location /services>
- SetHandler axis2_module
-</Location>
-<LocationMatch "^/services/.*">
- Header always set Access-Control-Allow-Origin "*"
- Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
- Header always set Access-Control-Allow-Headers "Content-Type, Authorization, Accept"
-</LocationMatch>
-CONFEOF
- echo "✅ Created $AXIS2_CONF"
- fi
-
- if [ -f /usr/local/apache2/conf/httpd.conf ] && \
- ! grep -q "Include conf/extra/httpd-axis2.conf" /usr/local/apache2/conf/httpd.conf; then
- { echo ""; echo "# Include Axis2/C configuration"; echo "Include conf/extra/httpd-axis2.conf"; } \
- | sudo tee -a /usr/local/apache2/conf/httpd.conf > /dev/null
- echo "✅ Added Include directive to httpd.conf"
- fi
-
- sudo mkdir -p /var/log/axis2c && sudo chmod 755 /var/log/axis2c
-
- echo ""
- echo "🔄 Restart Apache to apply changes:"
- echo " sudo /usr/local/apache2/bin/httpd -k restart"
- else
- echo ""
- echo "ℹ️ Packaged Apache detected — skipping module/config install."
- echo " Use deploy-localhost.sh + axis2-services.conf for Debian/Ubuntu."
- fi
-
- echo ""
- echo "✅ TestWS JSON Service ready"
-else
- echo ""
- echo "❌ BUILD FAILED"
- echo "This indicates potential missing dependencies or compilation issues"
- exit 1
-fi
\ No newline at end of file
(axis-axis2-c-core) 01/02: Delete two ad-hoc deploy scripts and correct the module filename
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git
commit 08d7a245e8d98c58fd7197c0734335ef6295280e
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Tue Aug 18 12:00:04 2026 -1000
Delete two ad-hoc deploy scripts and correct the module filename
deploy_enhanced_module.sh and deploy_pthread_debug_module.sh were one-off
debugging aids -- fixed byte counts, an apache2-custom service, nothing
referencing either -- so remove them rather than keep maintaining them. The
installation instructions separately told users to copy
libmod_axis2.so.0.7.0, and a note explained the suffix, but the module is
built with -avoid-version and no such file is ever produced.
Co-Authored-By: Claude Opus 5 (1M context) <no...@anthropic.com>
---
INSTALL | 7 ++++---
deploy_enhanced_module.sh | 37 -------------------------------------
deploy_pthread_debug_module.sh | 37 -------------------------------------
xdocs/docs/axis2c_manual.html | 4 ++--
xdocs/docs/installationguide.html | 4 ++--
5 files changed, 8 insertions(+), 81 deletions(-)
diff --git a/INSTALL b/INSTALL
index 34e52c5f8..d39a6f349 100644
--- a/INSTALL
+++ b/INSTALL
@@ -811,13 +811,14 @@ unmaintained since 2009. Windows users should use WSL2 (see Section 2).
NOTE : To do the following tasks, you might need super user privileges
on your machine.
- Copy the mod_axis2 (libmod_axis2.so.0.7.0 on Linux and mod_axis2.dll
+ Copy the mod_axis2 (libmod_axis2.so on Linux and mod_axis2.dll
on Windows) to "<apache2 modules directory>" as mod_axis2.so
- NOTE: The 0.7.0 version in the library filename reflects libtool's shared library versioning for ABI compatibility tracking and differs from the project release version (2.0.0).
+ NOTE: mod_axis2 is built with libtool's -avoid-version, so unlike the
+ other libraries it carries no version suffix in its filename.
Example:
- cp $AXIS2C_HOME/lib/libmod_axis2.so.0.7.0
+ cp $AXIS2C_HOME/lib/libmod_axis2.so
/usr/lib/apache2/modules/mod_axis2.so (on Linux)
copy C:\axis2c\build\deploy\lib\mod_axis2.dll
diff --git a/deploy_enhanced_module.sh b/deploy_enhanced_module.sh
deleted file mode 100755
index 485d1fd04..000000000
--- a/deploy_enhanced_module.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-# Deploy Enhanced Memory-Safe Module Script
-# Date: Dec 19, 2025
-
-REPO_ROOT="$(cd "$(dirname "$0")" && pwd)"
-MODULE="$REPO_ROOT/src/core/transport/http/server/apache2/.libs/libmod_axis2.so"
-
-if [ ! -f "$MODULE" ]; then
- echo "No built module at $MODULE; build first." >&2
- exit 1
-fi
-
-echo "=== Enhanced Memory-Safe Module Deployment ==="
-echo "Source: $MODULE"
-echo "Built: Dec 19 00:28 (Enhanced memory corruption fixes)"
-echo "Size: 327,712 bytes"
-echo ""
-
-echo "Step 1: Deploy enhanced module to Apache module path"
-sudo cp "$MODULE" /usr/local/axis2c/lib/libmod_axis2.so
-
-echo "Step 2: Also copy to Apache modules directory"
-sudo cp "$MODULE" /usr/local/apache2/modules/mod_axis2.so
-
-echo "Step 3: Restart Apache to clear module cache"
-sudo systemctl stop apache2-custom
-sleep 2
-sudo pkill -f apache2 2>/dev/null || true
-sudo systemctl start apache2-custom
-
-echo "Step 4: Verify deployment"
-ls -la /usr/local/axis2c/lib/libmod_axis2.so
-ls -la /usr/local/apache2/modules/mod_axis2.so
-
-echo "=== Deployment Complete ==="
-echo "Expected: Module timestamps should show Dec 19 00:28"
-echo "Test with: curl -sk --http2 -H 'Content-Type: application/json' -d '{\"test\":1}' https://localhost/services/BigDataH2Service/processBigDataSet --max-time 5"
\ No newline at end of file
diff --git a/deploy_pthread_debug_module.sh b/deploy_pthread_debug_module.sh
deleted file mode 100755
index b33d77f8b..000000000
--- a/deploy_pthread_debug_module.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-# Deploy enhanced Apache module with pthread debugging
-set -e
-
-REPO_ROOT="$(cd "$(dirname "$0")" && pwd)"
-MODULE="$REPO_ROOT/src/core/transport/http/server/apache2/.libs/libmod_axis2.so"
-
-if [ ! -f "$MODULE" ]; then
- echo "No built module at $MODULE; build first." >&2
- exit 1
-fi
-
-echo "Deploying enhanced module with pthread debugging..."
-echo "Module timestamp: $(stat -c '%y' "$MODULE")"
-
-# Stop Apache
-echo "Stopping Apache..."
-sudo systemctl stop apache2-custom
-
-# Deploy to both locations
-echo "Copying enhanced module to Apache modules directory..."
-sudo cp "$MODULE" /usr/local/apache2/modules/mod_axis2.so
-
-echo "Copying enhanced module to axis2c lib directory..."
-sudo cp "$MODULE" /usr/local/axis2c/lib/libmod_axis2.so
-
-# Verify deployment
-echo "Verifying deployment timestamps..."
-ls -la /usr/local/apache2/modules/mod_axis2.so
-ls -la /usr/local/axis2c/lib/libmod_axis2.so
-
-# Start Apache
-echo "Starting Apache with enhanced pthread debugging module..."
-sudo systemctl start apache2-custom
-
-echo "Deployment complete. Enhanced module with pthread debugging is now active."
-echo "Test with: curl -sk --http2 -H \"Content-Type: application/json\" -d '{\"test\":\"pthread_debug\"}' https://localhost/services/BigDataH2Service/processBigDataSet --max-time 5"
\ No newline at end of file
diff --git a/xdocs/docs/axis2c_manual.html b/xdocs/docs/axis2c_manual.html
index 112e7ac06..ea56303ef 100644
--- a/xdocs/docs/axis2c_manual.html
+++ b/xdocs/docs/axis2c_manual.html
@@ -1500,12 +1500,12 @@ the commands given below,
you might require super user privileges on your machine. If you are
using the binary release of Axis2/C, please note that it is built with
Apache 2.2.</font></p>
-<p>Copy the mod_axis2 shared library <font color="#4169e1">(libmod_axis2.so.0.7.0
+<p>Copy the mod_axis2 shared library <font color="#4169e1">(libmod_axis2.so
on Linux and mod_axis2.dll on MS
Windows)</font> to the Apache2 modules directory as mod_axis2.so</p>
<p>On Linux</p>
<div class="source">
-<pre> cp $AXIS2C_HOME/lib/libmod_axis2.so.0.7.0 /usr/lib/apache2/modules/mod_axis2.so<br /></pre>
+<pre> cp $AXIS2C_HOME/lib/libmod_axis2.so /usr/lib/apache2/modules/mod_axis2.so<br /></pre>
</div>
<p>On MS Windows</p>
<div class="source">
diff --git a/xdocs/docs/installationguide.html b/xdocs/docs/installationguide.html
index 8263cd268..7dfc48ebb 100644
--- a/xdocs/docs/installationguide.html
+++ b/xdocs/docs/installationguide.html
@@ -613,12 +613,12 @@ C:\axis2c\build\deploy\lib </div>
NOTE : To do the following tasks, you might need super user privileges
on your machine. If you are using the binary release of Axis2/C, please note that it is built with Apache 2.2.<br />
<br />
-Copy the mod_axis2 (libmod_axis2.so.0.7.0 on Linux and mod_axis2.dll on
+Copy the mod_axis2 (libmod_axis2.so on Linux and mod_axis2.dll on
Windows) to "<apache2 modules directory>" as
mod_axis2.so <br />
<br />
Example:<br />
-<code>cp $AXIS2C_HOME/lib/libmod_axis2.so.0.7.0
+<code>cp $AXIS2C_HOME/lib/libmod_axis2.so
/usr/lib/apache2/modules/mod_axis2.so </code>(on Linux)<br />
<code>copy C:\axis2c\build\deploy\lib\mod_axis2.dll
C:\Apache2\modules\mod_axis2.so </code>(on Windows)<br />