我創建了一個EJB,併爲其創建了一個jar(包含必需的ejb-jar.xml和weblogic-ejb-jar.xml文件)。無法在WebLogic服務器中部署EJB 12c
當我加入這個jar到WebLogic Server 12c中,使用管理控制檯,我得到由於這個我下面的ejb發出─
Issues were encountered while parsing this deployment to determine module type. Assuming this is a library deployment.
未在JNDI樹視圖中顯示。所以我無法做我的jndi查找。請糾正我的錯誤。
EJB-jar.xml-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar id="ejb-jar_ID">
<display-name>ProductManager</display-name>
<enterprise-beans>
<session>
<ejb-name>Product</ejb-name>
<home>rohit.ProductHome</home>
<remote>rohit.ProductRemote</remote>
<ejb-class>rohit.ProductBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<ejb-client-jar>ProductManagerClient.jar</ejb-client-jar>
</ejb-jar>
WebLogic的EJB-jar.xml-
<?xml version=「1.0? encoding=「UTF-8??>
<weblogic-ejb-jar
xmlns=「http://www.bea.com/ns/weblogic/90? xmlns:j2ee=「http://java.sun.com/xml/ns/j2ee」 xmlns:xsi=「http://www.w3.org/2001/XMLSchema-instance」 xsi:schemaLocation=「http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd」>
<welogic-enterprise-bean>
<ejb-name>Product</ejb-name>
<jndi-name>Product</jndi-name>
<stateless-session-descriptor></stateless-session-descriptor>
</welogic-enterprise-bean>
</weblogic-ejb-jar>
請大家,我需要一些幫助。 – 2012-03-27 05:06:03