Tomcat Section Index | Page 2
Is there any way to restrict access from subnets or specific IP addresses to Tomcat like Apache does?
No, unfortunately as per Tomcat 3.2.1 there is no way to set configuration directives (like in Apache) for restricting access. The web server part of Tomcat it's very simple and basic, and If yo...more
Tomcat communicates with the Apache server using localhost. When tomcat gets the request it's from the Apache on localhost, so it also redirects the response to localhost. Try the following:respo...more
Take a look at this package, maybe it could help you: JNDI and LDAP Realm for Tomcat 3.2 and Tomcat 4.0 See also What is LDAP (Lightweight Directory Access Protoco...more
Do I really need to build a complete 'webapp' just to add a simple 'Helloworld' servlet to the server?
Not at all. You can put a single servlet anywhere on your hard disk but you will have to configure your path in server.xml and servlet alias in web.xml as usual. Let me be a bit more descriptive...more
The instruction for setting up a standalone Tomcat that uses a secure connection are located inside the configuration file (TOMCAT_HOME/conf/server.xml): First you need to set up a server certifi...more
How should I configure my Tomcat so normal users can develop their own Servlet Applications under their home directories?
How should I configure my Tomcat so normal users can develop their own Servlet Applications under their home directories? For example, so http://abc.com:8080/~user/myapp would serve data from /hom...more
About external compiler - like jikes or other - you have to make a wrapper class implementing org.apache.jasper.compiler.JavaCompiler that calls your compiler (with your own parameters), and spec...more
The main difference is that the Pool connector will create a pool of simple connectors, allowing the server to answer to more requests at the same time, while a simple connector can anwer only a r...more
Victor, Chapter 11 of the Servlet 2.2 specification is entirely related to Security. Basically the concept is that you can use the standard http authentication schemes (i.e.: basic, digest). This ...more
JRun is a J2EE compatible container. For this reason it supports (besides JSPs and Servlet) EJB as well. JRun is actually a plugin on a web server in order to redirect JSP and servlet calls from t...more
According to the Servlet 2.2 specifications: 9.4: Directory Structure A web application exists as a structured hierarchy of directories. The root of this hierarchy serves as a document root for s...more
tomcat.bat takes a parameter, "start" or "stop". Running "startup" is the same as running "tomcat start". Running "shutdown" is the same as running "tomcat stop".
You need to gunzip (gnu unzip) it first. It should be installed on your server. Try "gunzip jakarta-tomcat-3.2.1.tar.gz" Then use your tar command. If "gzip/gunzip is not instal...more
For those of you interested, I have found out how to set the Tomcat jvm command line options for in-process Netscape 4.1. They are not in the Tomcat docs. You can get them by reading the source...more
[JSP is first translated into servlet than compiled. So where are those servlet .java or .class files for JSP examples in Tomcat?] They are located in the work directory of the TOMCAT_HOME, unde...more