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
Why doesn't Response.sendRedirect() work after the binding of Tomcat with Apache server?
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
How can I use LDAP for Tomcat authentication ?
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
How do you set up standalone Tomcat 3.x to use HTTPS?
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
How can one specify use of an external compiler to compile JSP files?
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
What's the difference between PoolTcpConnector and SimpleTcpConnector ?
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
How do I assign the user's role without using a login form?
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
Can somebody tell me the advantages/disadvantages of Allaire JRun versus Apache Tomcat?
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
Why doesn't Tomcat find classes in jars in the WEB-INF/lib directory?
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
What is the difference between startup.bat, shutdown.bat, and tomcat.bat?
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".
Trying to install Tomcat on Solaris, I get "tar : directory checksum error". How to fix this?
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
How do I set up Tomcat to run in-process inside Netscape 4.1?
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
Where are the servlet source files for JSPs compiled in Tomcat?
[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