Defining Users for Tomcat Server
We can add users for tomcat server in following way.
1. Open <tomcat-home>/conf/tomcat-users.xml
2. Add following entries or just uncomment and edit existing entries as shown below.
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="admin,manager"/>
</tomcat-users>
Note: manager must be added as a role to allow access to <Tomcat Manager> menu
Source: http://www.mkyong.com/tomcat/tomcat-default-administrator-password/
Remote debugging Tomcat 6 using Eclipse
With Tomcat 6 you could quite easily debug server side codes using Eclipse.
Step 1: What you fist have to do is, start the Tomcat using the following command.
Tomcat6\bin>catalina.bat jpda start
Step 2: Next create a remote application configuration as shown in the following figure and run it.
No comments:
Post a Comment