Configuring JBoss 4.0.1 in Lomboz
Last Update:2017-02-28
Source: Internet
Author: User
This article is for Eclipse fast-start EJB-1. Lomboz + jboss-ide Configuration 1 is a supplement to the article. In that article, jboss400.server This configuration is for JBoss 4.0.0, and if you are using JBoss 4.0.1, you need to use the following configuration file:
Jboss401.server
<serverdefinition name= "JBOSS 4.0.1" ejbmodules= "true" webmodules= "true" earmodules= "true" ><property id= " Serverrootdirectory "label=" Application Server directory: "type= directory" default= "i:/software/jboss-4.0.1"/> <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=" JBOSS4.0.1 "/><property id=" ClassPath "label=" ClassPath Variable: "Type=" Directory "default=" i:/software/jboss-4.0.1 "/><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>-dprogram.name=run.bat-djava.endorsed.dirs=${ serverrootdirectory}/bin/.. /lib/endorsed-xms128m-xmx512m</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</ StopprogramaRguments><serverclasspath><jar type= "variable" >jdk_tools</jar><jar type= "variable" >${ Classpathvariablename}/bin/run.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" >${classpathvariablename}/ Client/jbossall-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/default/lib/jnpserver.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}/ Server/${serverconfig}/lib/javax.servlet.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></projectclasspath><admintool><web ><deploy/><undeploy/></web><ejb><deploy/><undeploy/></ejb><ear ><deploy/><undeploy/><webmodule><deploy/><undeploy/></webModule>< Ejbmodule><deploy/><undeploy/></ejbmodule></ear></admintool><admintoolpath ></adminToolPath></serverDefinition>
You need to change the bold italic portion of the file according to your own JBoss 4.0.1 installation path, or you can change it in the Lomboz configuration in Eclipse. Tested successfully in JBoss 4.0.1 and JBoss 4.0.1sp1.