This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 59c8e09fd5 Fixed: Broken javamail-container sample in
ofbiz-component.xml (#1551)
59c8e09fd5 is described below
commit 59c8e09fd53e9f479a3d2d5bd2d32f6056d4ab9b
Author: Mridul Pathak <[email protected]>
AuthorDate: Fri Aug 7 11:00:19 2026 +0530
Fixed: Broken javamail-container sample in ofbiz-component.xml (#1551)
The commented-out javamail-container sample was missing loaders="main",
which throws a NullPointerException at container-load time as soon as it's
uncommented. Also fixed the indentation of the nested mail.* properties so the
existing nesting reads correctly.
---
framework/service/ofbiz-component.xml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/framework/service/ofbiz-component.xml
b/framework/service/ofbiz-component.xml
index ffa7bd1678..44c3e96088 100644
--- a/framework/service/ofbiz-component.xml
+++ b/framework/service/ofbiz-component.xml
@@ -66,7 +66,7 @@ under the License.
<!-- if delete-mail is set to true, will delete messages after fetching
them. otherwise, will try to mark them as seen
mail.store.protocol supports both imap and pop3, but pop3 will not be
able to mark messages as seen, so you would need to delete them-->
<!-- To use the mail listerner just uncomment and go...
- <container name="javamail-container"
class="org.apache.ofbiz.service.mail.JavaMailContainer">
+ <container name="javamail-container" loaders="main"
class="org.apache.ofbiz.service.mail.JavaMailContainer">
<property name="delegator-name" value="default"/>
<property name="dispatcher-name" value="JavaMailDispatcher"/>
<property name="run-as-user" value="system"/>
@@ -74,12 +74,12 @@ under the License.
<property name="delete-mail" value="false"/>
<property name="maxSize" value="100000"/>
<property name="default-listener" value="store-listener">
- <property name="mail.store.protocol" value="imap"/>
- <property name="mail.host" value="[host]"/>
- <property name="mail.port" value="110"/>
- <property name="mail.user" value="[user]"/>
- <property name="mail.pass" value="[pass]"/>
- <property name="mail.debug" value="false"/>
+ <property name="mail.store.protocol" value="imap"/>
+ <property name="mail.host" value="[host]"/>
+ <property name="mail.port" value="110"/>
+ <property name="mail.user" value="[user]"/>
+ <property name="mail.pass" value="[pass]"/>
+ <property name="mail.debug" value="false"/>
</property>
</container>
-->