Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do you do servlet aliasing with Apache and Tomcat?

www.adobians.com
Servlet aliasing is a two part process with Apache and Tomcat. First, you must map the request in Apache to Tomcat with the ApJServMount directive, e.g., ApJServMount /myservlet /ROOT Second, you must map that url pattern to a servlet name and then to a servlet class in your web.xml configuration file. Here is a sample exerpt: <servlet> <servlet-name>myservlet</servlet-name> <servlet-class>com.mypackage.
Related Questions

jGuru: Tomcat FAQ
Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Felix Wong (http://www.jguru.com/guru/viewbio.jsp?EID=102927 Servlet aliasing is a two part process with Apache and Tomcat. First, you must map the request in Apache to Tomcat with the ApJServMount directive, e.g., ApJServMount /myservlet /ROOT Second, you must map that url pattern to a servlet name and then to a servlet class in your web.xml configuration file.
Related Questions

How do I make servlet aliasing work with Apache+Tomcat?

Java Servlets Interview Questions and FAQs for Java,Java Ser...
When you use Tomcat standalone as your web server, you can modify the web.
Related Questions

How do I debug an Apache Tomcat 5.0 Servlet?

JDebugTool - Graphical Java Debugger
First make sure you have defined the environment variable JAVA_HOME to point to the root directory where you have the JDK installed. Then simply invoke on Windows Then in JDebugTool, select Attach... from the Target menu in the menubar, to display the Attach to Target dialog. On Windows, select the Shared Memory tab, and enter jdbconn in the Shared Memory Name field. On Unix, select the Socket tab, and enter 8000 in the Port Number field.
Related Questions

How do I run a servlet in Tomcat? Q: Should the Tomcat bootstrap classes be in my classpath?

Code Style: Apache Tomcat frequently asked questions (FAQ)
Your compilation classpath only needs to include the classes and libraries necessary for your servlet. It's unlikely you are using Tomcat bootstrap classes in your servlet but, if so, make sure this package is on your classpath. The URL you use partly depends on the port you have configured Tomcat to operate on. This is configured in the HTTP Connector element in server.xml.
Related Questions

Getting started with Tomcat Q: What is the Tomcat-Apache service for?

Code Style: Apache Tomcat frequently asked questions (FAQ)
This service configuration is given as an example of the WARP connector in the default Tomcat server installation and is not required for basic development purposes. The WARP connector allows Tomcat to establish two-way communication with a standard Apache HTTP server so they can delegate the response to Web requests. This means that Apache HTTPd can respond to requests for static content such as images, while Tomcat can service requests for JSP and servlets for example.
Related Questions

What is an invoker servlet in a Tomcat servlet container?

jGuru: Tomcat FAQ
Author: Avi Kak (http://www.jguru.com/guru/viewbio.jsp?EID=26410) The "invoker servlet" is a system-supplied servlet that extracts the name of the requested servlet class from the portion of the URL that comes after "/servlet". The invoker servlet then loads the requested servlet into the container and executes it. If you look at the contents of the webapp deployment descriptor file, web.
Related Questions

What URL do I use to run my servlet? Q: Can I return custom error pages in Tomcat?

Code Style: Apache Tomcat frequently asked questions (FAQ)
You can configure custom error pages in Tomcat using the error-page element in the application's web.xml file, as below. The error-code element contains the HTTP status code number, the location element contains the path to the error document relative to the Web application root. The error document may be a static HTML document or a JSP. The error-page element may be repeated to specify custom pages for any number of error codes.
Related Questions

Can I do servlet chaining in Tomcat? If so, how?

jGuru: Tomcat FAQ
Author: Alex Chaffee (http://www.jguru.com/guru/viewbio.jsp?EID=3) Question originally posed by Prashant Kumashi (http://www.jguru.com/guru/viewbio.jsp?EID=293844 Not yet. The next version (2.3) of the Servlet Spec will allow something like servlet chaining. It's called "filters." Can I use a Generic SAX/DOM XML parser for Tomcat instead of parser.jar? I tried using Xerces and get class not found errors for sun.xxxx parser during Tomcat initialization.
Related Questions

What is the relationship of the Apache Tomcat open-source application server to the J2EE SDK?

Java 2 Platform, Enterprise Edition (J2EE) FAQ
Tomcat is based on the original implementation of the JavaServer Pages (JSP) and Java Servlet specifications, which was donated by Sun to the Apache Software Foundation in 1999. Sun continues to participate in development of Tomcat at Apache, focusing on keeping Tomcat current with new versions of the specifications coming out of the Java Community Source Process. Sun adapts and integrates the then-current Tomcat source code into new releases of the J2EE SDK.
Related Questions

Why Apache Tomcat instead of IIS?

PrinterOn Campus Printing - FAQs
Because we can control the installation and configuration of an Apache web server during install, we use it as the default web server even though Microsoft IIS is usually available on a Windows 2000/XP/2003 platform. Apache also provides a cleaner servlet container through Tomcat. However, we also provide an IIS Plug-in, and you can configure IIS as the web server if you have a requirement to use Microsoft technologies.
Related Questions

How does Apache and Tomcat work together?

Cheap Webhosting service - PHP, JSP, MySQL, Postgres SQL - B...
We run Apache as a front-end for Tomcat, using mod_jk. In this configuration, Apache sees all Web requests. It processes some itself, and hands others off to Tomcat for processing. If you would like Tomcat to handle other URL patterns, you need to request us to set that up for you. For example, if you have a servlet-based online store at http://www.yourdomain.com/store, then you probably want Apache to send all URL's of the form /store/* to Tomcat.
Related Questions

How do I install Apache and Tomcat?

jGuru: Tomcat FAQ
Author: Alex Chaffee (http://www.jguru.com/guru/viewbio.jsp?EID=3) The Tomcat Apache HOWTO has been revised and placed on the Tomcat web site. Here's a way to do it: Getting, Installing and starting Tomcat Download Tomcat from here: Get Tomcat Installing and starting Tomcat This is a breeze. It consists of the following steps: Unzip "jakarta-tomcat.zip" to the root drive. The zip automatically makes a "jakarta-tomcat" folder and extracts to it.
Related Questions

How to deploy a servlet that includes javax.mail.* on Tomcat?

jGuru: Tomcat FAQ
Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Zuofeng Zeng (http://www.jguru.com/guru/viewbio.jsp?EID=240547 Just place the mail.jar and activation.jar files (and possibly the pop.jar file if you are using POP3) in the CLASSPATH of the web server. The simplest way to do this is to rely on the Java extensions framework. Add them to the JAVA_HOME/jre/lib/ext directory. Just copy the files there.
Related Questions

What is the difference between apache webserver, java webserver and tomcat server?

www.adobians.com
Tomcat is an open-source HTTP server from the Apache Foundation, written in Java, that supports Servlets and JSP. It can also be used as a "plug-in" to native-code HTTP servers, such as Apache Web Server and IIS, to provide support for Servlets (while still serving normal HTTP requests from the primary, native-code web server).
Related Questions

How do I debug an Apache Tomcat 5.0 JSP?

JDebugTool - Graphical Java Debugger
You can indirectly debug a Tomcat 5.0 JSP, by generating the corresponding Java source file, and then Mounting the corresponding Source Path in JDebugTool. First you will need to attach JDebugTool to Tomcat as described in FAQ #25 above. Then you will need to invoke your JSP to determine where the generated Java source file is created. For example, you would then Mount the following Source Path (see FAQ #1): where mywebapp would be the corresponding name of your web app.
Related Questions

How do I set up virtual hosting on Tomcat with Apache?

jGuru: Tomcat FAQ
Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Alex Chaffee PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=3 [The Tomcat User's Guide has a section called "Configuring Virtual Hosting" at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html. This document should also be in the distribution under the doc directory.
Related Questions

What is Apache?

Apache Server Frequently Asked Questions
runs on Windows NT/9x, Netware 5.x and above, OS/2, and most versions of Unix, as well as several other operating systems DBM databases for authentication allows you to easily set up password-protected pages with enormous numbers of authorized users, without bogging down the server. Customized responses to errors and problems Allows you to set up files, or even CGI scripts, which are returned by the server in response to errors and problems, e.g.
Related Questions

Can I run Restlets inside Tomcat or any Servlet container?

Restlet - Developer FAQ
Yes you can, even if this is not required. If you can't use the standalone HTTP connectors provided in the Noelios Restlet Engine, you can still use the ServerServlet connector which is an adapter between the Servlet API and the Restlet API. See the ServerServlet Javadocs for details on how to configure your Servlet container. Class "com.testServlet.
Related Questions

How do I use the DLLs from Tomcat to Servlet-enable Microsoft IIS?

jGuru: Tomcat FAQ
Author: Sylvain GIBIER (http://www.jguru.com/guru/viewbio.jsp?EID=11408) Question originally posed by Arnar Freyr Guðmundsson (http://www.jguru.com/guru/viewbio.jsp?EID=26079 Look at the Tomcat IIS How to file located at the address : http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html (or http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/etc/tomcat-iis-howto.html if the website version is out of date).
Related Questions

How do I use the DLLs from Tomcat to Servlet-enable IIS?

jGuru: Tomcat FAQ
Also refer to the recently published article at Use Microsoft's Internet Information Server as a Java servlet engine
Related Questions

Is there any way to tell Tomcat (or any servlet engine) never to use cookies for session management?

jGuru: Tomcat FAQ
Author: David Garcia (http://www.jguru.com/guru/viewbio.jsp?EID=17915) Question originally posed by Graham Lea (http://www.jguru.com/guru/viewbio.jsp?EID=101834 I'm not sure about Tomcat but in WebLogic (from 4.0.2 to 5.1 versions) there is parameter in the weblogic.properties file which can enable (or disable) cookies. in server.xml, you need to create a Context entry for your web app and add: cookies="false" in order for it to not use cookies by default.
Related Questions

Have you been able to replace the iPlanet servlet engine with Tomcat?

jGuru: Tomcat FAQ
Another reason iPlanet to Tomcat upgrades are hampered are that Tomcat uses a JSSE keystore for it's server-SSL implementation, whereas iPlanet uses the proprietary (now open source) NSS format. There is no satisfactory upgrade path for iPlanet customers who have invested in SSL certs installed in iPlanet, and none at all where they require client-auth as well. I would like to see JBOSS and Tomcat 4.03 integrated with iPlanet on both Linux and Solaris. I was able to integrate Tomcat 4.
Related Questions

How do I install Tomcat as servlet manager of Domino 5.x?

jGuru: Tomcat FAQ
Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Pablo Rodriguez (http://www.jguru.com/guru/viewbio.jsp?EID=101122 The Tomcat architecture allows for various front-ends or "connectors" to its servlet engine. In Tomcat 3.1, there are connectors for HTTP (to function as a stand-alone web server), IIS, and Netscape.
Related Questions

Which servlet containers have persistent session support? Specifically, does Tomcat 3.1?

jGuru: Tomcat FAQ
Author: Avi Kak (http://www.jguru.com/guru/viewbio.jsp?EID=26410) Question originally posed by Abhay Bhanushali (http://www.jguru.com/guru/viewbio.jsp?EID=202848 All servlet containers that implement the Servlet 2.2 API must provide for session tracking through either the use of cookies or through URL rewriting. All Tomcat servlet containers support session tracking. See also the jGuru Servlets FAQ entries by Alex Chaffee and Simon Wong.
Related Questions

How do I build a WAR to deploy on servlet container like Tomcat?

Longwell FAQ - SIMILE
Type mvn war:war at the command line. Maven will build the war package for you and place it in the ./target directory. After you have the war installed and expanded, you might want to modify the /WEB-INF/longwell.properties file to match your system settings.
Related Questions

To use Tomcat will we have to use the Apache web server?

JavaServer Pages[tm] - Apache Tomcat - FAQ
No. You can choose any web server on the market that supports JSP and Servlets (e.g. Sun ONE Web Server, IBM WebSphere, BEA Weblogic and others). We are working closely with a variety of partners to support them in quickly adding JSP and Servlet support to their web servers.
Related Questions

Apache/Tomcat] I created a new application but I cannot execute it. What do I do?

FAQ - JSP Hosting, Servlet Hosting, J2EE Hosting
Most likely you forgot that we are using Apache which then passes requests on to Tomcat via mod_jk and there is no mapping in Apache for the new application. Also note that the mappings do not allow multiple wildcards or exclusion lists in a JkMount, so we can do If you have a tomcat installation and you whish to use a servlet to replace noexist documents, and you want to do it using Apache and PHP, then Handle properly the wrong requested URL at the servlet "notFoundHandler".
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact