在weblogic上部署失败

时间:2018-11-14 13:40:25

标签: oracle weblogic weblogic12c

当我尝试在weblogic上部署应用程序时,我遇到了以下例外:

No EJBs found in the ejb-jar file 'myproject-core.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful, @Singleton or @MessageDriven EJB annotation.

在我的ejb-jar.xml中,我有:

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
    version="3.1">

</ejb-jar>

这可能是配置丢失,或者构建过程失败,我没有想法可以解决这个问题。

0 个答案:

没有答案
相关问题