Eric @ EricBess WebHome

Rather than just thinking, knowing it would be meaningless

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

MyEclipse debugging web application development portal

To a very simple web application to illustrate the use of MyEclipse's web server configuration, application deployment and debugging process.

First, development tools ready

Slightly

Second, software installation and registration

Slightly

Third, create a web project

Myeclipse development of the open interface, file-> new-> projects ..., open the New Project dialog box, select myeclipse-> j2ee projects-> web project, click the button next, in the web project details of the projects name, type webtest, other Use of default values, where the attention of the context root url for / webtest, otherwise, you must enter ie in the name can be used. Here attention to the bottom of whether there is support for joining the library, we have chosen to jstl1.1. Then, click the button to finish creating the completion of the project.

We see our new project, the needs of all categories have been automatically in. There is another category of j2ee environment variables, which is used to facilitate the myeclipse.

Click to continue reading

April 11th, 2007 Posted by eric | Coding | no comments

On the Tomcat

With the popularity of java, its web application more and more widely, tomcat, as a source of the servlet container, has become an increasingly widespread application, this article will tell you some of the knowledge of the tomcat.

A: About

jakarta project tomcat is an important part of the sub, which was JavaWorld magazine's editor in 2001 as the most innovative java products (Most Innovative Java Product), at the same time it is also recommended by the sun's official servlet container and jsp (specific Can see http://java.sun.com/products/jsp/tomcat/), and thus be more and more software companies and developers love. jsp and the servlet's latest specification of the tomcat can be achieved in the new version.

Second: the installation and configuration

tomcat to the latest version 4.0.1, the version with a new servlet container Catalina, a complete realization of the servlet2.3 and jsp1.2 norms. Before you install the attention of the system must be installed above jdk1.2.

(A): Installation

1: windows platform tomcat from the Web site to download jakarta-tomcat-4.0.1.exe, in accordance with general procedures for the installation of these windows can be installed tomcat, it will be automatically installed when you find the jdk and jre.

2: linux platform to download jakarta-tomcat-4.0.1.tar.gz, to extract to a directory.

(B): configuration

Tomcat need to run variable JAVA_HOME

? View Code BASH
 1 
  =c: / jdk ( win98,在msdos方式下使用,或者放入autoexec.bat中) export JAVA_HOME = / usr / local / jdk ( linux下使用,放到/ etc / bashrc或者/ etc / profile中) set JAVA_HOME = c: / jdk (win98, in the way msdos use, or in autoexec.bat Add) export JAVA_HOME = / usr / local / jdk (linux use, on / etc / bashrc or / etc / profile in ) 

Click to continue reading

April 11th, 2007 Posted by eric | System | no comments

To install and configure Tomcat Admin

Tomcat 5 to run through the web browser configuration of the application is very easy to configure the server. The application known as the Tomcat Administration Web Application. However, Tomcat 5.5 after the installation of the core binary version is no longer available for Tomcat Administration Web Application. To install the latter requires a separate download and installation. Tomcat and Administration Web Application did not provide an automatic integrated installation process. This article about the installation and configuration process in detail.

The first step to confirm your Tomcat is installed in the Administration Web Application. First, determine the Tomcat Service is running. Then in a browser, type http://localhost:8080/admin, to see if the Tomcat Web Server Administration Tool page on Administration Web Application has been installed. You can save time, not a must-read below. If you see
Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it.
The article then even if you do it right, is written specifically for you.

The second step, download the admin package.
Look carefully, http://tomcat.apache.org/download-55.cgi, in the download page Binary Distributions under the fourth major, Administration Web Application that is yes.

The fourth step will be extracting download folder under \ conf \ Catalina \ localhost \ admin.xml the
admin.xml copies of documents to TomeCat installation directory \ conf \ Catalina \ localhost.'s folder. Attention must be placed on the correct path of the folder.

The fifth step, extracting download folder server \ webapps in the admin to copy the entire folder TomeCat under the installation directory server \ webapps folder.

The sixth step, with editing features, such as the notepad to open TomeCat installation directory conf \ in the tomcat-users.xml file. In </ tomcat-user> prior to the last line, add the following line
<user username="admin" password="tomcat" roles="admin, manager"/>
Attention to the username / password can be any combination you like, but the roles = "admin" can not be altered.

The seventh step, restart Tomcat Server, in the web browser, type http://localhost:8080/admin, this time to see if your Tomcat Server Web Administration Tool's login interface, you're done. If it still can not see the above page, check your browser's proxy settings to make it acceptable to localhost.

April 9th, 2007 Posted by eric | System | no comments