Hi! Long time no see everyone, do you know what is the most popular network programming language currently? Yes, ASP.NET and JSP. Especially JSP, it is recognized by many people as the most promising network programming language in the future. So now many friends are starting to use JSP, and JSP is a cross-platform programming language that can run on many Web servers, such as: Apache Tomcat, IBM WebSphere Server, BEA Weblogic 6.0, etc. Of course, some friends like to use Microsoft's IIS to run, but IIS itself cannot interpret and execute JSP. It needs to support JSP through a plug-in, such as JRun or ServletExec. However, many friends have encountered trouble when installing JRun. I have also checked a lot of information on the Internet, and a lot of the information is inaccurate. In order to help everyone solve this problem, I will talk about the installation and setup of JRun with IIS today.
JRun is JAVA server software developed by Allaire. It supports JSP1.1 and Servlet2.2 specifications. The latest version is JRun4, but its download requires payment. It is difficult to find the download address of JRun3 on the Internet. There are many The download addresses are all unavailable. The editor went through a lot of effort and finally found an address to download JRun3 for free. Let’s share it with everyone now!
http://202.109.97.84/GCWeb/Downloads.nsf/0/246D6552F0B5E83A48256DCC0038AD67?OpenDocument
The file name is: jrun3.exe and the size is: 19.8M
Now let's take JRun3 as an example to talk about its installation!
one. Installation process
The installation of jrun3.0 with IIS is very simple. Install IIS first (difficulty coefficient is 0), and then install JRun3. Double-click jrun3.exe to enter the installation screen. During installation, you need to set the listening port. Generally, the default listening port is 8000. You also need to set the user's password. The user name here is admin by default. The serial number does not need to be set. Of course, You can also use the enterprise version registration code: JR300EE-9900-6270-0000. The last step is to select the directory of the SDK. Other steps are completed in the default way. After the installation is successful, the following image will be displayed (Figure 1). Click Finish to complete the installation.
Figure 1
two. JRun settings
After completing the installation, the system will automatically launch the JRun main page and ask you to enter the password set during the installation. After confirmation, you will enter the JRun setting interface as shown in Figure 2.
Figure 2
This is the default setting value of JRun. We need to change JRunServerName to JRunDefaultServer. Here I want to emphasize that a lot of online information tells everyone to use the default value at this step except changing the value of JRunServerName. In fact, this is completely wrong. Think about it, we are now installing the JRun plug-in on the basis of installing IIS, but if you look carefully at the value of WebServerType in the picture, it is ApacheWebServer by default, and of course the version is also Apache. Server version, the system will not report an error when confirming this step, but we will not find the path of ApacheConfig in the third step. Because we have never installed it before. So please remember to change the value of WebServer Type to IIS. The version will also change automatically. As shown in Figure 3
Figure 3
When clicking next. The system will prompt you to shut down the IIS server. At this time, you should jump to the IIS server immediately and shut down IIS. Then come back and click Confirm, and then go to the next page, which is to set the JRunServerIPAddress. Under normal circumstances, we set our own computer as the server. So here you should enter 127.0.0.1 and set the JRunServerConnectorPort to 9000. Of course, you can fill it in casually, as long as the port is not used. Click Next to enter the page for setting the IIS Config file, as shown in Figure 4:
Figure 4
We select C:InetpubScripts here, and then click Next. Of course, if you are installing the Apache server, you can default to the server type in the second step, and what you want to choose in this step should be ApacheConfig. path. If you made no mistakes as mentioned above, you should see the prompt in step 4. You have successfully installed the connector for IIS. You must restart your Web server to complete the JRun Connection Module installation. Click the done button and JRun enters the server's main page. A small window will pop up at this time, you can close it. At this time, you only need to restart the JRUN Default Server.
three. IIS settings
After completing the settings of JRrn, let's set up IIS. First, restart the IIS service, then click on the website, select properties, and view the ISAPI tab in the properties box. You will find that there is an additional name "JRrn Connector" in the ISAPI filter. After confirmation, we select the home directory tab. In this panel we select configuration, in the application configuration panel we click Add, then we enter the add/edit application extension mapping panel, in the executable file column we select C:InetpubScriptsJrun. dll file, the extension is .jsp and all other values can be defaulted. As shown in Figure 5
Figure 5
The executable file is the path set for JRrn's IIS Config in the second step. After clicking OK, our configuration of JRun and IIS is complete. The next step is to create a virtual directory in IIS (this directory is used to store JSP files) to test the settings we just made. Place a JSP file in the directory, set the document options, close IIS or restart it. After IIS, open the IE browser and enter http://localhost in the address bar. After pressing Enter, you will find that the browser is displaying the effect of the JSP file you made. Finally it's done.
That’s all for this time. I hope you will like my explanation. If you have any questions, I am happy to discuss them with you. See you next time!