Detailed explanation of jsp configuration problems
Source: Internet
Author: User
For more information about jsp configuration, see Linux general technology-Linux programming and kernel. Our manager asked me to configure iis6 to support the jsp running environment. I used: resin 3.0.8, j2sdk1.5, iis6.
After one day of configuration yesterday, the following prompt always appears when running httpd.exe under resin-3.0.8 \ bin: Specification version 1.5 of package javax. management, Java Platform API Specification, version 1.5 is not compatible with Resin 3.0.8. resin 3.0.8 requires version 1.2 .. How can I solve this problem? My configuration steps are as follows:
1. Install J2SDK and Resin. (I installed J2SDK in D: \ J2SDK, and Resin in the D: \ Resin_3.0.8 folder ).
2. environment variables. Right-click my computer and choose Properties> advanced> environment variable.
1) create two system variables (click New below ):
① Variable name: JAVA_HOME
Variable value: D: \ J2SDK (J2SDK installation directory)
② Variable name: classpath
Variable value:.; % JAVA_HOME % \ lib \ tools. jar (Note: Add a decimal point
Number, copy it directly)
③ Variable name: RESIN_HOME
Variable value: D: \ Resin_3.0.8 (Resin directory)
2) edit the system variable Path
Append the variable value; % JAVA_HOME % \ bin \
3. copy the file. In windows2003, Rensin_3.0.8 \ bin \ setup.exe cannot be used. Run setup to return an error. We need to copy the file ourselves. My IIS is installed in C: \ Inetpub.
1) create a folder under C: \ Inetpub and rename it to scripts
2) Copy isapi_srun.dll under Rensin_3.0.8 \ libexec
C: \ Inetpub \ scripts
3) create a resin. ini file in C: \ Inetpub \ scripts.
The file contains the following two rows of data:
ResinConfigServer localhost 6802.
IISPriority high
(The official document says that it is only necessary to create multiple sites.
Resin. ini. If there is only one site, you do not need to create resin. ini. Recommended)
4. Set IIS.
1) Right-click on the default website → properties → ISAPI filter → add
Filter Name: Resin_3.0.8 (optional)
Executable File: C: \ Inetpub \ scripts \ isapi_srun.dll
2) Right-click on the default website → new → virtual directory
Alias: scripts
Local path: C: \ Inetpub \ scripts
3) Click WEB Service Extension → Add a new WEB Service Extension
Extension: Resin (optional)
Required file: C: \ Inetpub \ scripts \ isapi_srun.dll
Select and set the extension status to allow
5. Set Resin_3.0.8 \ conf \ resin. conf.
Find in the file (probably at the end)
Doc
Change
C:/inetpub/wwwroot
(C:/inetpub/wwwroot, your default website directory)
Okay. Now, we have completely set it up.
Run net stop w3svc to disable the IIS service.
Run net start w3svc to restart IIS.
Open Resin_3.0.8 \ bin \ httpd.exe.
Now IIS6.0 and Resin_3.0.8 have been successfully integrated. We can start httpd.exe as a service. Then, httpd.exe will be started when the computer is started.
Install services
D: \ resin_3.0.8 \ bin \ httpd.exe-install
Cancel Service
D: \ resin_3.0.8 \ bin \ httpd.exe-remove
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