The poor builds a J2EE development platform

xiaoxiao2021-03-06  98

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} $ {serverRootDirectory} / server / $ {serverConfig} / deploy $ {serverRootDirectory} / server / $ {serverConfig} / deploy $ {serverrootdirectory} / server / $ {ServerConfig} / deploy org.jnp.interfaces.NamingContextFactory jnp: // $ {serverAddress}: 1099 org.jboss.Main < / startclass>

$ {ServerRootDirectory} / bin -c $ {serverConfig} org.jboss.Shutdown $ {serverRootDirectory} / bin -S JDK_TOOLS $ {classPathVariableName} / Bin / run.jar $ {classpathvariablename} /bin/shutdown.jar $ {classpathvariablename} / client / jboss-j2ee. Jar $ {classpathvariablename} /lib/concurrent.jar $ {classpathvariablename} /lib/jboss-system.jar $ {classpathvariablename} /lib/dom4j.jar $ {classpathvariablename} /lib/xercesimpl.jar $ {classpathvariablename} /lib/xml-apis.jar $ {classpathvariab Lename} /lib/gnu-regExp.jar $ {classpathvariablename} /lib/getopt.jar $ {classpathvariablename} / server / $ {serverconfig} /deploy/jbossweb-tomcat50.sar/servlet-api.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/bcel.jar

$ {classpathvariablename} / server / $ {serverconfig} /lib/jboss.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/jboss-transaction.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/jnpserver.jar $ {classpathvariablename} / server / $ {serverconfig} /LIB/JPL-PATTERN.JAR $ {classpathvariablename} / server / $ {serverconfig} /lib/jpl-util.jar $ {classpathvariablename} /client/jboss-j2ee.jar $ {classpathvariablename} /client/jboss-client.jar $ {classpathvariablename} /client/jboss-common-client.jar $ {classpathvariablename} /client/jboss-jaas.jar $ {classpathvariablename} /client/jbosssx-client.jar $ {classpathvariablename} /client/jnet.jar $ {classpathvariablename} /client/log4j.jar $ {classpathvariablename} /server/default/lib/jnpserver.jar jdk_tools $ {classpathvariablename} /bin/run.jar

$ {classpathvariablename} /bin/shutdown.jar $ {classpathvariablename} /client/jboss-j2ee.jar $ {classpathvariablename} /LIB/concurrent.jar $ {classpathvariablename} /lib/jboss-system.jar $ {classpathvariablename} / server / $ {ServerConfig} /Deploy/jbossweb-tomcat50.sar/servlet-api.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/bcel.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/jboss.jar $ {classpathvariablename} / server / $ {serverconfig} / lib /jboss-transaction.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/jnpserver.jar $ {classpathvariablename } / server / $ {serverconfig} /lib/jpl-pattern.jar $ {classpathvariablename} / server / $ {serverconfig} /lib/jpl-util.jar < Deploy /> jboss settings,

8. Click "Apply". determine.

OK, theory now we have set up J2EE's platform. Below we will test "Hello World" test.

转载请注明原文地址:https://www.9cbs.com/read-104584.html

New Post(0)