jboss 7部署cas 3.4.11
2362 ワード
jboss 7はcas casバージョンを3.4.11の新しいcasとして展開し、jbossクラスタを作る時はweb.xml配置sessionでコピーしない、すなわちweb.xmlで追加する必要がない:
Even default cas.war,built from the source,can not be deployed to the Jboss AS 7 without further modifications.Here are the steps how to deploy our cas-web plugin: deploy cas-web.Deployment will fail.Stop JBoss server. go to cas web exploded folder: /bundles/jboss-70.0.2/standowne/deployments/cas-web.war Locate: cas-web.war/WEB-INF/lib/cas-server-core-33.5.jar. Modify it:remove /META-INF/persistence.xml from it Create WEB-INF/clases/META-INF/persistence.xml with content displayed bellow. Delete cas-web.war/WEB-INF/lib/dom 4 j-1.6.1.jar Start jboss as 7.Wait until everrything is up.Trigger deployment of cas-web by creating file:cas-web.war.dodeploy in JBoss standarlone deployment folder. The content of persistence.xml file is:
persistence.xmlファイルは削除せずに追加できます。
<
distributable
/>
主な参考:http://www.liferay.com/community/wiki/-/wiki/Main/JBoss+AS 7+tipsアクションJBoss+AS 7+tips-Inntalling+cas-webEven default cas.war,built from the source,can not be deployed to the Jboss AS 7 without further modifications.Here are the steps how to deploy our cas-web plugin:
<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 extraced 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>
実行できます。