Jboss 安装配置
1.下载安装Jboss 3.2.2以上版本(本教程实例以Jboss 3.2.2为例,该版本稳定而且快速,
推荐),windows版本是JBoss322.zip,下载后解压就可以执行运行bin/run.bat。
2. 在Jboss/Docs/JCA 下有各个数据库的配置文件,不同Jboss 版本这个名称不一样,
Jboss 3.0 是mysql-service.xml,而Jboss 3.2.2 是mysql-ds.xml,将这个配置文件拷贝到
server/default/deploy下。
3. 配置mysql的JDBC驱动,有两步:
在http://mysql.linuxforum.net/下载mySQL的Java JDBC驱动:MySQL Connector/J 。
将下载后的mysql-connector-java-XXXX.jar 拷贝到JBoss的server/default/lib中。
以后,根据项目要求修改mysql的配置文件server/default/lib/mysql-ds.xml。
如果你需要JBoss连接一个叫estore的数据库,配置如下:
<local-tx-datasource>
<jndi-name>EstoreDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/estore</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>banq</user-name>
<password>12345</password>
</local-tx-datasource>
很重要的是需要记住JNDI名称EstoreDS。在项目开发中需要使用到。 Jbuilder+JBoss开发环境配置3.1 配置JBuilder 9支持JBoss Application Server:
JB9 缺省只支持几个有限的J2EE应用服务器,并不支持JBoss,因此,为了能在JBoss
环境下方法有效地开发J2EE,需要配置JB9支持JBoss环境开发。
.在http://sourceforge.net/projects/jboss-opentool/下载软件JBoss OpenTool,解压到Jbuilder
的lib/ext目录下。重启动Jbuilder。
.启动JBuilder.用Tools/Configure Servers, 选择JBoss 3x(灰色)。 激活Enable Server
checkbox.,选择你的Jboss安装目录. 如 C:\jboss-3.2.2。
选择Custom tab,也是设置JBoss 的安装目录 如C:\jboss-3.2.2;Tomcat_4x 选择Jbuilder
中的Tomcat 4.0,如:Jbuilder9/thirdparty/Jakarta-tomcat-4.0.6-LE-jdk14;
JBoss configuration to use为default,这是JBoss的标准运行配置, all为集群配置。
确定ok,使用JB7的用户可能在非1024x768 下看不到ok键,这是JBuilder 的bug。
现在,你的JBuilder 已经支持JBoss 3.X服务器了。
3.2 在自己的项目中使用JBoss服务器
前面已经配置了JBuilder 支持JBoss服务器,在自己的项目中使用该功能还需要配置,
步骤如下:
选择目的project properties 项目属性(或default porject 属性),选择Server,选中Modular
services provided by different servers
选中Deployment,下拉Server 菜单,会出现Jboss 3.x,选择它。
选中EJB ,同上操作,其它service也如果有非None就逐个选择。
确认后,保存。
通过上述步骤配置,你的项目应用就支持JBoss 这个J2EE 应用服务器,可以方便直观
地开发EJB功能,通过下列方式检验是否配置成功。
当选择File à new 时,选择Enterprise,会发现以前灰色图标的EJB系列图标激活,表
示你的Jbuilder 已经支持开发EJB了。
1.下载安装Jboss 3.2.2以上版本(本教程实例以Jboss 3.2.2为例,该版本稳定而且快速,
推荐),windows版本是JBoss322.zip,下载后解压就可以执行运行bin/run.bat。
2. 在Jboss/Docs/JCA 下有各个数据库的配置文件,不同Jboss 版本这个名称不一样,
Jboss 3.0 是mysql-service.xml,而Jboss 3.2.2 是mysql-ds.xml,将这个配置文件拷贝到
server/default/deploy下。
3. 配置mysql的JDBC驱动,有两步:
在http://mysql.linuxforum.net/下载mySQL的Java JDBC驱动:MySQL Connector/J 。
将下载后的mysql-connector-java-XXXX.jar 拷贝到JBoss的server/default/lib中。
以后,根据项目要求修改mysql的配置文件server/default/lib/mysql-ds.xml。
如果你需要JBoss连接一个叫estore的数据库,配置如下:
<local-tx-datasource>
<jndi-name>EstoreDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/estore</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>banq</user-name>
<password>12345</password>
</local-tx-datasource>
很重要的是需要记住JNDI名称EstoreDS。在项目开发中需要使用到。 Jbuilder+JBoss开发环境配置3.1 配置JBuilder 9支持JBoss Application Server:
JB9 缺省只支持几个有限的J2EE应用服务器,并不支持JBoss,因此,为了能在JBoss
环境下方法有效地开发J2EE,需要配置JB9支持JBoss环境开发。
.在http://sourceforge.net/projects/jboss-opentool/下载软件JBoss OpenTool,解压到Jbuilder
的lib/ext目录下。重启动Jbuilder。
.启动JBuilder.用Tools/Configure Servers, 选择JBoss 3x(灰色)。 激活Enable Server
checkbox.,选择你的Jboss安装目录. 如 C:\jboss-3.2.2。
选择Custom tab,也是设置JBoss 的安装目录 如C:\jboss-3.2.2;Tomcat_4x 选择Jbuilder
中的Tomcat 4.0,如:Jbuilder9/thirdparty/Jakarta-tomcat-4.0.6-LE-jdk14;
JBoss configuration to use为default,这是JBoss的标准运行配置, all为集群配置。
确定ok,使用JB7的用户可能在非1024x768 下看不到ok键,这是JBuilder 的bug。
现在,你的JBuilder 已经支持JBoss 3.X服务器了。
3.2 在自己的项目中使用JBoss服务器
前面已经配置了JBuilder 支持JBoss服务器,在自己的项目中使用该功能还需要配置,
步骤如下:
选择目的project properties 项目属性(或default porject 属性),选择Server,选中Modular
services provided by different servers
选中Deployment,下拉Server 菜单,会出现Jboss 3.x,选择它。
选中EJB ,同上操作,其它service也如果有非None就逐个选择。
确认后,保存。
通过上述步骤配置,你的项目应用就支持JBoss 这个J2EE 应用服务器,可以方便直观
地开发EJB功能,通过下列方式检验是否配置成功。
当选择File à new 时,选择Enterprise,会发现以前灰色图标的EJB系列图标激活,表
示你的Jbuilder 已经支持开发EJB了。
解决方案 »
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- 越来越郁闷啊
- 加了过滤器,字符编码为UTF-8,为什么中文不能正常显示?
- 我偏要把标记为守护线程或用户线程的语句放在线程启动后,who 能解释下结果。
- 已经添加activation.jar,为什么还会出错呢?请高手指点!!!!!!!
- spring mvc + mybatis 事务不回滚
- 高分求救:struts与工作流可以结合吗?业务逻辑中的流程控制可以采用工作流开发吗?
- 问有关Java2的编译问题?
- 在RMI-IIOP中怎么实现类似Corba中的Callback功能
- 为什么我得j2ee -verbose启动不了服务器阿???
- 我的第一个ejb搞不定啊!??!帮帮我!(从servlet调用ejb有问题)
- 请给出发送带附件邮件的java代码,万分感谢!!!!
Description OpenTool Deployement Wizard for the JBoss Application Server
Copyright Copyright (c) 2003
Author Brent Thompson
Version 3.1.5
Compatibility JBuilder 9, JBoss 3x
Url http://www.javabitsnbytes.com
--------------------------------------------------------------------------------Installation InstructionsCopy the EntWizard_JBoss3x_JB9_v3-1-5.jar file to the Jbuilder9 lib/ext directory. I have re-written this tool for JB9 using the latestopentools API. Most of the classes have been deprecated since JB8/JB7 so this version for JB9 is totally up to date.Copy JBossDTD.jar to the JBuilder9 lib/ext directory. This opentool will allow you to select your dtd's based on the version ofJBoss you are running. After it is installed, Go to the Tools menu and select JBossDTD. Choose your DTD version, select OK andthis will save your configuration. Then you can setup the server as explained below. I included the DTD version 4 in the setup, however I am still working on EntWizard for JBoss 4x so I can't say if everything is working. Start JBuilder.Under Tools/Configure Servers, select JBossApplicationServer3x and select the Enable Server checkbox.Select the Home Directory of the JBossApplicationServer3x distribution. For example C:\jboss-3.2.1_tomcat-4.1.24Next select the Custom tab and after accepting the license agreement select the directory where the jasper-compiler.jar and jasper-runtime.jar files are located on your system.While still on the Custom tab click OK.Restart JBuilder.If on restarting JBuilder, JBoss is not selected as your appserver, go to Project Properties and select the Server tab. Choose JBossApplicationServer3x and click ok.Under required libraries tab, select "JBossApplicationServer3x servlet", and "Ant" to add to the required libraries path. You then have to create a new library containing the j2ee.jar file from you java JDK you have installed. NOTES1) 3.1.1 Fixes bug with <destination-jndi-name> tag for MDBs.2) 3.1.2 Fixes bug "internal compiler error: java.lang.NullpointerException" when using struts. 3) 3.1.3 Fixes CMP relationship handling. Fixes security-domain properties for jboss.xml4) 3.1.4 Fixes security-proxy tag and jboss properties values.5)3.1.5 Fixes bug with many-to-one relationship. Adds <mdb-user> <mdb-password> <mdb-client-id> for use with MDB.
--------------------------------------------------------------------------------Apache Tomcat/4.1.29