gpt4 book ai didi

java - 将 Jar 文件部署到 weblogic 12.1.3 时出现异常错误

转载 作者:行者123 更新时间:2023-12-02 03:36:22 24 4
gpt4 key购买 nike

有谁知道是什么原因导致这样的异常?

这是错误日志:

<May 23, 2016 4:09:12 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "23430718618219" for task "3". Error is: "weblogic.application.ModuleException: java.lang.NoSuchMethodException: com.sdars.gui.business.ejb.UserBean_14f2ow_IUserImpl.<init>(weblogic.ejb.container.internal.StatelessLocalObject)"
weblogic.application.ModuleException: java.lang.NoSuchMethodException: com.sdars.gui.business.ejb.UserBean_14f2ow_IUserImpl.<init>(weblogic.ejb.container.internal.StatelessLocalObject)
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:175)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:170)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoSuchMethodException: com.sdars.gui.business.ejb.XmUserBean_14f2ow_IXmUserImpl.<init>(weblogic.ejb.container.internal.StatelessLocalObject)
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getConstructor(Class.java:1825)
at weblogic.ejb.container.internal.StatelessEJBLocalHomeImpl.allocateBI(StatelessEJBLocalHomeImpl.java:71)
at weblogic.ejb.container.internal.StatelessEJBLocalHomeImpl.prepare(StatelessEJBLocalHomeImpl.java:44)
at weblogic.ejb.container.deployer.SessionBeanInfoImpl.prepare(SessionBeanInfoImpl.java:462)
Truncated. see log file for complete stacktrace

最佳答案

您的 ejb com.sdars.gui.business.ejb.XmUserBean 未按照 ejb 规范的要求声明默认构造函数。这就是 EJB 容器 (WebLogic) 抛出此异常的原因。更正您的 ejb 代码以添加默认构造函数(不带参数)

关于java - 将 Jar 文件部署到 weblogic 12.1.3 时出现异常错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37399782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com