Because the admin of Tomcat 6 is only included in the source code, it cannot be downloaded and deployed separately. It has been a headache for me to use the admin of Tomcat 5, which is unavailable now. However, today, I accidentally discovered the post of raise Daxia and gave it the experience of successfully deploying the tomcat5.5 admin to tomcat6. So add it to the favorites immediately for future reference.
The binary core installation version after Tomcat 5.5 is no longer integrated with the Tomcat administration web application, and must be downloaded and installed independently. The administration Web Application of Tomcat 6.0.13 is only contained in the source package and does not have an independent installation package. After searching for materials and multiple practices, the administration Web Application of Tomcat 5.5.23 is successfully configured under Tomcat 6.0.13. Write out the configuration process. If any error occurs, please advise. The process is as follows:
1. Download the admin application of Tomcat 5.5.23:
: Http://apache.mirror.phpchina.com/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23-admin.zip
Decompress apache-tomcat-5.5.23-admin.zip and copy the conf and server folders to the Tomcat 6.0.13 installation directory.
3. Download Apache commons modeler, logging component, unzip the commons-modeler-XXX.jar, commons-logging-XXX.jar copy to Tomcat 6.0.13 installation directory under the lib directory.
4. Restart Tomcat and enter http: // 127.0.0.1: 8080/admin in the browser. If you can see the logon interface of Tomcat web server administration tool, the installation is successful. If the installation fails, you can view the log files in the logs directory under the Tomcat 6.0.13 installation directory, for example, admin.2007-08-14.log.
Bytes --------------------------------------------------------------------------------------------------------------------------
Thank you, raise. I have completed the configuration as you said, but I will add the third point you mentioned. Although you mentioned how to download it, many people do not know where to download it, especially cainiao like me. After a long time, I finally found:
1. commons-modeler:
Http://commons.apache.org/downloads/download_modeler.cgi
Http://apache.mirror.phpchina.com/commons/modeler/binaries/commons-modeler-2.0.1.zip
2. commons-logging:
Http://commons.apache.org/downloads/download_logging.cgi
Http://apache.mirror.phpchina.com/commons/logging/binaries/commons-logging-1.1.zip
I hope it will be helpful to anyone who is interested in or looking for the "logging component.
My QQ: 200879521 welcome to contact me cainiao ..............
Bytes ------------------------------------------------------------------------------------------------------------------------
Create a new tomcat-users.xml file and place it in the conf directory as follows
<? XML version = '1. 0' encoding = 'utf-8'?>
<Tomcat-users>
<Role rolename = "Tomcat"/>
<Role rolename = "admin"/>
<Role rolename = "manager"/>
<User Username = "Tomcat" Password = "Tomcat" roles = "Tomcat"/>
<User Username = "admin" Password = "admin" roles = "admin"/>
<User Username = "manager" Password = "manager" roles = "manager"/>
<User Username = "both" Password = "Tomcat" roles = "tomcat, admin, Manager"/>
</Tomcat-users>
Then you can use the admin password admin to log on and manage your tomcat.
Bytes ---------------------------------------------------------------------------------------------------------------------------
Oracle Data source configuration.
1. Enter the tomcat-users.xml under the http: // localhost: 8080/admin/conf folder has administrator username password and other information.
Select resources-data sources to go to the data source configuration page. Select data source actions-> Create new data source to go to the configuration details page. The content is as follows:
JNDI name: JDBC/Oracle
Data source URL: JDBC: oracle: thin: @ 192.168.0.18: 1521: oradb
JDBC Driver Class: Oracle. JDBC. Driver. oracledriver
User name: oraconn
Password: oraconn
Max. Active connections: 20
Max. idle connections: 10
Max. Wait for connection: 5000
Validation query:
Oradb is the SID of the Oracle database. oraconn is the username and password available for Oracle.
2. go to % atat_home %/CONF/Catalina/localhost and find the corresponding web application. XML file (which has my web directory structure below), such as test. XML, and add the code to this file:
<Resourcelink name = "JDBC/oracle" Global = "JDBC/oracle" type = "javax. SQL. Cer CER"/>
3. Modify the referenced configuration file in Web. xml and % atat_home %/CONF/Catalina/localhost.
Open % atat_home %/CONF/Web. xml and add the following content before </Web-app>:
<Resource-ref>
<Description> oradb connection </description>
<Res-ref-Name> JDBC/ora </RES-ref-Name>
<Res-type> javax. SQL. datasource </RES-type>
<Res-auth> container </RES-auth>
</Resource-ref>
Note that the res-ref-name must be the same as the JNDI name mentioned above.
4. Under % ORACLE_HOME %/ora81/jdbc/lib, there is a classes12.zip and nls_charset12.zip
Decompress these two files to a temporary directory, such as D:/work/temp/classes12 and D:/work/temp/nls_charset12.
Enter the two directories D:> CD work/temp/classes12
Use jar-CVF classes12.jar * to create classes12.jar and create nls_cahrset12.jar.
Copy the two jar files to % atat_home %/common/lib.
The Oracle database configuration is complete.