CSDN博客

img huaiyuren

JBoss集成ColdFusion和Jetspeed

发表于2004/2/25 10:33:00  685人阅读

 

JBoss集成ColdFusionJetspeed

 

一、JBoss集成ColdFusion

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

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

         <application>                            
             <display-name>Cfusion on JBoss</display-name>                            
                  <module>                            
                       <web>                            
                         <web-uri>cfusion.war</web-uri>                            
                         <contextRoot>/cfusion</contextRoot>                            
                       </web>                            
                  </module>                             
           </application>

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

         <application>                            
             <display-name>CFIDE on JBoss</display-name>                            
                  <module>                            
                       <web>                            
                         <web-uri>CFIDE.war</web-uri>                            
                         <contextRoot>/CFIDE</contextRoot>                            
                       </web>                            
                  </module>                             
           </application>

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

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

rem Set a few variables.

set CF_HOME=D:/jboss-3.0.8/server/default/deploy/cfusion.ear/cfusion.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/

集成JetspeedJboss的处理如下:

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

 

<application>                            

 <display-name>Jetspeed on JBoss</display-name>                            

  <module>                            

   <web>                             

     <web-uri>jetspeed.war</web-uri>                            

     <contextRoot>/jetspeed</contextRoot>                            

   </web>                            

  </module>                            

</application>                           

 

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

0 0

相关博文

我的热门文章

img
取 消
img