When I gotten out a lot of articles on the construction of J2EE's development platform, I didn't have this problem. No, look at the official tutorial of people! First, want to do things, the tools needed by the prostitute: Sun JDK (http://java.sun.com), Eclipse (http://www.eclipse.org), Lomboz3.01 (http: //download.us.forge.ObjectWeb.org/lomboz/lomboz.301.zip) JBoss3.2.5 (http://unc.dl.sourceforge.net/sourceforge/jboss/jboss-3.2.5.zip) You can Go to its homepage to find (http://www.jboss.org), (preferably use 3.1x or previous version, because there is no high version of Server file in Lomboz3.01, configured more trouble, I am looking for A jboss325.server). Second, the journey of a thousand miles begins with the next steps to start installing these tools: 1. Install the JDK (individual recommendation) Do not have spaces in the path installed, leveraged problems in future use of other development tools such as WebLogic.) I installed D : /java/jdk1.5.02, install Eclipse, directly decompressed, unzip the components you need to decompress to the corresponding directory (3.01 has Chinese package, convenient to think that e-reading is more annoying friends to see help). 3, extract Lomboz3.01 to Eclipse / plugins4, decompress the JBoss3.25 to D D, D: /JBoss-3.2.5 (That disk) to / bin Click Run.bat to start, open http: // localhost : 8080 Test. 5. Start Eclipse, if you find the Lomboz icon, OK. I didn't find it back to retrieve the Lomboz (not described here). In Window - Custom Trying - Shortcut - Submenu - New, you can choose to select Lomboz J2EE Wizards, easy us to create projects and some modules: 6, open the window - Preferences - Select Lomboz, put JDK Tools JAR's path is set to the absolute path (I am here) d: /java/jdk1.5.0/lib/tools.jar, as shown: Here we are in place with the path to the new project, click to expand the Java - Build project , Change the input of the source and the input folder to the "folder" mode, so we can get the / bin and / src two folders to place the compiled file and source code. As shown in Figure: 7, expand Lomboz - Server Definitions, select Server Typys to jboss3.2.5 (to copy jboss325.server to Eclipse / plugins / com.objectlearn.jdt.j2ee_3.0.1 / servers) jboss325.server
$ {serverRootDirectory} serverHome> $ {serverRootDirectory} / server / $ {serverConfig} / deploy webModulesDeployDirectory> $ {serverRootDirectory} / server / $ {serverConfig} / deploy ejbmodulesDeploydirectory> $ {serverrootdirectory} / server / $ {ServerConfig} / deploy earModulesDeployDirectory> org.jnp.interfaces.NamingContextFactory jndiInitialContextFactory> jnp: // $ {serverAddress}: 1099 jndiProviderUrl> org.jboss.Main < / startclass>
$ {ServerRootDirectory} / bin startWorkingDirectory> startVmParameters> -c $ {serverConfig} startProgramArguments> org.jboss.Shutdown stopClass> $ {serverRootDirectory} / bin stopWorkingDirectory> stopVmParameters> -S stopProgramArguments> JDK_TOOLS jar> $ {classPathVariableName} / Bin / run.jar jar> $ {classpathvariablename} /bin/shutdown.jar jar> $ {classpathvariablename} / client / jboss-j2ee. Jar jar> $ {classpathvariablename} /lib/concurrent.jar jar> $ {classpathvariablename} /lib/jboss-system.jar jar > $ {classpathvariablename} /lib/dom4j.jar jar> $ {classpathvariablename} /lib/xercesimpl.jar jar> $ {classpathvariablename} /lib/xml-apis.jar jar> $ {classpathvariab Lename} /lib/gnu-regExp.jar jar> $ {classpathvariablename} /lib/getopt.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /deploy/jbossweb-tomcat50.sar/servlet-api.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/bcel.jar Jar>
$ {classpathvariablename} / server / $ {serverconfig} /lib/jboss.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/jboss-transaction.jar JAR> $ {classpathvariablename} / server / $ {serverconfig} /lib/jnpserver.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /LIB/JPL-PATTERN.JAR jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/jpl-util.jar jar> serverclasspath> $ {classpathvariablename} /client/jboss-j2ee.jar jar> $ {classpathvariablename} /client/jboss-client.jar jar> $ {classpathvariablename} /client/jboss-common-client.jar jar> $ {classpathvariablename} /client/jboss-jaas.jar jar> $ {classpathvariablename} /client/jbosssx-client.jar jar> $ {classpathvariablename} /client/jnet.jar jar> $ {classpathvariablename} /client/log4j.jar jar> $ {classpathvariablename} /server/default/lib/jnpserver.jar jar> clientclasspath> jdk_tools jar> $ {classpathvariablename} /bin/run.jar jar>
$ {classpathvariablename} /bin/shutdown.jar jar> $ {classpathvariablename} /client/jboss-j2ee.jar jar> $ {classpathvariablename} /LIB/concurrent.jar jar> $ {classpathvariablename} /lib/jboss-system.jar jar> $ {classpathvariablename} / server / $ {ServerConfig} /Deploy/jbossweb-tomcat50.sar/servlet-api.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/bcel.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/jboss.jar jar> $ {classpathvariablename} / server / $ {serverconfig} / lib /jboss-transaction.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/jnpserver.jar jar> $ {classpathvariablename } / server / $ {serverconfig} /lib/jpl-pattern.jar jar> $ {classpathvariablename} / server / $ {serverconfig} /lib/jpl-util.jar jar > projectclasspath> Web> webmodule> < Deploy /> ejbmodule> ej> admin <> admin intoolpath> serverdefinition> jboss settings,
8. Click "Apply". determine.
OK, theory now we have set up J2EE's platform. Below we will test "Hello World" test.