jboss

win2k server/jdk1.4/eclipse3.0/jboss4.0/lomboz3.0.1

1.lomboz官方下载
  http://download.forge.objectweb.org/lomboz/lomboz.301.zip
2jboss4.0官方下载
  http://prdownloads.sourceforge.net/jboss/jboss-4.0.0.zip?download

配置过程:
1把eclipse的jre设置为本机的jdk/bin

2.设置lomboz的jdk tools.jar的目录。这里我就不在多讲了,很多文章里面都有介绍。

3 lomboz ->server definitions ->properties  

因为使用的jboss 4.0.0 服务器不在 lomboz 默认服务器之列,所以需要自己建立一个jboss400.server 文件。 先把下面的jboss400.server 文件复制到lomboz目录下的 com.objectlearn.jdt.j2ee_3.0.1\servers 目录(如果你是把lomboz直接安装在eclipse的plugins目录中,这个子目录就是“eclipse安装目录\plugins\com.objectlearn.jdt.j2ee_3.0.1\servers”;如果你是采用links方式安装lomboz的,那么这个子目录就是“lomboz安装目录\eclipse\plugins\com.objectlearn.jdt.j2ee_3.0.1\servers”)。这个目录下有许多server类型文件,可以把其中认为不需要的文件删除。
<==========jboss400.server=============>



<serverdefinition
     name="jboss 4.0.0"
     ejbmodules="true"
     webmodules="true"
     earmodules="true">
<property id="serverrootdirectory"
    label="application server directory:"
    type="directory"
    default="c:/jboss4" />
<property id="serveraddress"
    label="address:"
    type="string"
    default="127.0.0.1" />
<property id="serverport"
    label="port:"
    type="string"
    default="8080" />
<property id="serverconfig"
    label="server configuration (minimal/default/all):"
    type="string"
    default="default" />
<property id="classpathvariablename"
    label="classpath variable name:"
    type="string"
    default=
e="color: #2a00ff">"jboss400" /> <property id="classpath" label="classpath variable:" type="directory" default="c:/jboss4" /> <serverhome>${serverrootdirectory}</serverhome> <webmodulesdeploydirectory>${serverrootdirectory}/server/${serverconfig}/deploy</webmodulesdeploydirectory> <ejbmodulesdeploydirectory>${serverrootdirectory}/server/${serverconfig}/deploy</ejbmodulesdeploydirectory> <earmodulesdeploydirectory>${serverrootdirectory}/server/${serverconfig}/deploy</earmodulesdeploydirectory> <jndiinitialcontextfactory>org.jnp.interfaces.namingcontextfactory</jndiinitialcontextfactory> <jndiproviderurl>jnp://${serveraddress}:1099</jndiproviderurl> <startclass>org.jboss.main</startclass> <startworkingdirectory>${serverrootdirectory}/bin</startworkingdirectory> <startvmparameters>-djava.endorsed.dirs=${serverrootdirectory}/lib/endorsed</startvmparameters> <startprogramarguments>-c ${serverconfig}</startprogramarguments> <stopclass>org.jboss.shutdown</stopclass> <stopworkingdirectory>${serverrootdirectory}/bin</stopworkingdirectory> <stopvmparameters>-cp {classpathvariablename}/bin/shutdown.jar -djboss.boot.loader.name=shutdown.bat</stopvmparameters> <stopprogramarguments>-s</an>stopprogramarguments> <serverclasspath> <jar type="variable">jdk_tools</jar> <jar type="variable">${classpathvariablename}/bin/run.jar</jar> <jar type="variable">${classpathvariablename}/bin/shutdown.jar</jar> <jar type="variable">${classpathvariablename}/lib/concurrent.jar</jar> <jar type="variable">${classpathvariablename}/lib/dom4j.jar</jar> <jar type="variable">${classpathvariablename}/lib/gnu-regexp.jar</jar> <jar type="variable">${classpathvariablename}/lib/jboss-jmx.jar</jar> <jar type="variable">${classpathvariablename}/lib/jboss-common.jar</jar> <jar type="variable">${classpathvariablename}/lib/jboss-system.jar</jar> <jar type="variable">${classpathvariablename}/lib/endorsed/xercesimpl.jar</jar> <jar type="variable">${classpathvariablename}/lib/endorsed/xml-apis.jar</jar> <jar type="variable">${classpathvaria
blename}/server/${serverconfig}/lib/activation.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/avalon-framework.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/bcel.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/bsh-commands-1.3.0.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/bsh-core-1.3.0.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/bsh-deployer.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/castor-0.9.3.9-xml.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/cglib-full-2.0.1.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/hibernate2.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/hsqldb.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/hsqldb-plugin.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jacorb.jar</jar>
or: #7f0055"><jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/javax.servlet.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/javax.servlet.jsp.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jaxr-client.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-common-jdbc-wrapper.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-hibernate.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-iiop.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-j2ee.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-jaxrpc.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-jca.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-jsr77.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-management.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-monitoring.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-saaj.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jbossmq.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jbosssx.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jnpserver.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jpl-pattern.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jpl-util.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-transaction.jar</jar> </serverclasspath> <clientclasspath> <jar type="variable">${classpathvariablename}/client/jboss-j2ee.jar</jar> <jar type="variable">${classpathvariablename}/client/jnp-client.jar</jar> <jar type="variable
olor: #2a00ff">">${classpathvariablename}/client/jboss-client.jar</jar> <jar type="variable">${classpathvariablename}/client/jboss-common-client.jar</jar> <jar type="variable">${classpathvariablename}/client/jbosssx-client.jar</jar> <jar type="variable">${classpathvariablename}/client/log4j.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jnpserver.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/javax.servlet.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/javax.servlet.jsp.jar</jar> </clientclasspath> <projectclasspath> <jar type="variable">jdk_tools</jar> <jar type="variable">${classpathvariablename}/bin/run.jar</jar> <jar type="variable">${classpathvariablename}/bin/shutdown.jar</jar> <jar type="variable">${classpathvariablename}/client/jboss-j2ee.jar</jar> <jar type="variable">${classpathvariablename}/lib/jboss-system.jar<;/jar> <jar type="variable">${classpathvariablename}/lib/concurrent.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jnpserver.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jpl-pattern.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jpl-util.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/jboss-transaction.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/bcel.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/javax.servlet.jar</jar> <jar type="variable">${classpathvariablename}/server/${serverconfig}/lib/javax.servlet.jsp.jar</jar> </projectclasspath> </serverdefinition>
然后重新启动eclipse,在server definitions 里面就可以选择jboss4.0做web server了

你可能感兴趣的:(jboss)