ERROR:Error creating descriptor from jar file build\std_myfirstejb_hello.jar:
ERROR:Error from ejbc:[EJB:010120]Error:The deployment descriptor 'META-INF/ejb-jar.xml.' was not found in 'build\std_myfirstejb_hello.jar'.Please add this file to the JAR and try again.
================================================
没有相应的部署描述符,xml文件有错
ERROR:Error from ejbc:[EJB:010120]Error:The deployment descriptor 'META-INF/ejb-jar.xml.' was not found in 'build\std_myfirstejb_hello.jar'.Please add this file to the JAR and try again.
================================================
没有相应的部署描述符,xml文件有错
<?xml version="1.0"?><!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<!--EJB说明文件-->
<ejb-jar>
<small-icon>images/green-cube.gif</small-icon>
<enterprise-beans>
<!--定义会话EJB-->
<session>
<small-icon>images/orange-cube.gif</small-icon>
<!--定义会话EJB名-->
<ejb-name>MyFirstEJB</ejb-name>
<!--定义会话EJB主接口名-->
<home>HelloHome</home>
<!--定义会话EJB远程接口名-->
<remote>Hello</remote>
<!--定义会话EJB实现类名-->
<ejb-class>HelloBean</ejb-class>
<!--定义会话EJB类型-->
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<!--定义会话EJB装配描述-->
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>MyFirstEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
ERROR:Error creating descriptor from jar file build\std_myfirstejb_hello.jar
ERROR:Error from ejbc:Invalid byte 2 of 2-byte UTF-8 sequence.
ERROR:ejbc couldn't load descriptor from jar
请帮忙指出解决办法?