有谁知道造成这种异常的原因是什么?
这是错误日志:
<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
答案 0 :(得分:2)
您的ejb com.sdars.gui.business.ejb.XmUserBean未声明ejb规范所要求的默认构造函数。这就是EJB容器(WebLogic)抛出此异常的原因。更正ejb的代码以添加默认构造函数(不带参数)