Java

本类阅读TOP10

·使用MyEclipse开发Struts框架的Hello World!(录像1)
·hibernate配置笔记
·AOP编程入门--Java篇
·linux下Tomcat 5.0.20 与 Apache 2 安装/集成/配置
·在win2003下整合了整合Tomcat5.5+ apache_2.0.53+ mod_jk_2.0.47.dll
·构建Linux下IDE环境--Eclipse篇
·Jsp 连接 mySQL、Oracle 数据库备忘(Windows平台)
·ASP、JSP、PHP 三种技术比较
·Tomcat5.5.9的安装配置
·AWT GUI 设计笔记(二)

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
JBoss集成ColdFusion和Jetspeed

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

 

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




相关文章

相关软件