P. 1
Apache Tomcat Install

Apache Tomcat Install

|Views: 1|Likes:
Published by jalatf

More info:

Published by: jalatf on Sep 03, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

1. http://www.devx.com/webdev/Article/16416/0/page/3 2. http://www.jguru.com/faq/view.

jsp?EID=1087957 3. http://www.mkyong.com/tomcat/tomcat-default-administrator-password/ 4.http://tomcat.apache.org/tomcat-4.1-doc/RUNNING.txt

Step 2: Start the Server After unzipping the file, navigate to the "bin" directory and start Tomcat by running the startup.bat file. You must have the JDK installed before you can start Tomcat. The JDK contains the Java runtime engine. The environment variable JAVA_HOME tells Tomcat where to find your JDK. You can set this variable from the Control Panel or by modifying the file tomcat.bat in the bin directory. Simply add a line at the beginning of the file to point to your JDK installation. For example, if you installed the JDK in the c:\jdk1.2 directory, you would write:
SET JAVA_HOME=c:\jdk1.2

The other important environment variable is called CLASSPATH. The CLASSPATH variable helps the Java runtime find various classes needed by an application. Usually, these Java classes are grouped together in a single JAR (Java Archive) file. Tomcat has several such JAR files that include classes for XML parsing, Servlets, and the JSP compiler. You can find them in the "lib" directory. Tomcat automatically appends the location of its jar files to your existing CLASSPATH.

Warning: Sometimes the process of appending the jar file location to your CLASSPATH environment variable causes the variable size to exceed the maximum allowable size. The tomcat.bat file contains a description of how to make the appropriate modifications manually.

Another point to consider is that JSP pages must be compiled the very first time someone accesses the JSP page. This compilation process converts the JSP page into a Servlet. This requires access to the Java compiler. Tomcat will not be able to call the Java compiler if the directory path to the Java compiler includes spaces. To avoid the problem, install the JDK in a directory with a name that contains no spaces, such as JDK1.3.

Search for the number 8080 in the file and change it to an unused port number. open your browser and type the following URL: http://localhost:8080. Figure 2. Tomcat Introduction Page : You'll see this page if Tomcat has successfully installed.xml to allow admin access.role1"/> <userusername="role1"password="tomcat"roles="role1"/> </tomcat-users> Tomcat only create a tomcat user for normal access.xml in tomcat conf folder. such as Internet Information Server (IIS).xml in the conf directory.0'encoding='utf-8'?> <tomcat-users> <rolerolename="tomcat"/> <rolerolename="role1"/> <userusername="tomcat"password="tomcat"roles="tomcat"/> <userusername="both"password="tomcat"roles="tomcat. You should click on a few examples to make sure everything is working correctly. VI your tomcat-users. you can change Tomcat's default port by modifying the file server. you will see an introduction page in your browser similar to Figure 2.0'encoding='utf-8'?> <tomcat-users> <rolerolename="manager"/> <rolerolename="tomcat"/> <rolerolename="admin"/> <rolerolename="role1"/> <userusername="both"password="tomcat"roles="tomcat. content is something like following <?xmlversion='1.manager"/> . There are two links towards the middle of the page pointing to Servlet and JSP examples. Next Page: Step 3: Create Application Directories Previous Page: Step 1: Install Tomcat Tomcat5. we have to modify a bit like following <?xmlversion='1.After starting Tomcat. We have to manully edit tomcatusers. Tomcat uses port 8080 by default. When Tomcat starts successfully.role1"/> <userusername="tomcat"password="tomcat"roles="tomcat"/> <userusername="admin"password="admin"roles="admin. If there is a port conflict. so make sure that port is not being used by another server.5 do not enable admin or manager access by default.

xml <?xml version='1.Access to the requested resource has been denied This is what i have for my tomcat-users.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="tomcat"/> <role rolename="role1"/> <user username="admin" password="secret" roles="manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="role1" password="tomcat" roles="role1"/> <user username="both" password="tomcat" roles="tomcat. I can't seem to get it to work and it produce this error when i tried to login with my username and password: HTTP Status 403 . 2003 . Joe Derived from A question posed by Joe LeeTopicsJava:API:JSP:Vendors:TomcatAuthorJoe LeeCreated May 25. i only started to explore the in-built Manager.<userusername="role1"password="tomcat"roles="role1"/> </tomcat-users> QuestionI've been using Tomcat for some time however.role1"/> </tomcat-users> Can anyone tell me what's wrong with it ? Regards.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->