在myeclipse使用这个应用好像要建一个enterprise application project工程,里面会包括一个web工程和一个ejb的工程,好像源文件src下的文件要分别放到web\src和ejb\src这两个工程的src下面,而且要分开方,是不是news\ejb,和news\model下的文件,还有news\Constants.java和news\jdonframework.xml要放到ejb工程的源文件下面;
而其余的文件放到web工程的源文件下面呢?
另外现在部署完后启动jboss4.0会出现下面的错误:
18:28:28,109 WARN [verifier] EJB spec violation:
Bean : TNews
Method : public String ejbCreate(String) throws CreateException
Section: 10.6.4
Warning: The return type of an ejbCreate(...) method must be the entity bean's p
rimary key type.
18:28:28,328 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.
0.4.GA/server/default/deploy/news.ear/newsEJB.jar/
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
希望能回复一下!
多谢!