Resin installation _jsp programming under Windows system

Source: Internet
Author: User


JSP is a new web development tool developed by sun on the basis of servlet, ejb+jsp/servlet+ application Server + database has already become the popular structure of e-commerce site in foreign countries. If you choose to use the JSP platform as a support for Internet business sites, speed, price, and stability are to be taken into account, as these resin are excellent. Resin installed under Linux has been introduced in a number of articles, this article describes its installation under the Windows operating system, I believe that read this article, you will be very easy to structure a powerful web site.

The first requirement is that the JDK is installed properly. Here I do not redundant JDK installation, this aspect of the article more.

Resin achieves the purpose of JSP interpreter, there are two methods, one is to integrate with IIS, one is as standalone httpd. The specific use of that method, to see a person's preferences and actual situation. I used the first kind.

First of all, explain the simplest standalone method.

This method almost does not need to configure, will resin after decompression, the direct operation Bin\httpd.exe can. It should be noted that after running the Httpd.exe will produce two windows, one is similar to the Command Line window (but only output, can not enter), the other is the GUI control window, these two windows can never be closed with Direct X method, this will lead to resin system error, The correct approach is to use the Quit button above the GUI.

Wait until the command line window appears:

Resin 2.1.6--Mon Oct 2 17:34:31 PDT 2000
Listening to *:8080

This means that the startup is successful, and the next 8080 is the port that resin httpd is listening to now. This port can be modified. Changes in the time, you need to change the conf\resin.conf file, modify the following

Section:xml:

<!--the HTTP port-->

Change the 8080 here to the port you want. However, be careful not to repeat the ports that are already in use, otherwise you will not be able to start. At this time, resin httpd is already receiving access, with the basic functions of IIS, HTTP root directory defaults to the resin installation directory of the Doc directory but also can be modified, you can modify

Conf\resin.conf:xml:
<app-dir>doc</app-dir>
This is the default scenario, and you can also write an absolute path to define the other directories. Input http://localhost:8080/Look!
Again, how to integrate with IIS. In this mode, resin is run as a plug-in for IIS, only when it encounters. Jsp,.xtp and so on, as if Asp.dll is responsible for parsing. asp files, Perl.dll is responsible for parsing. pl files. This configuration is more complex and may cause problems, but it is very convenient.

Please think twice before you do it.

The following I would like to say is the manual installation method, personal feel it provides setup.exe installation is often problematic, and unreliable.

1. After installing the Jdk,resin (these are all nonsense)

2. Implementation of Bin\setup.exe documents

After filling out the resin home and IIS/PWS directory, click OK, he will stop iis/replication iis_run.dll/Start IIS This time, there will be a inetpub\s file under your IIS cripts Iis_run.dll directory. There is also a srun in the IIS-configured filter.

3. At this time resin is still not available, and you need to install a service to execute the srun.exe-install command under the bin\ directory. This will install a resin service for the system.

4. Configure resin.conf Files

Edit the following section:

<app-dir>doc</app-dir>

Change doc to your Wwwroot directory, this time is good!

5. Reboot the system

This step is required and the resin service will not function correctly without restarting.

6. Browse Http://localhost/caucho-status Look!

In that case, it's almost over. Later, IIS and resin will perform their duties, IIS is responsible for parsing HTML and ASP files, resin is responsible for the parsing of JSP files. Finally, the resin function is very powerful, virtual directory, virtual host, load balance can be achieved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.