一、"> Java资源网 JBoss集成ColdFusion和Jetspeed
  Java资源网

| JAVA基础 | 环境配置 | JDBC | 线程技术 | Socket编程 | JavaMail | JAVA与XML | 设计模式 | 技术新闻 | Java认证 | 程序人生 软件下载
| JSP&Servlet | Spring | Struts | Hibernate | JBuilder | Eclipse | WebService | EJB技术 | J2ME开发 | 应用服务器 | JXTA | Ajax
Articles search文章搜索
   关键字:
   类 别:
       
New download 最新下载
· [组件]HTML Parser 1.5
· [教程]WebSphere Studio应用教程
· [组件]JDom 1.0
· [工具]Junit3.8.1
· [教程]EJB编程及J2EE系统架构和设计
· [教程]EJB教程
· [教程]J2EE Tutorial中文版
· [教程]Java编程思想2(英文)
· [教程]java编程思想(完整版)
· [教程]Java网络编程
New articles 最新文章
· 设计移动 Web 服务
· 解析XML的时候完全忽略DTD
· 理解XML Schema XML Schema 初步
· 标签库的深入研究
· 提升JSP应用程序的七大绝招
· 如何使用JDOM对XML文件进行操作
· 处理XML字符串中特殊字符
· 利用Digester把XML转换成为Java对象
· 使用WebService 和RMI远程协作
· 使用Axis开发Web Service程序
Articles top 热门文章
· Eclipse基础--plugin插件安装(6644)
· eclipse+tomcat+lomboz的安装配置说明(4774)
· Java程序员就业前景(4584)
· Windows下JAVA环境变量的设置祥解(3788)
· Tomcat下JSP、Servlet和JavaBean环境的配置(3716)
· 使用links方式安装Eclipse插件(3698)
· 一个老程序员的心理话(3533)
· linux下jdk的安装与配置(3459)
· 初学者入门:Structs中基本配置入门(3334)
· Eclipse 运行命令行参数大全(3084)
您的位置:首页>>应用服务器>>JBoss集成ColdFusion和Jetspeed
JBoss集成ColdFusion和Jetspeed
2005-07-30   来源: huaiyuren  作者: huaiyuren

一、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

  --相关文章--
· 开源技术:tomcat5.0下配置ssl (2007-04-17)
· 开源技术基础:TOMCAT的用法 (2007-04-17)
· 开源技术之Tomcat数据源配置总结 (2007-04-17)
· 实例讲解配置之——TOMCAT集群配置 (2007-04-17)
· 实例讲解Apache+tomcat+ssl配置 (2007-04-17)
· 如何同时启动多个Tomcat服务器 (2007-04-17)

版权所有©2005-2006 JAVA资源网 渝ICP备05007591号 虚拟主机 | 关于我们 | 联系方式 | 广告业务 | 网站地图 | 友情链接