Tomcat-Apache Installation

anyone around here who knows how to set-up tomcat as a plug-in to apache, please???
i could not set it up! i followed the installation manual but still i couldn't make it work.
please share your knowledge. thank you!

Hi,
More notes.
TOMCAT_HOME = c:\jakarta-tomcat-3.3-b1
JAVA_HOME=c:\jsdk1.4.0
Apache_1.3.20
Install tomcat from winzip
Install Apache from win installation
Install mod_jk from mod_jk.zip into Apache/modules directory
as c:\Program Files/Apache Group/Apache/modules/mod_jk.dll
set TOMCAT_HOME and JAVA_HOME if not already set
set PATH=%JAVA_HOME%\bin;%PATH%
In Win98 do this to the config.sys file to deal with environment space problems.
SHELL=C:\COMMAND.COM /E:4096 /P
In the Apache/conf/httpd.conf file add this line at the end of the file
include c:/jakarta-tomcat-3.3-b1/conf/auto/mod_jk.conf
In the tomcat\conf\server.xml file ensure the last three lines of the files are
<ApacheConfig modjk="C:/Program Files/Apache Group/Apache/modules/mod_jk.dll" />
</ContextManager>
</Server>
In tomcat\conf\workers.properties either edit these lines or remove the # comment
workers.tomcat_home=c:\jakarta-tomcat-3.3-b1
workers.java_home=c:\j2sdk1.4.0
ps=\
Stop Apache and Tomcat
Restart tomcat then Apache
In Win98 do this to the config.sys file to deal with environment space problems.
SHELL=C:\COMMAND.COM /E:4096 /P
best,
kev

Similar Messages

  • TOMCAT APACHE installation : error while checking its syntax....

    hi all...
    please help...
    i had successfully installed apache in my XP pc.and i nearly finished with tomcat..but after i editted the httpd.conf and run the syntax checking i got this.i already check the adjustments i made to all the files..it was exactly like the manual i got from http://www.johnturner.com/howto/winxp-howto.html
    the error
    C:\apache\Apache2\bin>apache.exe -t
    Syntax error on line 968 of C:/apache/Apache2/conf/httpd.conf:
    Include takes one argument, Name of the config file to be included
    please 1000x help...
    thanks

    Pleaseeeeeeeeeeeeeeeeeeeeeeeeee helppp............

  • XSQL : deploy On tomcat-apache

    hi Every Body
    I'm Working with jdev 3.2. The Application I developed contains
    some Xsql Pages. I want to deploy this application on the tomcat-
    apache sever , installed on LINUX.
    I added all the classes that take in charge Xsql Pages to the
    classpath.
    I modified the web.xml tomcat file to map the xsql pages with
    the oracle.xml.xsql.XSQLServlet , by adding these lines
    <servlet>
    <servlet-name>xsql</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    <load-on-startup>-2147483646</load-on-startup>
    </servlet>
    and also the servlet mapping
    <servlet-mapping>
    <servlet-name>xsql</servlet-name></servlet-mapping>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I modified also the httpd.conf file adding these lines:
    AddType text/xsql .xsql
    AddHandler jserv-servlet .xsql
    BUT when I try to open an xsql page it's displayed like it's in
    the jdeloper editor (the code source is displayed) without being
    executed.
    I don't know what to do. any suggestion.
    thanks in advance
    Ghassen

    The installation instructions in the XSQL release note do not
    mention adding lines like:
    AddType text/xsql .xsql
    AddHandler jserv-servlet .xsql If you remove these lines and restart, what happens? IF fact When I add these lines , what heppens is that the Xsql
    Page is downloaded to my PC and Opened with Jdeveloper. If I
    remove these lines The page Is Opened in the browser but with
    out being executed.
    Ghassen

  • Error while starting Tomcat Apache and Jaguar services in AW webview server

    hi,
    I am facing a problem with AW webview server. I am not able to restart the Tomcat Apache and Jaguar Service after a planned server reboot activity.I am getting the below error.
    "Could not start Apache Tomcat service on Local Computer. Error 1069. The service could not start due to log on failure"
    The below account has been verified in the Domain controller and confirmed that the account is not Locked out or disabled.
    I have AW , HDS and Webview running on the same server.
    Can someone advice ...

    What OS version?  This might be a windows problem and not a Apache/Jaguar problem.
    david

  • Tomcat, Apache, mod_webapp and reloadable

    Hi, I'm not sure if this is the best spot to post this, if you know of another group that might be more helpful I'd appreciate the link...
    We are currently running Apache and using mod_webapp to connect Tomcat4 to it. We are defining a few applications in mod_webapp.conf, like so:
    WebAppConnection conn warp localhost:8008
    WebAppDeploy appname conn /appname
    Then in the server.xml we define the connector like this:
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="/dirname"
    acceptCount="10" debug="0"/>
    The problem is that new class files are not picked up by Tomcat. There does not seem to be a good place to set the customary "reloadable=true" flag for our development application. Does anybody know how I could accomplish this with our setup?
    Thanks!
    -Eric

    Did you create a context for the webapp in the tomcat
    conf/server.xml
    <Context path="/myApp" docBase="myApp"
    reloadable="true" debug="0">
    </Context>No, we are just using the "appBase" attribute of the Connector element in the server.xml file to reference each application. It seems to me that we should be defining a Context for each application also, though I'm not sure how we would then use those with the WarpConnector to attach to Apache.
    In case it will help, here are the server.xml and mod_webapp.conf contents:
    ===========
    server.xml
    ===========
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="/app03/pactsecm"
    acceptCount="10" debug="0"/>
    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0">
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    </server>
    ============
    mod_webapp.conf
    ============
    <IfModule mod_webapp.c>
    # Define the connection to Tomcat
    WebAppConnection conn warp localhost:8008
    WebAppDeploy     app     conn     /app
    WebAppInfo /stronghold/webapp-info
    </IfModule>

  • Final cut server-Test Page for Apache installation comes up when IP put in

    I have installed Final Cut Server on our Mac Pro Running OSX Leopard. Installation succeeded, but when I type in the IP address of the server in safari, the "Test Page for Apache Installation" comes up. This happens on every computer on the network. I need the client installation window to come in order to install the client. What am I missing, what settings need to be changed?
    Would greatly appreciate some help.
    Thanks

    So when you type in the URL your using this format http://hostname/FinalCutServer, where hostname is the IP address or name of the computer on which you installed Final Cut Server? Especially the "FinalCutServer" part.
    o| TonyTony |o

  • From Tomcat-Apache to OC4J

    I4m migrating an application from Tomcat-Apache to OC4J. I have a problem whith a taglib in a Servlet call a JSP that use a taglib.
    In the JSP call a taglib whith:
    <%@ taglib uri="/oficios" prefix="portalOficios"%>
    <jsp:useBean id="resultado" scope="session" class="com.npevolution.util.SQLResult" />
    <portalOficios:iteracion nombres="codigo" tipo="String" group="<%= resultado%>">
    <% String campoCodProv = (String)pageContext.getAttribute("campo0");%>
    <%String campoNombProv =(String)pageContext.getAttribute("campo1");%>
    </portalOficios:iteracion>
    thank you;
    Esther

    I looked at the code after a jsp compiled to a servlet. The
    jspService method of "EditTmpForm.jsp" is about 801 KB. But for another jsp "EditOperation.jsp", the  jspService method is about 236 KB.
    Both are much greater than 64 K, but why it runs okay for "EditOperation.jsp" but gives me error for "EditTmpForm.jsp"?
    Furthermore, since the HTML form is long, so the HTML code itself is bigger than 64 K, how can you prevent your _jspService method so that is is shorter than 64K?
    Thanks for your help!
    James

  • I am working on Security scan(to avoid cross site forgery) with the CSRF approach of tomcat(apache-tomcat-6.0.32) but I am getting following issue with firefox:

    I am working on Security scan(to avoid cross site forgery) with the CSRF approach of tomcat(apache-tomcat-6.0.32) but I am getting following issue with firefox:
    1. Firefox is not supporting CSRF provided by tomcat in a proper way firefox creating multiple sessions.
    2. Whenever any exception (like JSP exception) comes on page. Firefox redirects it to CSRFPreventionFilter and this filter creates new session.
    3. Sometimes while traversing through application also CSRFPreventionFilter filter creates new session.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • .htaccess files with MAMP + ORIGINAL Apache installation

    I installed MAMP on my MacBook Pro, and it set up phpMyAdmin quite nicely, but everything else has been a disaster. Though I can't connect to my databases with Dreamweaver, so I have to link to my online database. Similarly, working with MAMP's Apache installation kills my virtual hosts - and troubleshooting that is WAY over my head.
    So I'd like to emulate other MAMP users who have decided to stick with the original Apache installation. My big goal is to simply get my .htaccess files with mod-rewrite rules to work.
    According to this article...
    http://rexselin.wordpress.com/2006/07/28/making-mod-rewrite-and-htaccess-work-on -mac-os-x/
    ....htaccess files don't work on Mac's unless you do the following:
    1) Open the httpd.conf file and uncomment these three lines:
    #LoadModule rewrite_module modules/mod_rewrite.so
    #AddModule mod_rewrite.c
    #AccessFilename .htaccess
    The 2nd and 3rd lines were already uncommented. The closest I found to the first line was the following, which was also uncommented:
    LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    I left it alone.
    2) Change "AllowOverride None" to "AllowOverride All" in both the httpd.conf and /private/etc/httpd/users/MyName.conf files.
    I did this in my httpd.conf file, but if I do it in MyName.conf, it kills my virtual hosts.
    3) Restart Apache.
    Can anyone tell me what to do next? I copied some code from my Apache error logs below, in case it includes any tips. However, most of the more recent errors were probably logged when I was using MAMP's Apache program, so it might be worthless.
    Thanks!
    [Sat Mar 24 20:32:22 2007] [notice] Digest: generating secret for digest authentication ...
    [Sat Mar 24 20:32:22 2007] [notice] Digest: done
    [Sat Mar 24 20:32:22 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    [Sat Mar 24 20:37:40 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:42 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:47 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:49 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:54 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 21:02:31 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:41:08 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:44:16 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 00:44:16 2007] [notice] Digest: done
    [Sun Mar 25 00:44:16 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:47:46 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:47:53 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 00:47:53 2007] [notice] Digest: done
    [Sun Mar 25 00:47:53 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:51:32 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:51:37 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 00:51:37 2007] [notice] Digest: done
    [Sun Mar 25 00:51:37 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [I deleted a bunch of stuff here...]
    /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 12:44:40 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 12:44:46 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 12:44:46 2007] [notice] Digest: done
    [Sun Mar 25 12:44:46 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    [Sun Mar 25 13:26:37 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 14:26:12 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 14:26:18 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 14:26:18 2007] [notice] Digest: done
    [Sun Mar 25 14:26:18 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations

    Please ignore this thread. I finally stumbled over the problem - a line of sloppy code in my httpd.conf was apparently creating some interference. Thanks!

  • Tomcat & Apache Soap Installation

    I have install the Tomcat successfully and also install the Apache Soap.
    But when I tried to do the test (from: http://xml.apache.org/soap/docs/index.html):
    Point my browser to:
    http://localhost:port/soap/servlet/rpcrouter
    there is no expected answer like following appears:
    The browser should display the following:
    SOAP (RPC|Message) Router
    Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.
    the brower only says it cannot find the webpage!
    does anyone know the reason? your help is appreciated in advance now!!
    Gang

    This may be due to the classpath problem. xerces.jar should be first in the classpath. Otherwise for xml related files tomcat goes to jaxp.jar
    U read the following document. It'll help u a lot in installing apache soap.
    http://www.javaworld.com/javaworld/jw-04-2001/jw-0427-soap.html
    -seenu_ch

  • How to Authenticate a J2EE application running on Tomcat & Apache with OAM

    Hi All,
    Can somebody point me to docs which states how to integrate a J2EE software deployed on Tomcat(AppServer) & Apache(WebServer).
    I have Oracle Access Manager installed I need to enable SSO for that software.
    Thanks,
    RK

    HI ,
    Apart from the installation webgate and protection of the resource through OAM policies, you also need to modify your Java based application.
    As a part of integration what OAM do is, it weill pass the user information(eg user id etc) to the Java application as the header variables. And now you have to modify this application so that it will accept the user information send by OAM, also login page if any of the application is disabled.
    Also if you are going for cookie based approach, your landing jsp of java application should be capable of reading and validating obssocookie set by OAM.
    Hope this will help you.
    Thanks,
    Ankit

  • Java, JSTL and Tomcat Auto Installation( Windows)

    Anyone know of a program that installs the Java SDK, Tomca and JSTL all in one go?
    I'm fed up of messing about with all this manual configuration to no avail.
    Cheers guys.
    Jamie

    It's not that hard to do:
    1- Download the Windows installer for JDK 1.5.0_09 from this page: [url http://java.sun.com/javase/downloads/index.jsp]Java SE Downloads.
    - Click on the JDK 5.0 Update 9 Download button.
    - Click on the Accept radio button.
    - Click on the Windows Offline Installation, Multi-language link.
    2- Double-click on the jdk-1_5_0_09-windows-i586-p.exe file and follow the easy steps.
    3- Download the [url http://apache.mirrors.northco.net/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.exe]Windows installer for Tomcat 5.5.20.
    4- Double-click on the apache-tomcat-5.5.20.exe file and follow the easy steps.
    5- Download the [url http://gulus.usherbrooke.ca/pub/appl/apache/jakarta/taglibs/standard/binaries/jakarta-taglibs-standard-1.1.2.zip]JSTL 1.1.2.
    6- Extract the jstl.jar and standard.jar files into your WEB-INF/lib web application folder.
    You're all set!

  • Problem in project using Eclipse+Tomcat+Apache Beehive

    Hi,
    Software used
    Operating System : Red Hat Linux
    IDE : eclipse 3.1 M7
    Server : Tomcat 5.5.10
    Webservice Package : Apache Beehive Build 20050505
    Plugin for integrating Apache Beehive with eclipse is POLLINATE
    My Problem: when I created my first webservice project . In all the log4j.xml files in the project. It gave an error saying that log4j.dtd file not found inside /root/workspace/SampleProject1/webcontent/WEB-INF/src/log4j.dtd
    Please provide me some suggestions to clean this error
    Thank you
    Mike

    didi you set the right path to the jre?
    there's a goog mailing llist for tomcat issues. go to the jakarta/tomcat website to subscribe. they might help you.

  • Content-type problems while using struts+tomcat+apache+mod_jk

    Hi!
    Could anyone tell me how to solve the following problem.
    Struts-application works under apache + mod_jk + tomcat 3.3.1. Operating system is Linux.
    It's impossible to me to make tomcat to send HTTP-answers in UTF-8.
    I was trying the following:
    1. Set <DecodeInterceptor defaultEncoding="UTF-8" /> in server.xml
    (Has no effect. Tomcat responds with Content-Type: text/html; charset=iso-8859-1)
    2. Insert <%@ page contentType="text/html; charset=utf-8"%> into each page header.
    (Works fine but when struts-application gets GET/POST-data the two-bytes national characters
    are comverted into "?"-symbols)
    Is there any way to make tomcat 3.3.1 to send HTTP-answers in UTF-8?

    I don't know what the DecodeInterceptor does... but....
    If you use number 2, you are only telling the browser what that page's output is. When you process the data, Tomcat for some reason always reads it as ISO8895-1, so you need to tell Tomcat to change it to UTF-8. You can do that by calling request.setCharacterEncoding("UTF-8"), either in the JSP page, or if you need it in a servlet, you can do that in a filter...
    It's somewhat described here how to set it up...
    http://www.mail-archive.com/[email protected]/msg01193.html

  • Servlets and Tomcat/Apache

    Okay,
    Tomcat 4.1 running with Apache.
    Installed mod_jk, piece of cake.
    JSPs run through Apache like a dream.
    Tomcat examples ( jsp and servlets) run through Apache perfectly ( that is no :8080 business).
    My JSP's run through Apache no problem. Works great.
    My SERVLETS WILL NOT RUN THROUGH APACHE FOR ANYTHING.
    My context looks like this in server.xml:
    <Context path="/nuweb" docBase="/home/shared/nuweb" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="nuweb" suffix=".log"
    timestamp="true"/>
    </Context>
    Note: that I am not under <TOMCAT_HOME>/webapps.
    The reason is that I will, in production not be the Unix admin on the server. I will only have priviledges within my directory. I will not be able to drop war files in the webapps directory. I will not be able
    to start and stop tomcat or apache ( there are 100 diffrent apache contexts on that machine and someday many of them will be going through tomcat for jsp and servlet support).
    My servlets will only run if I put :8080/nuweb/servlet/HelloServlet in the URL. Take off the 8080 and I get Page not found. Not the tomcat 404 page, the Browswer 404 errror.
    Here is my web.xml which lives in the WEB-INF directory of of /home/shared/nuweb
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>org.nu.servlet.HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/hello</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    </web-app>
    In devlopment I am on a system that is very close to what the production server will look like ( Tomcat 4.1 same version of Apache, same Unix ). In development I can restart all the servers edit server.xml etc. On the production I would have to schedule that stuff. I want to be able to compile classes and drop them in the WEB-INF/classes... directory and have them run. Is that too much to ask?

    Hi,
    I am also facing same error.
    I am not able to view my servlets via apache web server.
    ie when i do "http://localhost/enlighta/logon"
    I get http 404 page not found error
    but when I do http://localhost:8080/enlighta/logon
    all works fine
    I am using apache 2 and tomcat 4.5
    This is I have done:
    1.I have http server running on port 80
    2. appserver on port 8080
    3. I have a war file enlighta.war deployed on webserevr
    4. The static content like images and html page I have moved to webserver
    5. The servlet context of the app on the app server is /enlighta
    6. In the web.xml I have defined all the servlet maping.
    the port 8009 has the connecter is running/listening.
    the configuration
    sever.xml on tomcat
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    httpd.conf on apache
    # Load mod_jk
    LoadModule jk_module modules/mod_jk.so
    # Configure mod_jk
    JkWorkersFile conf/workers.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel info
    # First Virtual Host.
    <VirtualHost 192.168.1.2:8080>
    ServerAdmin [email protected]
    DocumentRoot /enlighta/
    ServerName localhost
    ErrorLog logs/enlighta_error_log
    TransferLog logs/enlighta_access_log
    JkMount /enlighta/* ajp13
    </VirtualHost>
    workers.properties
    worker.list=ajp13
    # Defining a worker named ajp13w and of type ajp13
    # Note that the name and the type do not have to match.
    worker.ajp13.type=ajp13
    worker.ajp13.host=localhost
    worker.ajp13.port=8009
    Now I feel I am doing something wrong on defining virtual host.
    Or may be something else is wrong.
    I have gone thru the previous thread but I dont have mod_jk.conf file.
    Please help!!!
    Thanks
    Sachin

Maybe you are looking for