jboss 7部署cas3.4.11

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

就可以运行。

目录
相关文章
|
前端开发 Java 应用服务中间件
Day 17: 使用 JBoss Forge 和 OpenShift 构建部署 JAVA EE 6 应用
今天的“30天学习30种新技术”挑战,我决定学习一下JBoss Forge。JBoss Forge是一个创建基于Maven的Java应用的开发工具,它可以帮助Java开发者快速地开发web应用。本文中,我们将使用JBoss Forge开发一个简单的待办应用,可以为基于Angularjs的前端提供服务。这一切都可以使用JBoss Forge完成。让我们开始吧。
203 0
Day 17: 使用 JBoss Forge 和 OpenShift 构建部署 JAVA EE 6 应用
|
应用服务中间件 容器
Angular 自动编译部署 Tomcat Jboss
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.
1364 0
|
关系型数据库 MySQL 应用服务中间件
|
Java 应用服务中间件 数据格式
|
监控 应用服务中间件 前端开发
Jboss通过文件系统部署
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/70216887 用户可以将部署内容(war、ear、jar、sar等)放在standalone/deployments目录内,会自动部署到服务器运行时。
918 0
|
Java 应用服务中间件 数据格式
|
Java 测试技术 Linux
linux 下安装配置jboss as7以及部署应用
linux 下安装配置jboss as7以及部署应用 1.测试平台及软件 centos 5.4 jdk-7u5-linux-i586.rpm jboss-as-7.1.1.Final.zip jboss-as-quickstarts-7.
944 0