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.   

    --------------------------------------------------------------------------------Name               Enterprise Wizard for JBoss and JBuilder 
    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.               
      

  2.   

    JBoss3.2.3可能会出错使用3.08-tomcat4.124这个版本的
      

  3.   

    照这个做吧:http://tech.ccidnet.com/pub/disp/Article?columnID=303&articleID=53946&pageNO=1^_^
      

  4.   

    为什么我装完,运行run.bat,访问http://localhost:8080时出现以下错误HTTP Status 500 - No Context configured to process this request--------------------------------------------------------------------------------type Status reportmessage No Context configured to process this requestdescription The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.
    --------------------------------------------------------------------------------Apache Tomcat/4.1.29
      

  5.   

    为什么我装完,运行run.bat,访问http://localhost:8080时出现以下错误老大你已为你用的是RESIN 或是TOMCAT ,它会把下面的文件或是子目录列出来,JBOSS 或是WEBLOGIC 都不会的,你要写上正确的路径和文件名, 除非自己在WEB.XML中指定你的INDEX.JSP所对的文件^_^