站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Eclipse 专题Eclipse3.0下配置JBoss3.2.5(与其它的有点不同)

Eclipse3.0下配置JBoss3.2.5(与其它的有点不同)

摘要: Eclipse3.0下配置JBoss3.2.5(与其它的有点不同)
以下是网上的:
1、已经安装了lomboz3.0.1插件
2、在插件目录:eclipse\plugins\com.objectlearn.jdt.j2ee_3.0.1\servers
需要添加一个文件jboss325.server,内容为:

name="JBOSS 3.2.5"
ejbModules="true"
webModules="true"
earModules="true">
label="Application Server Directory:"
type="directory"
default="F:/jboss-3.2.5" />
label="Address:"
type="string"
default="127.0.0.1" />
label="Port:"
type="string"
default="8080" />
label="Server Configuration (minimal/default/all):"
type="string"
default="default" />
label="Classpath Variable Name:"
type="string"
default="JBOSS325" />
label="Classpath Variable:"
type="directory"
default="F:/jboss-3.2.5" />
$
$/server/$/deploy
$/server/$/deploy
$/server/$/deploy
org.jnp.interfaces.NamingContextFactory
jnp://$:1099
org.jboss.Main
$/bin

-c $
org.jboss.Shutdown
$/bin

-S

JDK_TOOLS
$/bin/run.jar
$/bin/shutdown.jar
$/client/jboss-j2ee.jar
$/lib/concurrent.jar
$/lib/jboss-system.jar
$/lib/dom4j.jar
$/lib/xercesImpl.jar
$/lib/xml-apis.jar
$/lib/gnu-regexp.jar
$/lib/getopt.jar
$/server/$/deploy/jbossweb-tomcat50.sar/servlet-api.jar
$/server/$/lib/bcel.jar
$/server/$/lib/jboss.jar
$/server/$/lib/jboss-transaction.jar
$/server/$/lib/jnpserver.jar
$/server/$/lib/jpl-pattern.jar
$/server/$/lib/jpl-util.jar


$/client/jboss-j2ee.jar
$/client/jboss-client.jar
$/client/jboss-common-client.jar
$/client/jboss-jaas.jar
$/client/jbosssx-client.jar
$/client/jnet.jar
$/client/jnp-client.jar
$/client/log4j.jar
$/server/default/lib/jnpserver.jar


JDK_TOOLS
$/bin/run.jar
$/bin/shutdown.jar
$/client/jboss-j2ee.jar
$/lib/concurrent.jar
$/lib/jboss-system.jar
$/server/$/deploy/jbossweb-tomcat50.sar/servlet-api.jar
$/server/$/lib/bcel.jar
$/server/$/lib/jboss.jar
$/server/$/lib/jboss-transaction.jar
$/server/$/lib/jnpserver.jar
$/server/$/lib/jpl-pattern.jar
$/server/$/lib/jpl-util.jar

















3Eclipse下使用菜单:Window->Preferences。
2.1、增加一个Classpath Variables,方法是Java->Build Path->Classpath Variables。增加一个JDK_TOOLS变量,目录指向%java_home%//lib/tools.jar

2.2、设置SERVER。方法是Lomboz->Server Definitions,将右边的Server types选中JOBSS 3.2.5。选择正确的Application Server Directory和Classpath Variable为JBoss的安装目录


而我的配置为:
只改动

JDK_TOOLS
$/bin/run.jar
$/bin/shutdown.jar
$/client/jboss-j2ee.jar
$/lib/concurrent.jar
$/lib/jboss-system.jar
$/lib/dom4j.jar
$/lib/xercesImpl.jar
$/lib/xml-apis.jar
$/lib/gnu-regexp.jar
$/lib/getopt.jar
$/server/$/deploy/jbossweb-tomcat50.sar/servlet-api.jar
$/server/$/lib/bcel.jar
$/server/$/lib/jboss.jar
$/server/$/lib/jboss-transaction.jar
$/server/$/lib/jnpserver.jar
$/server/$/lib/jpl-pattern.jar
$/server/$/lib/jpl-util.jar


$/client/jboss-j2ee.jar
$/client/jboss-client.jar
$/client/jboss-common-client.jar
$/client/jboss-jaas.jar
$/client/jbosssx-client.jar
$/client/jnet.jar
$/client/jnp-client.jar
$/client/log4j.jar
$/server/default/lib/jnpserver.jar


JDK_TOOLS
$/bin/run.jar
$/bin/shutdown.jar
$/client/jboss-j2ee.jar
$/lib/concurrent.jar
$/lib/jboss-system.jar
$/server/$/deploy/jbossweb-tomcat50.sar/servlet-api.jar
$/server/$/lib/bcel.jar
$/server/$/lib/jboss.jar
$/server/$/lib/jboss-transaction.jar
$/server/$/lib/jnpserver.jar
$/server/$/lib/jpl-pattern.jar
$/server/$/lib/jpl-util.jar

这样就可行

还有你的window->references->java->build path->classpath variables
要有一个变量叫JBOSS325,如果原来有JBOSS32X是不行的.把它删了或改动都可以.

↑返回目录
前一篇: Eclipse开发平台编程溯源寻根
后一篇: 用Eclipse平台进行C/C++开发