Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

2010-03-27  来源:本站原创  分类:Java  人气:534 

Development of web applications using eclipse install configuration more complicated, according to their own learning experience, I will use eclipse + lomboz + tomcat specific installation and configuration process of developing web applications written in the hope of a need to learn a friend to help, also considered their own study notes it.

1. Installation Preparation:

Software Download:

eclipse Downloads: http://www.eclipse.org/downloads/

JDK installer download: http://www.sun.com/download/index.jsp?cat=Java% 20% 26% 20Technologies & tab = 3 & subcat = Java

Tomcat installation program downloads: http://tomcat.apache.org/

Tomcat plug-in download: http://www.sysdeo.com/sysdeo/content/download/669/7716/file/tomcatPluginV32beta2.zip

Or: http://www.eclipsetotale.com/tomcatPlugin.html

lomboz plug-in download: http://lomboz.objectweb.org/downloads/download.php can select the version you need lomboz, the latest version is 3.3 Download Lomboz with Prerequisites Installation proposal which includes lomboz run it all plug-ins If wtp, emf, jem and gef so.

2. Installation and Configuration Help

(1). Jdk installation configuration: Double click the downloaded exe setup file to install java application, the last main configuration environment variable.

Right on my computer - "High -" environment variable,

New environment variable JAVA_HOME, the variable value just installed the jdk directory (Figure 1):

Figure 1

Path of the variables in the environment variable value added to the end;% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin (Figure 2)

Figure 2

New environment variable CLASSPATH, the variable value.;% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar;% CATALINA_HOME% lib \ servlet-api.jar (be careful not to lose in front.;, Point the current directory) (Figure 3):

Figure 3

(2). Tomcat installation and configuration:

jdk tomcat installation and setup process is similar mainly to set the environment variable.

New environment variable CATALINA_HOME, the variable value of tomcat installation directory, my installation directory is D: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 (Figure 4):

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Figure 4

New environment variable CATALINA_BASE, variable value of tomcat installation directory or the% CATALINA_HOME% (Figure 5):

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Figure 5

And then modify the environment variable in the classpath, the tomat installation directory common \ lib under the (additional 1.6 according to the actual inside servlet-api.jar) servlet.jar to the classpath in additional to, the modified classpath is as follows: classpath =.;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar;% CATALINA_HOME% \ common \ lib \ servlet.jar (Figure 6):

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Figure 6

Environment variable is completed, enter in the browser address bar: http://localhost:8080 or http://127.0.0.1:8080/ . If the kitten image pages with Tomcat can.

(3). Eclipse green software, you can open the application download extract

3. In order to facilitate management methods can be links to the eclipse plug-in installed. By tomcat plug-in, for example, can create a directory called eclipseplugins then a tomcatplugins directory, and then in the directory below an eclipse directory, which eclipseplugins / tomcatplugins / eclipse tomcat plugin unpack the downloaded. If you extract the file inside plugins, features directory, you can copy these two directories to the eclipse directory, if not eclipse directory in the establishment of these two directories, and then unzip the tomcat plug-in copy to the plugins inside. After installing the program files in the eclipse links established under the name of the directory (name can not be changed), further at its next create a text file in a text file which input path = path = D: / Eclipseplugins / Tomcatplugins, (Note: The directory separator character is /, or \ \), file name tomcatplugins.link (file name and the suffix can be arbitrary, for example, we can also tomcatplugins.txt). Similar to other plug-ins can also be installed, each plug-in corresponds to a *. link file, for later if you want to delete a particular plug-in, then remove the plug-in corresponding link files. links documents and eclipseplugins file structure is as follows (Figure 7, Figure 8)

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Figure 7

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Figure 8

Set is complete, open the eclipse can be seen in the eclipse menu bar menu items new Tomcat. Open the Windows-"preferences, in the list on the left to see a list of items tomcat.

lomboz plug-in added successfully, in preference to do list box appears Server, web services other items of the installation was successful. If you do not see, check the links set up correctly.

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Open Window -> Preferences -> Server-> Installed Runtime following window, select Add to add your server

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

New Project - Select Web / Dynamic Web Project, the next step in the project name in the Target Runtim fill HelloWord1 select just the increase in server Apache Tomcat 6.0

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

Right-click HelloWord1 select New JSP named index.jsp:

<% @ Page language = "java" contentType = "text / html; charset = ISO-8859-1"

pageEncoding = "ISO-8859-1"%>

<! DOCTYPE html PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title> Insert title here </ title>

</ Head>

<body>

HelloWord!

</ Body>

</ Html>

Then right point HelloWord1-> Run -> run on server, how can there HelloWorld page.

Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications

And then later choose to default. This created a new Web project

