Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy jsp environment with tomcat+mysql

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge about "how to deploy jsp environment with tomcat+mysql". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

My JSP source program runs normally on WINDOWS platform, using Windows2000+Tomcat+mysql; now to transplant the program to linux system.

System:Redhat AS3

JDK:1.5.0

Normal operation:

[root@szho001 bin]# java -version

java version "1.5.0"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)

Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

tomcat:5.5.17

Normal operation:

[root@szho001 bin]# ./ startup.sh start

Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17

Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17

Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp

Using JRE_HOME: /usr/java/jdk1.5.0

mysql:3.23.57

Normal operation:

[root@szho001 bin]# mysql

Welcome to the MySQL monitor. Commands end with ; or g.

Your MySQL connection id is 3 to server version: 3.23.57

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql>

http://localhost:8080/Access normal.

I copied the JSP source code to/usr/local/tomcat/webapps/, modified the/usr/local/tomcat/conf/server.xml file, and added the following:

reloadable="true" crossContext="true">

Visit http://localhost:8080/games/page shows:

HTTP Status 404 - /games/welcome.do

type Status report

message /games/welcome.do

description The requested resource (/games/welcome.do) is not available.

Apache Tomcat/5.5.17

"How to deploy jsp environment with tomcat+mysql" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report