当我尝试在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>
这可能是配置丢失,或者构建过程失败,我没有想法可以解决这个问题。