zoukankan      html  css  js  c++  java
  • jboss 7部署cas3.4.11

    国内私募机构九鼎控股打造APP,来就送 20元现金领取地址:http://jdb.jiudingcapital.com/phone.html
    内部邀请码:C8E245J (不写邀请码,没有现金送)
    国内私募机构九鼎控股打造,九鼎投资是在全国股份转让系统挂牌的公众公司,股票代码为430719,为“中国PE第一股”,市值超1000亿元。 
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------

    jboss 7 部署 cas
    cas 版本为 3.4.11
    另外新的cas,做 jboss 集群时不用在 web.xml 配置 session 复制,即不需要在 web.xml 中增加:

    <distributable />

    主要参考:http://www.liferay.com/community/wiki/-/wiki/Main/JBoss+AS7+tips#section-JBoss+AS7+tips-Installing+cas-web

    Even default cas.war, built from the source, can not be deployed to the Jboss AS7 without further modifications. Here are the steps how to deploy our cas-web plugin:

    • deploy cas-web. Deployment will fail (Connection cannot be null when 'hibernate.dialect' not set). Stop JBoss server.
    • go to cas web exploded folder: /bundles/jboss-7.0.2/standalone/deployments/cas-web.war
    • Locate: cas-web.war/WEB-INF/lib/cas-server-core-3.3.5.jar. Modify it: remove /META-INF/persistence.xml from it
    • Create WEB-INF/classes/META-INF/persistence.xml with content displayed bellow.
    • Delete cas-web.war/WEB-INF/lib/dom4j-1.6.1.jar
    • Start jboss as7. Wait until everything is up. Trigger deployment of cas-web by creating file:cas-web.war.dodeploy in JBoss standalone deployment folder.

    The content of persistence.xml file is:

    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
            version="2.0">
    
        <persistence-unit name="CasPersistence" transaction-type="RESOURCE_LOCAL">
              <properties>
                <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
              </properties>
        </persistence-unit>
    </persistence>
    

    Note: newer versions of cas.war already has the persistence.xml extracted from the core jar. Moreover, newever persistence.xml contains some additional definitions, be sure not to delete them when adding 'hibernate.dialect' property.

    其中persistence.xml文件可以不删除,添加:

    <properties>
                <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
              </properties>
    

    就可以运行。

  • 相关阅读:
    获取文件夹下的所有文件名,并修改某些文件名 Alec
    生成XML文件,并保存到本地文件 Alec
    按Enter键起到Tab键的效果 Alec
    网站底部浮动js Alec
    NET Framework4.0注册 Alec
    从FTP上下载文件到本地 Alec
    生成txt日志操作文件 Alec
    不使用第三个变量,实现两个变量值的交换 Alec
    生成指定位数的回文素数 Alec
    单击gridview某一列弹出详细信息 Alec
  • 原文地址:https://www.cnblogs.com/AloneSword/p/3217439.html
Copyright © 2011-2022 走看看