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-java-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c1e999247 Downgrade misleading AxisServletListener WARN to DEBUG
4c1e999247 is described below

commit 4c1e99924756b76f1aeae50929aa8692a8c3f931
Author: Robert Lazarski <[email protected]>
AuthorDate: Mon Apr 20 12:53:10 2026 -1000

    Downgrade misleading AxisServletListener WARN to DEBUG
    
    The warning "No transportReceiver found. Please update your axis2.xml"
    fires on every servlet deployment that doesn't explicitly configure an
    AxisServletListener — which is the normal case. The auto-configuration
    that follows works correctly. Demote to DEBUG since this is expected
    behavior, not a problem requiring user action.
---
 .../main/java/org/apache/axis2/transport/http/AxisServlet.java | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git 
a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
 
b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
index 61f84ae89b..7faf7b5ebf 100644
--- 
a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
+++ 
b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
@@ -574,9 +574,13 @@ public class AxisServlet extends HttpServlet {
         httpsListener = getAxisServletListener(Constants.TRANSPORT_HTTPS);
 
         if (httpListener == null && httpsListener == null) {
-            log.warn("No transportReceiver for " + 
AxisServletListener.class.getName() +
-                     " found. An instance for HTTP will be configured 
automatically. " +
-                     "Please update your axis2.xml file!");
+            // This is the normal path for most servlet deployments. The 
default
+            // axis2.xml ships a <transportReceiver name="http"> without
+            // class="...AxisServletListener", so getAxisServletListener() 
returns
+            // null. Auto-configuring an AxisServletListener here is expected 
and
+            // correct — no user action required.
+            log.trace("Auto-configuring HTTP AxisServletListener (axis2.xml 
does not " +
+                     "declare one explicitly — this is normal for servlet 
deployments)");
             httpListener = new AxisServletListener();
             TransportInDescription transportInDescription = new 
TransportInDescription(
                     Constants.TRANSPORT_HTTP);

Reply via email to