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>
    

    就可以运行。

  • 相关阅读:
    hdu 5056 Boring count (窗体滑动)
    【JEECG技术博文】JEECG表单配置-树形表单
    EA类图与代码同步
    简单算法汇总
    jQuery.outerWidth() 函数具体解释
    省市县三级联动的SQL
    从LayoutInflater分析XML布局解析成View的树形结构的过程
    holodesk表存储-列重复值太多,导致存储占用空间翻很多倍
    星环TDH大数据平台,数据误删除之后,恢复办法
    IDEA类和方法注释模板设置(非常详细)
  • 原文地址:https://www.cnblogs.com/AloneSword/p/3217439.html
Copyright © 2011-2022 走看看