相关文章
  • Eclipse3.4 + Lomboz3.3 + Tomcat6.0 configuration and development of Web applications 2010-03-27

    Development of web applications using eclipse install configuration more complicated, according to their own learning experience, I will use eclipse + lomboz + tomcat specific installation and configuration process of developing web applications writ

  • tomcat6.0 configuration data source 2008-11-26

    J2ee Initial Tomcat data source configuration 1. To find C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ conf the following context to modify configuration files are as follows <Context> <WatchedResource> WEB-INF/web.xml </ W

  • tomcat6.0 configuration steps and MYSQL data source access methods 2010-09-14

    tomcat6.0 configuration steps and MYSQL data source access methods 2008-09-25 14:42 Reference article: 1. http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html 2. http://blog.sina.com.cn/s/blog_4ce7bff90100a13r.html tomcat6.0 co

  • apache2.2 tomcat6.0 configuration load balancing cluster order 2010-06-28

    =========================== ===================== Correctly configured == Preparation Download mod_jk-1.2.28-httpd-2.2.3.so http://apache.justdn.org/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/mod_jk-1.2.28-httpd-2.2.3.somod_jk-1.2.28-httpd-

  • TOMCAT6.0 configuration 2010-10-06

    Reprinted: Tomcat is a good JSP / Servlet container, originally developed by the SUN, later contributed to the Apache community. The current version of Tomcat to 6. Tomcat6 realized Servlet2.5 and JSP2.1 specifications. For web development and web se

  • Use BRMS's Tomcat6.0 configuration (Original) 2009-04-16

    Our company server is websphere, so I decided to use the time tested Tomcat6.0 tests in order to later deployed to the server. Tomcat6.0 requirements: 1.jdk5.0 above, and must be the sun's (IBM's jdk release'll get an error); 2. Download the required

  • spring2.0 configuration of the new labeling applications 2010-07-09

    spring2.0 configuration of a new label application 2007-12-28 16:131, <util:constant/> Replaced before the acquisition by FieldRetrevingFactoryBean bean static constant FactoryBean! The use of old <bean> <property name="isolation"

  • tomcat6.0 configuration ssl 2010-06-30

    sSL protocol uses asymmetric cryptography to achieve security of the information transfer between the two sides. Information transmission can be achieved the confidentiality, integrity and identity of the session the two sides can identify each other

  • the difference with the tomcat5.5 tomcat6.0 2010-10-01

    [Size = medium] Tomcat6.x the biggest difference in the directory lib package is to be placed directly CATALINA_HOME / lib under the tomcat 5.x series version is sub-common / share / server stored in the three packages. More specific explanation: CAT

  • spring 2.0 + hibernate3.2 + struts 2.0 configuration records 2009-11-16

    struts2.0 + spring2.0 + hibernate 3.2 combined with the development of Web applications has brought a lot of improvements, more configuration parameters. The following describes how to combine the use of development projects struts2.0 + spring2.0 + h

  • tomcat6.0 + mysql5.0 + JNDI data source configuration 2010-03-30

    First, the context is a server configuration information, to find the installation files directory tomcat6.0 conf directory context.xml, where we want to in their element <context> </ context> add data source within the configuration informati

  • When the report loads struts2 Unable to load configuration. - Bean - jar: file: / D: / Tomcat6.0/webap 2010-07-16

    The start was to use struts1 written procedures, when run directly into the IDE directly generated struts1 of the package without any problems, Today, suddenly found, struts2 have come such a long time, and also research struts1 in out, to write a si

  • Win7 configuration error under the Tomcat6.0 2011-01-07

    2011-1-7 18:52:59 org.apache.catalina.core.AprLifecycleListener init Tomcat6.0 specific configuration is not described here: Information: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not f

  • Tomcat6.0 complete example of configuring a JNDI data source (same as 5.5 with this configuration) 2011-02-11

    Keywords: Tomcat6.0 configure the JNDI data source Note: tomcat JDK and applications must be consistent version of the JDK (in this case unity JDK1.6) Description: tomcat5.5 and 6.0 configuration is slightly different, namely: tomcat's lib in differe

  • Tomcat6.0 used to replace the default logging configuration log4j 2010-03-29

    The steps are simple: Decompression jars.rar, unzip the folder is named after the jars, the folder contains the following documents: Into the tomcat6.0 installation directory, replacing the bin directory of the tomcat-juli.jar for the jars in a folde

  • Tomcat6.0 virtual directory configuration 2010-03-25

    Set up virtual directory "site", by http://localhost:8080/site access to the physical path D: \ site folder, the contents inside. Setup process is as follows: 1. Copy Tomcat6.0 \ webapps \ ROOT directory under WEB-INF folder to D: \ site directo

  • Tomcat6.0 Configure SSL 2010-03-29

    Tomcat6.0 Configure SSL 1, in order to save time, I am here just based on my description of the configuration process, the reader according to their own analysis of the situation. 1, in the command line, enter the% CATALINA_HOME% / bin directory exec

  • Apache 2.2.x + Tomcat6 cluster configuration 2008-06-04

    In our deployment of Web applications, most will inevitably involve clustering problem, published as an Apache 2.2.x + Tomcat6 reminder of the cluster configuration. Configuration Tomcat6 the conf \ server.xml file, enable the cluster settings, if th

  • APACHE 2.2.8 + TOMCAT6.0.14 configure load balancing 2010-03-18

    Objectives: Using apache and tomcat configuration can be applied to a web site, to meet the following requirements: 1, Apache as HttpServer, the back to connect multiple instances of tomcat applications and carry out load balancing. 2, set the Sessio

  • UBUNTU 9.10 install JDK1.6.0_18 and tomcat6.0.24 2010-02-03

    Download jdk-6u18-linux-i586.bin and apache-tomcat-6.0.24.zip (originally prepared under the cut. Gz, it may not know how happened, the next down gz compressed files is not complete, with the archive manager can not open, so I down a zip) Second, ins