配置JBoss 4.03sp1支持EJB3.0

    技术2022-05-12  10

     

    前提条件:j2sdk1.5(ejb3.0 需要 j2sdk1.5支持)

    1、            解压缩jboss-4.0.3SP1.zip和jboss-EJB-3.0_RC6-PFD.zip。(分别是JBoss 4.03sp1压缩包和EJB3.0的jar包)

    2、            jboss-4.0.3/server/all/lib目录下移除ejb3-persistence.jar

    3、            jboss-4.0.3/server/all/lib目录下移除 hibernate3.jar

    4、            jboss-4.0.3/server/all/lib目录下移除 hibernate-annotations.jar

    5、            jboss-4.0.3/server/all/lib目录下移除 hibernate-entitymanager.jar

    6、            jboss-4.0.3/server/all/deploy 目录下移除 jboss-aop.deployer/

    7、            jboss-4.0.3/server/all/deploy目录下移除 ejb3.deployer 如果有ejb3.deployer的话

    8、            ejb3.0解压目录/lib复制 ejb3.deployer到 jboss-4.0.3/server/all/deploy

    9、            ejb3.0解压目录/lib复制ejb3-clustered-sfsbcache-service.xml到jboss-4.0.3/server/all/deploy

    10、        ejb3.0解压目录/lib复制ejb3-entity-cache-service.xml到jboss-4.0.3/server/all/deploy

    11、        ejb3.0解压目录/lib复制ejb3-interceptors-aop.xml到jboss-4.0.3/server/all/deploy

    12、        ejb3.0解压目录/lib复制 jboss-aop-jdk50.deployer到jboss-4.0.3/server/all/deploy

    13、        ejb3.0解压目录/lib复制 jboss-remoting.jar到jboss-4.0.3/server/all/lib

    14、        ejb3.0解压目录/lib复制 jboss-serialization.jar到jboss-4.0.3/server/all/lib

    15、        ejb3.0解压目录/lib复制 jboss-j2ee.jar到jboss-4.0.3/server/all/lib

    16、        ejb3.0解压目录/lib复制 hibernate3.jar到jboss-4.0.3/server/all/lib

    17、        ejb3.0解压目录/lib复制 hibernate-annotations.jar到jboss-4.0.3/server/all/lib

    18、        ejb3.0解压目录/lib复制 hibernate-entitymanager.jar到jboss-4.0.3/server/all/lib

    19、        ejb3.0解压目录/lib复制 ejb3-persistence.jar到jboss-4.0.3/server/all/lib

    20、        ejb3.0解压目录/lib复制 javassist.jar到jboss-4.0.3/server/all/lib

    运行jboss4.03使用命令: run.bat -c all

    最新回复(0)