This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/main by this push:
new e8431727ea TOMEE-4574 - Add exception details to
Assembler#postConstructResources(...)
e8431727ea is described below
commit e8431727ea640d72dcb46933719de311eb5c8b6b
Author: Richard Zowalla <[email protected]>
AuthorDate: Thu Jan 29 08:58:57 2026 +0100
TOMEE-4574 - Add exception details to Assembler#postConstructResources(...)
---
.../src/main/java/org/apache/openejb/assembler/classic/Assembler.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
index f3d32135db..fb367569f2 100644
---
a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
+++
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
@@ -1335,7 +1335,7 @@ public class Assembler extends AssemblerTool implements
org.apache.openejb.spi.A
}
}
} catch (final Exception e) {
- logger.fatal("Error calling @PostConstruct method
on " + resource.getClass().getName());
+ logger.fatal("Error calling @PostConstruct method
on " + resource.getClass().getName(), e);
throw new OpenEJBException(e);
}
}
@@ -1367,7 +1367,7 @@ public class Assembler extends AssemblerTool implements
org.apache.openejb.spi.A
}
}
} catch (final Exception e) {
- logger.fatal("Error calling PostConstruct method on " +
resourceInfo.id);
+ logger.fatal("Error calling PostConstruct method on " +
resourceInfo.id, e);
logger.fatal("Resource " + resourceInfo.id + " could not
be initialized. Application will be undeployed.");
throw new OpenEJBException(e);
}