ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [转载]JBoss集成ColdFusion和Jetspeed

[转载]JBoss集成ColdFusion和Jetspeed

原创 Linux操作系统 作者:dinner1007 时间:2019-03-10 14:21:05 0 删除 编辑
JBoss集成ColdFusion和Jetspeed

一、JBoss集成ColdFusion

1、安装JBoss,我这里的版本时3.0.8。其他版本的配置有一点不同。

2、在{JBoss_home}serverdefaultdeploy下面新建文件夹cfusion.ear。进入该文件夹并且新建文件夹META-INF和cfusion.war。进入文件夹META-INF并新建文件 application.xml。文件内容如下:


Cfusion on JBoss


cfusion.war
/cfusion


3、将Coldfustion MX安装过程针对存在的j2ee server制作的两个WAR files做如下处理:cfusion.war文件全部解压缩到到上一步骤新建的文件cfusion.war中。在{JBoss_home}serverdefaultdeploy下面新建文件夹CFIDE.ear。进入该文件夹并且新建文件夹META-INF和CFIDE.war。进入文件夹META-INF并新建文件 application.xml。文件内容如下:


CFIDE on JBoss


CFIDE.war
/CFIDE


将文件rds.war解压缩到文件夹CFIDE.war中。

4、修改Jboss的启动脚本run.bat文件,增加如下一些环境变量和java运行参数,见下面脚本:

rem Set a few variables.

set CF_HOME=D:jboss-3.0.8serverdefaultdeploycfusion.earcfusion.war

set CF_WEB_INF=%CF_HOME%/WEB-INF

rem Concatenate binary file directories into a single variable.

set CF_SHARED_LIB=%CF_WEB_INF%/cfusion/lib

rem The following variable must be on a single line.

set CF_SHARED_LIBS=%CF_SHARED_LIB%;%CF_SHARED_LIB%/_nti40/bin;

%CF_WEB_INF%/cfusion/jintegra/bin;

%CF_WEB_INF%/WEB-INF/cfusion/jintegra/bin/international

rem Add libraries for binary files to the Windows system path.

set PATH=%PATH%;%CF_SHARED_LIBS%

rem Set JVM options to enable sandbox security (all on one line).

set CF_SECURITY_JVM_OPTIONS=-Djava.security.manager

-Djava.security.policy="%CF_WEB_INF%/cfusion/lib/coldfusion.policy"

-Djava.security.auth.policy="%CF_WEB_INF%/cfusion/lib/neo_jaas.policy"

rem Set JVM options for CORBA. Use if vbjorb.jar is not in

rem your JRE's lib/ext directory.

rem set CF_CORBA_JVM_OPTIONS=-Xbootclasspath/a:"%CF_WEB_INF%/lib/vbjorb.jar"

rem Consolidate JVM options.

rem * Use this line if you've configured CORBA

rem set CF_JVM_OPTIONS=%CF_SECURITY_JVM_OPTIONS% %CF_CORBA_JVM_OPTIONS%

rem * Use this line if you haven't configured CORBA

set CF_JVM_OPTIONS=%CF_SECURITY_JVM_OPTIONS%

rem Populate JAVA_OPTS, which will be used by catalina.bat

rem when starting the JVM.

Set JAVA_OPTS=%CF_JVM_OPTIONS%
-Djava.security.policy="%CF_WEB_INF%/cfusion/lib/coldfusion.policy" -Djava.security.auth.policy="%CF_WEB_INF%/cfusion/lib/neo_jaas.policy"

经过以上四步骤,ColdFusion就集成到Jboss中了。启动JBoss通过访问如下地址即可

http://localhost:8080/cfusion/CFIDE/administrator/

集成Jetspeed到Jboss的处理如下:

1. Create a directory called jetspeed.ear in the $JBOSS_HOME/server/default/deploy directory

2. Add a directory called META-INF to the jetspeed.ear folder, in the META-INF folder put the following application.xml

Jetspeed on JBoss

jetspeed.war

/jetspeed

3. In the jetspeed.ear directory : unzip the jetspeed.war file into a directory called jetspeed.war (explode the war file)

4. Remove the following files from $JBOSS_HOME/server/default/lib/ : castor.jar, hsqldb.jar, hsqldb-plugin.jar

5. Remove the following file from $JBOSS_HOME/server/default/deploy/ : hsqldb-service.xml

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/374079/viewspace-131946/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-08-23

  • 博文量
    1714
  • 访问量
    1477709