1. Lomboz3.0.1 plugin 2 has been installed, in the plug-in directory: eclipse / plugins / com.objectlearn.jdt.j2ee_3.0.1 / servers Need to add a file jboss325.server, the content is: $ {serverRootDirectory} serverHome> $ {serverRootDirectory} / server / $ {serverConfig} / deploy webModulesDeployDirectory> $ {serverRootDirectory} / server / $ {serverConfig} / dep loy ejbModulesDeployDirectory> $ {serverRootDirectory} / server / $ {serverConfig} / deploy earModulesDeployDirectory> org.jnp.interfaces.NamingContextFactory jndiInitialContextFactory> jnp: // $ {serverAddress} : 1099 <
/jndiProviderUrl>org.jboss.Main${serverRootDirectory}/bin-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> < JAR TYPE = "Variable"> $ {classpathvariablename} /client/jboss-j2ee.jar jar> $ {classpathvariablename} /lib/concurrent.jar jar> $ {classpathvariablename} /lib/dom4j.jar jar> $ {classpathvariablename} /lib/xerceptimpl.jar jar> $ {classpathvaria Blename} /lib/xml-apis.jar jar> $ {classpathvariablename} /lib/gnu-regEXP.jar jar> $ {classpathvariablename} /LIB/getopt.jar (/ja>)> $ {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 (/jater)> $ {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-commonam-client.jar < / jar> $ {classpathvariablename} /client/jboss-jaas.jar jar> $ {classpathvariablename} /client/jbosssx-client.jar jar > $ {classpathvariablename} / client / j Net.jar jar> $ {classpathvariablename} /client/jnp-client.jar jar> $ {classpathvariablename} /client/log4j.jar < / jar> $ {classpathvariablename} /server/default/lib/jnpserver.jar jar> clientclasspath> jdk_tools jar> < Jar type = "variable">
$ {classpathvariablename} /bin/run.jar jar> $ {classpathvariablename} / bin/shutdown.jar jar> $ {classpathvariablename} / client /jboss-j2ee.jar (/ja>)> $ {classpathvariablename} /lib/concurient.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> pr OjectClassPath> web> ejb> < Deploy /> WebModule> ejbmodule> ear> admin odu> > admin in> serverDefinition> 3eclipse Using the menu: Window-> preferences.
2. Increase a classpath variables, method is java-> build path-> ClassPath variables. Add a JDK_Tools variable, directory points to% java_home% // lib / Tools.jar2.2, set the server. The method is Lomboz-> Server Definitions, selecting Jobss 3.2.5 on the right Server Types. Choose the correct Application Server Directory and ClassPath Variable for the JBoss installation directory. Test: Generate a Lomboz J2EE Project to generate a web module, there will be an index.jsp. Right-click Web Module, you can deploy module.