Bon Long Ray - Documents for our current project.

JBoss 4.0.4.GA 中安装 EJB 3.0 Container

Unzip the .zip file.


Remove from lib/
Remove ejb3-persistence.jar from jboss-4.0.4.GA/server/default/lib
Remove hibernate3.jar from jboss-4.0.4.GA/server/default/lib
Remove hibernate-annotations.jar from jboss-4.0.4.GA/server/default/lib
Remove hibernate-entitymanager.jar from jboss-4.0.4.GA/server/default/lib

Remove from deploy/
Remove jboss-aop.deployer/ from jboss-4.0.4.GA/server/default/deploy
Remove ejb3.deployer from jboss-4.0.4.GA/server/default/deploy if there is one

Copy to deploy/
Copy ejb3.deployer from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/deploy
Copy ejb3-clustered-sfsbcache-service.xml from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/deploy
Copy ejb3-entity-cache-service.xml from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/deploy
Copy ejb3-interceptors-aop.xml from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/deploy
Copy jboss-aop-jdk50.deployer from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/deploy

Copy to lib/
Copy jboss-remoting.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy jboss-serialization.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy jboss-j2ee.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy hibernate3.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy hibernate-annotations.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy hibernate-entitymanager.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy ejb3-persistence.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Copy javassist.jar from the lib/ directory of the distribution to jboss-4.0.4.GA/server/default/lib
Start jboss up with the default configuration run.sh -c default

Ref.

1. Installing EJB 3.0 RC6 - PFD
2. 基于Beehive,EJB3.0开发客户反馈系统


p.s.:

支持EJB3.0,需要将 jboss-aop_1.5.0.GA.zip 中的 lib-50/jboss-aop-jdk50-client.jar & jboss-aspect-jdk50-client.jar 复制到 $JBoss/client/ 下用以解决下面的问题:

Exception in thread "main" java.lang.NoClassDefFoundError:
[Lorg/jboss/aop/advice/Interceptor;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.jav a:2232)
at java.lang.Class.getDeclaredField(Class.java:1852)
...
另外,还需要 jboss-ejb3-client.jar 。
______
(完)

没有评论: