Apache tomcat and mod_jk2 with awstats

Hi all,
Here's my situation.
I've 2 servers, web server (apache with perl)
and app. server (tomcat, java)
link with mod_jk2.
I would like to install awstats for get web stat. data.
I installed it in web server. can run the perl and get some result. I can generate awstats static pages result. but I would like to allow user to view on web.
such as http://www.abc.com/awstats/awstats.pl?config=xxx.
because mod_jk is using, all request / response will send to app. server. how to exclude the awstats directory? which means user cannot view the awstats report on web.
pls help
thanks
Regards,
Kin

Ended up downloading and installing the mod_jk instead of the mod_jk2 that came with RedHat Application Server.

Similar Messages

  • Apache, Tomcat  and mod_jk2

    Hi, I' m sorry I posted this topic in other forum( I made a mistake).
    I 'm trying to create a cluster server using Apache and two Tomcat's instance. My problem is when I have to use the JK2 connector (reference http://tomcat.apache.org/tomcat-4.1-doc/config/jk.html) because I need to compile some files, but I new in solaris and I don't know how to do it.
    I downloaded the file from this site http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/
    I'm using Apache 2.0.55, Tomcat 5.028 and Solaris 9
    I need to create a mod_jk2.so file
    Does someone help me?
    Regards

    I've only ever done this in windows. This page should take you through it ok though:
    http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html

  • Apex Listener/Apache Tomact and filenames with spaces

    I've installed the Apex Listener with Apache Tomcat, and all seems to work fine. Except when I try to do a CSV file data upload via the utilities screen in apex. If the filename/directory path contains spaces, then Apex reports "File Must Be Specified" error - yet if I do this same operation via EPG instead of Tomcat, it works. Are there any restrictions in Tomcat to using spaces??

    Look at this thread. Re: File upload problem
    regards.

  • GPL Licence, Apache Tomcat and J2EE5

    Hello !
    I'd like to know if it is possible for a company to sell a server with apache tomcat and J2EE 5 ?
    Does this company have to pay fees to Sun ?

    Hi,
    I have same problem with B1 9.1, Version for Hana, but I cannot apply the workaround of San Xu on linux server.
    I try a clean installation of 9.1 servertools on linux server, but on windows server, when I run the Upgrade.exe for the databases, the error appears: "Could not connect to licence server; enter valid password".
    I've the italian localization.
    Can someone help me?
    Thanks & Regards
    Valerio

  • From where can we dowload Apache tomcat and how to install

    From where can we dowload Apache tomcat and how to install

    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html

  • Error with JSP, Apache Tomcat and SQL

    Hi,
    I was trying to do some user suthentication script.
    This was my code..
    <html>
    <body>
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.util.*" %>
    <%
    String Username1 = "";
    String Password1 = "";
    String Username2 = "";
    String Password2 = "";
    String qry = "";
    Username2 = request.getParameter("uname");
    Password2 = request.getParameter("pass");
    qry = "select * from tbl_Users where Username="+Username2;
    ResultSet Rs;
    PreparedStatement pstmt=null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:BankDSN");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("select * from tbl_Users");
    while (rs.next())
    Username1 = rs.getString("Username");
         Password1 = rs.getString("Password");     
         if (Password1 == Password2)
         response.sendRedirect("home.jsp");
         else
         response.sendRedirect("sorry.jsp");
    rs.close();
    stmt.close();
    con.close();
    %>
    </table>
    </body>
    </html>
    When I tried to invoke the JSP page, I got the following error
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.IllegalStateException
         at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFacade.java:173)
         at org.apache.jsp.validate$jsp._jspService(validate$jsp.java:99)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:595)
    Any help would be appreciated.....
    Regards,
    Ramprasad

    Dear vraptor,
    I had seen ur jsp page , can i tell u one thing , never write a connection in the jsp page, why becoz the code can be seen.
    ok here the problem is ur getting the username and password and putting an if condition inside the while loop so this throws an error.
    anyway ur getting the values like
    while (rs.next())
    Username1 = rs.getString("Username");
    Password1 = rs.getString("Password");
    now the username and password are already retrived from server side, just do the check now outside the loop.
    if (Password1 == Password2)
    response.sendRedirect("home.jsp");
    else
    response.sendRedirect("sorry.jsp");
    one more thing is check whether the page forwarding to correct page like response.sendRedirect("home.jsp");
    see for the "/<directory Name>"/home.jsp if u keep all the jsp at one directory.
    i mean this response.sendRedirect("/jspdirectory/home.jsp");
    try this
    regards
    haribabu

  • How to protect an application running on Apache Tomcat app server with OAM 11gR2

    Gurus,
    We have an Apache Tomcat based application named "ABCD" here at client site that we want OAM 11gR2 PS1 to integrate with for SSO purposes. I have successfully configured OHS to reverse proxy requests to Apache Tomcat server whenever somebody tries to access the application URL but still, I am getting the application login page once I have successfully authenticated on OAM SSO login page. The Tomcat based application is authenticating users against a "UserDatabase realm".
    I know in terms of weblogic application, there is an OAM identity asserter provider which then populates the User Principal for the java environment with the authenticated OAM user. But there is no such OAM identity provider for Tomcat.
    So my question is, is there an provider (or Tomcat equivalent) which will entrust authentication to a header, that could be used to populate the Java User Principal from the OAM_REMOTE_USER header? Is the weblogic equivalent of authentication providers present in tomcat as well? Are those called valves?
    Please advise to the earliest.
    Thanks !!

    Aakash,
    I did follow the 4 steps that you mentioned to me. Out of the 4 that you had mentioned, I already had the webgate in place on OHS server and I was already passing the remote_user http header in oam policy as action.
    As part of Step #2: Install mod_jk plugin on OHS server that you mentioned
    1.) I downloaded the tomcat connector - tomcat-connectors-1.2.37-src
    2.) I had to run ./configure,make, make install on my OHS server which runs on RHEL 6. It created the mod_jk.so file. I pasted it in the needed folder.
    3.) I then created the httpd.conf file and workers.properties file as said in the connector docs.
    4.) Restarted OHS.
    As part of Step #3: Configure tomcat's ajp connector that you mentioned and I went through all the links pasted below but didn't find actually what needs to be in place to configure tomcat's ajp connector. I do see in the server.xml of tomcat app server that the ajp 1.3 protocol is supported:
    http://tomcat.apache.org/tomcat-4.0-doc/config/ajp.html
    http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s8
    http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html
    http://www.mulesoft.com/understanding-tomcat-connectors
    <!-- A "Connector" represents an endpoint by which requests are received
             and responses are returned. Documentation at :
             Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
             Java AJP  Connector: /docs/config/ajp.html
             APR (HTTP/AJP) Connector: /docs/apr.html
             Define a non-SSL HTTP/1.1 Connector on port 8080
        -->
        <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" />
    <!-- Define an AJP 1.3 Connector on port 8009 -->
        <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    Do we need to disable the HTTP protocol in Tomcat and keep only AJP connector enabled? If yes, how to do that?
    I am trying to connect to the application from OHS server like so I am using the http protocal right? How should I use the ajp protocol to connect to tomcat application? 
    http://ohs-host:ohs-port/abcd
    Thanks !!!!!

  • Apache Tomcat and Authentication Control

    Hi,
    IIS has �Basic Authentication� to check for username and password.
    Does anyone knows a way to set up and configures Apache Tomcat 4.1.XX to authenticate the user? I have the default web site: http://localhost:8080/test/servlet/com.test.HomeServlet and I want authenticate the user before they get to this page.
    Note: http://localhost:8080/admin/login.jsp has the login page for the admin. Can I reuse this login page and using the same users database for my default web site?
    Please help, Thanks!
    -John

    Hi,
    After starting your server, hit the following URL in a browser window.
    http://localhost:8080/tomcat-docs/realm-howto.html
    This documentation will give you some idea how to authenticate users in Tomcat.
    Thanks and regards,
    Pazhanikanthan. P

  • Apache Tomcat and eclipse for EP

    Hi,
    I have got anew book on SAP Enterprise protal by SAP Press.
    There is also a CD which contains Portal development kit, eclipse 2.1, apache tomcat 3.3.1 and portal development kit plug-in for eclipse.
    I don't have any SAP Access as if now.
    Is it possible to learn SAP EP programming based on the softwares I have got on these CD and the book.
    Tushar

    Tushur,  yes you can use that software to learn how to code JSPDynPage applications for the portal.   This is how I started learning portal technology.  I have since moved on to webdynpro.   You might consider, as Srinivas suggested,  download the Sneak Preview of WAS 6.40 java.  This will give you a complete development envirnment,  the NWDS,  the portal,  and the WAS to run it on.  Next thing you now, you'll be writing webdynpro apps like the best of em.
    Regards,
    Rich Heilman

  • Apache Tomcat and Servlets configuration...

    Hi there fellow Javites,
    does anybody know how to configure the apache tomcat server xml file to enable you to use the "old servlet url technique"? I hear that its been disabled by default in newer versions Tomcat.
    You know where you would previously type in: http://localhost:8080/servlet/folder1.servlets.TheServlet
    ,but now you have to tell your web.xml file where your servlet is so you now have to type in:
    http://localhost:8080/TheServlet
    That is, unless you enable the server config file to allow you to do both.
    I hate to ask such questions but I really hate the Apache Tomcat documentation.
    Thanks.

    Hi there,
    well I was kinda hoping they'd be a shortcut to having to map the servlet in the web.xml file. In the older versions of the Apache tomcat you used to just be able to type in the url and the Servlet would be found.
    Does anybody know how to enable the later versions of Apache Tomcat via the config file to use the old style of Servlet mapping?
    I guess a more important question I should be asking also is, is this older style of mapping servlets now considered bad practice and is why it is no longer enabled by default in more recent Apache Tomcat versions???
    Thank you, this community rocks! Keep up the Javite work guys, they'll never take us alive. NO LOL. :D

  • How to install apache tomcat in nebeans

    hello everyone,
    i am not able to configure apache tomcat in my netbeans.
    i am little bit confuse between apache tomcat and glassfish servers. can any one tell where we glassfish and where we use apache tomcat?

    Tomcat is a 'servlet engine'; put as simple as I can make it, it is a Java webserver. You can create web applications based on servlets & JSPs and run them on Tomcat.
    Glassfish is an Java Enterprise (JEE) server and provides an implementation for the full Java Enterprise Edition specification. This also includes servlets & JSPs, but on top of that you get a whole batch of additional services.
    I would start with Tomcat if I were you. You don't need to configure anything, if you download the proper Netbeans bundle it comes with Tomcat 7 already setup. If that is not the case, you either picked the wrong bundle or you made wrong decisions during installation.
    edit:
    Question for you. Do you know anything about Java at all (since you are posting this in new to java)? If not then you are waaaaaaaay out of your league trying to get into web programming, it is complicated and confusing enough if you know Java, it is near impossible to understand if you don't even know the basics of the basics yet.
    Edited by: gimbal2 on Aug 5, 2011 3:57 AM

  • Multiple Realms in Apache Tomcat

    Sorry, if this is the wrong forum, but its the closest match i could find.
    I am trying to run 2 servlets that use apache tomcat's j_security with a FORM login to authenticate clients. I would like these 2 servlets to be authenticated by having j_security look in two different tables in a MS SQL 2000 Server database.
    I have read up a lot on apache tomcat's site, and the sense that i've made of it is that i need to have multiple realms, and in order to do that i need multiple contexts. I've tried wrapping my realm tag in a context tag but it doesn't work. What am i missing?
    thanks.
    <Context path="/servlet/" docBase="ROOT/WEB-INF/classes" reloadable="true" />
              <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
         driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
         connectionName="sa" connectionPassword="******"
         connectionURL="jdbc:microsoft:sqlserver://localhost:1433;databaseName=ConcernCheck;selectMethod=cursor;"
    userTable="Operator" userNameCol="Username" userCredCol="Password"
         userRoleTable="Operator" roleNameCol="Role" />
    </Context>
    Thanks

    Hi!
    I have the same problem! did you solve this problem? can you give me a hint?
    Tnx,
    Stanislav

  • Latest versions of Apache/Tomcat for BO65SP3

    What are the latest versions of Apache/Tomcat that can be used with Business Objects 6.5 sp3 i.e. are particular Apache/Tomcat versions bundled with a Business Objects release
    We have had doubts cast over the security features of the versions of Apaceh/Tomcat we use and need to know whether we can use later versions of Apache/Tomcat, whilst retaining existing version of Business Objects 6.5.3 ?

    bundled with Tomcat 5.5.25
    Supported with up to Tomcat 6.0.18
    check this doc :http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4079f8f6-2b49-2d10-d790-bc596012dc25

  • JSP Apache-Tomcat

    I have a problem running a JSP program in a second PC.
    In the first PC I am running Apache-Tomcat and I execute the program with this command in a browser:
    http://localhost:8080/jspexamples/myJSPs/almacen/Venta01.jsp
    It works OK.
    I also have the C:\jakarta-tomcat-5.0.28 as a shared folder and I turn off the firewalls.
    In the second PC I am trying to run the same program using this command in the browser:
    http://192.168.15.5/jspexamples/myJSPs/almacen/Venta01.jsp
    This 192.168.15.5 is the IP address of the server PC (first PC), which is running the Apache-Tomcat. The program does not run.
    P.D.: The program is in the first PC in the folder:
    C:\jakarta-tomcat-5.0.28\webapps\jspexamples\myJSPs\almacen
    Thanks, John

    Try http://192.168.15.5:8080/jspexamples/myJSPs/almacen/Venta01.jsp
    When you create web application, it should be placed in separate. The default place is ${CATALINA_BASE}\webapps. Do not add your jsps in existing application (jspexamples in this case).
    I also have the C:\jakarta-tomcat-5.0.28 as a shared folder and I turn off the firewalls.This folder can be (and should be) unshared. Tomcat listens port 8080 (by default configuation), you can turn on your firewall, allow connections for 8080 port and all will work! (at least, all can work in theory :) )

  • JSP & Apache Tomcat  &hsqldb

    HI every one,please be patient while reading this message.
    I installed apache tomcat and created a database by hsqldb.i want to work with this database from my JSP files.i read the documentation of hsqldb and they say that the best mode or the official one is to run the servlet server(as you know there are five modes of server).and they say that the servlet engine(Apache in this case) is responsible for lanching this servlet server.How can i run it and solve this problem.
    thanks very very much.

    thnx a lot for replying but what i want to know is how to
    1- create database with hsqldb
    2-add,delete ,insert ... to the database from jsp with apache running.
    Note:will this steps be the same if i put the files on my site and also the database.
    i mean ,will the same configurations be ok/
    thnx again and waiting for your reply.

Maybe you are looking for