How to configure "mod_gzip" in tomcat

Hi falks,
i'd like to ask if someone con help me to configure the "mod_gzip" component with tomcat!
If yes could you post me an example please?
Many thanks
Ciro.

thanks for the reply, i have configured the connection pool settings in the tomcat.
I created a class with static method, which will return the connection object.
whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
is it the right way of using the connection object in the web application.

Similar Messages

  • How to configure datasources in tomcat 4.1.12 to obtain OracleResultSets

    Hi!
    Since my application running under both OracleAS and Tomcat 4.1.12 should obtain connection pooling i tried to configure the application servers. Our application makes use of OracleResultSet. I configured OracleAS by editing the data-sources.xml file which works very well:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="OracleDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott"
    password="tiger"
    url="jdbc:oracle:thin:@testdb:1525:ORA5"
    inactivity-timeout="30"
    />
    The code for jndi lookup is here. It works fine when i cast ResultSet to OracleResultSet using OracleAS:
    initCtx = new InitialContext();
    envCtx = (Context) initCtx.lookup("java:comp/env");
    dataSource = (DataSource) envCtx.lookup("jdbc/OracleDS");
    con = dataSource.getConnection();
    ResultSet rs = con.executeQuery("..");
    OracleResultSet orars = (OracleResultSet)rs;
    Then i configured tomcat 4.1.12 server.xml file:
    <Resource name="jdbc/OracleDS" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/OracleDS">
    <parameter><name>username</name><value>scott</value></parameter>
    <parameter><name>password</name><value>tiger</value></parameter>
    <parameter><name>driverClassName</name><value>oracle.jdbc.driver.OracleDriver</value></parameter>
    <parameter><name>url</name><value>jdbc:oracle:thin:@testdb:1525:ORA5</value></parameter>
    </ResourceParams>
    The same source for jndi lookup brings up a ClassCastException at line
    OracleResultSet orars = (OracleResultSet)rs;
    Therefore i tried to add a new parameter in tomcats server.xml:
    <parameter><name>factory</name><value>com.evermind.sql.DriverManagerDataSource</value></parameter>
    Now following exceptions occurs:
    javax.naming.NamingException: Could not create resource factory instance, com.evermind.sql.DriverManagerDataSource
    java.lang.Object org.apache.naming.factory.ResourceFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
    I have oc4j.jar and classes12.jar in tomcats home directory under config/lib.
    How should i configure tomcat to be able to use connection pooling and OracleResultSets?
    Thanks in advance!
    thomas

    ?

  • How to configure SSL in tomcat and transfer data through HTTPS.

    Hi all,
    I hav an urgent requirement for transfering data through HTTPS.But hav no idea how to achieve that,using SSL.
    For that i have to configure tomcat.What and all i hav to do
    download and which and all files i hav to alter for configuring the tomcat.
    seeking for ur help,
    thank you

    Multi-posted.
    http://forum.java.sun.com/thread.jspa?threadID=591116&messageID=3079266#3079266
    http://forum.java.sun.com/thread.jspa?threadID=591062&messageID=3078566#3078566
    http://forum.java.sun.com/thread.jspa?threadID=590987&messageID=3077736#3077736

  • Configure the embedded Tomcat Server

    Hello,
    is there a documentation which tells me how to configure the embedded Tomcat Server in the Oracle Content Server? I can't get it work.
    When I try to start an web application from "JSP Server Web App Admin" I get the following error message:
    Content Server Request Failed
    csJspServerErrorAddWebAppService Failed to add context /idc/groups/jsp/documents/adacct/hello. Unable to execute service method 'addContext'.
    [ Details ]
    intradoc.common.ServiceException: !csJspServerErrorAddContext,/idc/groups/jsp/documents/adacct/hello!csUnableToExecMethod,addContext at intradoc.server.jsp.JspServiceHandler.addContext(JspServiceHandler.java:152) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142) at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:75) at intradoc.server.Service.doCodeEx(Service.java:488) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction(Service.java:450) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) at intradoc.server.Service.doActions(Service.java:445) at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1111) at intradoc.server.Service.executeActions(Service.java:431) at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:632) at intradoc.server.Service.doRequest(Service.java:1709) at intradoc.server.ServiceManager.processCommand(ServiceManager.java:357) at intradoc.server.IdcServerThread.run(IdcServerThread.java:195) Caused by: intradoc.common.ServiceException: !csJspServerErrorAddContext,/idc/groups/jsp/documents/adacct/hello!csUnableToExecMethod,addContext at intradoc.server.jsp.JspProvider.addContext(JspProvider.java:391) at intradoc.server.jsp.JspServiceHandler.addContext(JspServiceHandler.java:116) ... 19 more
    And it is also not possible to use jsp layout pages in Site created in Site Studio. When I try to load pages using a jsp layout page the browser displays a blank page.

    Hi,
    Even i am also facing the same issue after following all those steps.
    Please find the error which i m getting.
    csJspServerErrorAddWebAppService The target file cannot be accessed. Unable to rename the file 'F:\stellent\indxpdod2\weblayout\groups\chanpart\@cccd\documents\manufacturing\enhstellsrchint' to 'F:\stellent\indxpdod2\weblayout\groups\chanpart\@cccd\documents\manufacturing\enhstellsrchint~jsp'.

  • How to configure applet/servlet in Tomcat?

    I'm building a web application which is going to be deployed in Tomcat. I have an applet(called MYAPPLET here) which "calls" a servlet(called MYSERVLET here). I cannot figure out how to configure the whole thing.
    /test is my docbase. In /test I made a directory "applet classes" and a directory "servlet". The applet tag I use in the HTML file looks like this:
    <applet
    code="MYAPPLET.class"
    codebase="http://localhost:8080/test/applet classes/"
    <!-- Tell the applet where its peer is located -->
    <param
    name="servlet"
    value="http://localhost:8080/test/servlet/MYSERVLET" />
    </applet>
    Now, when opening the page, the applet can be found but Tomcat gives an error 404 saying that it can not find the servlet. On the other hand, If I make an entry in my web.xml (with url mapping
    <url-pattern>/test </url-pattern> or <url-pattern>/test/servlet </url-pattern>, depending on where I put MYSERVLET)
    for the servlet mentioned above and I put the MYSERVLET in either the WEB-INF/classes directory or in /test/servlet Tomcat gives an error 403. It refuses to connect to the servlet!
    Please can anyone help me. THanx in advance
    debeumers

    You are configuring Tomcat and if you have further questions then post new questions in the forum "Java Servlet Technology".
    Given that your servlet url is "localhost:8080/test/servlet/MyServlet"
    This assumes -
    1) You have created a web application called "test". You have a directory called "test" under- $CATALINA_HOME/webapps
    2) Your html files, jsp files, and subdirectory "applet-classes" (Note - do Not use spaces when naming directories) exist in this top level directory of your web app. If you choose to place your applet classes in this subdir then the codebase can be "applet-classes" - omitting the "/" means this directory is located relative to the current directory of the html file. (No jar files? No archive param then..)
    3) You have a class file called "MyServlet" located - $CATALINA_HOME/webapps/test/WEB-INF/classes
    Some versions of Tomcat require you to uncomment out the area of the Mapping for the Invoker Servlet element in $CAT_HOME/conf/web.xml.
    <servlet-name>invoker</servlet-name>
    <url-mapping>/servlet/*</url-mapping>
    Once this is done, you need not create a directory called "servlet" anywhere in your structure. It is the url mapping.
    You will want to apply url-patterns and mappings to your application specific web.xml (This is located in - $C_H/webapps/test/WEB-INF) when it comes time to deploy the app, but that is not required for testing and development. You need not make changes to the app specific web.xml at this time just to get the servlet to run.
    And finally I suggest you read a book on this subject...

  • How to configure connection pooling in tomcat?

    how to configure connection pooling in tomcat and how to use the connection pooling in the jsp and servlets?

    thanks for the reply, i have configured the connection pool settings in the tomcat.
    I created a class with static method, which will return the connection object.
    whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
    is it the right way of using the connection object in the web application.

  • JMS with TomCat ? how to configure or install JMS

    i am new to JMS i dont know how to configure JMS.I have copied ths javax.jms.jar and jms.jar in JDK1.4 directories like ../lib, jre/lib etc. also set the classpaths but i cant compile a simple file error saya no package found. can anyone help me please ???? webserver i am using is tomcat. tell me the solution step wise please be soon thakyou again. in advance ;)

    when you say classpaths, you mean you added ../lib/jms.jar to your class path. that is you explicitly put the jar file in your path and it won't compile?
    _sjz.

  • How to configure Oracle Datasource in Tomcat

    Hello,
    My configuration of a Tomcat Datasource (oracle) appears to be wrong. Either that or my oraclejdbc.jar file is in the wrong place. Perhaps my classpath setting is wrong. Any help is appreciated.
    Tomcat console error:
    20070423 20:46:22.514 http-8080-Processor24(0x005878d2)
    JdbcUtil#getDataSourceObject() Throw com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'java:comp/env/jdbc/wrsPool':
    ==> javax.naming.OperationNotSupportedException: Can't generate an absolute name for this namespace
    Trace output from JdbcUtil:
    XPRESS exception:
    Can't call method getDataSourceObject on class com.waveset.util.JdbcUtil ==> com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'java:comp/env/jdbc/wrsPool': ==> javax.naming.OperationNotSupportedException: Can't generate an absolute name for this namespace
    XPRESS exception:
    Can't call method queryRecords on class com.waveset.util.JdbcUtil ==> java.lang.NullPointerException:
    The express code used to call JdbcUtil follows:
    <defvar name='dataSource'>
    <new class='javax.sql.DataSource'/>
    </defvar>
    <set name='dataSource'>
    <invoke name='getDataSourceObject' class='com.waveset.util.JdbcUtil'>
    <null/>
    <s>java:comp/env/jdbc/wrsPool</s>
    <null/>
    </invoke>
    </set>
    The Tomcat configuration *.xml file
    <?xml version='1.0' encoding='utf-8'?>
    <Context docBase="wavex" path="/wavex" useNaming="false" workDir="work\Catalina\localhost\wavex">
    <Resource name="jdbc/waveexPool " type="javax.sql.DataSource"/>
    <Resource name="jdbc/wrsPool" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/waveexPool ">
    <parameter>
    <name>url</name>
    <value>jdbc:sqlserver://localhost:1433;DatabaseName=WaveEx</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    <ResourceParams name="jdbc/wrsPool">
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@vega.vf.lmco.com:1521:dev2</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    </Context>
    Environment is:
    IDM 7.0 on Windows 2000, sql server houses the repository.
    Tomcat 5.0.28 with JDK 1.6

    thanks for the reply, i have configured the connection pool settings in the tomcat.
    I created a class with static method, which will return the connection object.
    whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
    is it the right way of using the connection object in the web application.

  • How to Install and Configure Java and Tomcat

    Hi Everybody,
    I am using the following versions of java and tomcat:
    JAVA: j2sdk-1_4_2_13
    Tomcat: jakarta-tomcat-5.0.5
    I tried to configure several times both but everytime the result is the same. I am setting the following variables:
    PATH: .;D:\j2sdk1.4.2_13\bin;D:\Tomcat 5.0\bin
    CLASSPATH: .;D:\j2sdk1.4.2_13\lib;D:\Tomcat 5.0\common\lib\servlet-api.jar
    JAVA_HOME: D:\j2sdk1.4.2_13
    Please correct what mistake i am doing again and again. I appreciate your effort.
    Thanks in advance.
    Himanshu

    Fine sir, I will tell evrything in detail what steps i am following during installation and configuring java and Tomcat.
    1) I am using the following versions(exe) of java and tomcat:
    JAVA: j2sdk-1_4_2_13-windows-i586-p
    Tomcat: jakarta-tomcat-5.0.5
    2) Then, i follow exactly the same variable names and values to configure java as mentioned below to make java work under User variables header:
    PATH: .;D:\j2sdk1.4.2_13\bin
    CLASSPATH: .;D:\j2sdk1.4.2_13\lib
    JAVA_HOME: D:\j2sdk1.4.2_13
    Above steps i follow only for installing java. And it also not working properly. If i run my .java file from the destination of the file then it will be execulted but if i try to execute from any other location then it doesn't, it shows the following message in the DOS prompt:
    error: cannot read: Hello.java
    1 error
    Now, please correct what mistake i am doing.
    Thanks
    Himanshu

  • How to configure Personal WS to sort names by last name?

    Hello,
    I was recently going through my Novell Vibe Admin Guide and came across directions on how to configure the navigation panel in the Personal Workspaces to sort names by last name (by adding wsTree.titleFormat=1to the ssf-ext.properties file). Does anyone know how to do this with the actual Personal Workspace Landing Page itself? We use the Personal Workspace Landing Page as a make shift employee directory. Please see the attached image if I am not being very clear:
    I thank you for your help.

    Originally Posted by rblehar
    Hello,
    I was recently going through my Novell Vibe Admin Guide and came across directions on how to configure the navigation panel in the Personal Workspaces to sort names by last name (by adding wsTree.titleFormat=1to the ssf-ext.properties file). Does anyone know how to do this with the actual Personal Workspace Landing Page itself? We use the Personal Workspace Landing Page as a make shift employee directory. Please see the attached image if I am not being very clear:
    I thank you for your help.
    I haven't tested/checked this, but maybe it's possible by modifying the profile_list.jsp (in /[vibe install path]/apache-tomcat/webapps/ssf/WEB-INF/jsp/definition_elements/)
    This thread could be of use: https://vibe.novell.com/ssf/a/c/p_na...beonprem_url/1
    Curious to know how you go!
    Cheers,
    Willem

  • How to configure automatic reloading the class in jboss-3.2.1_tomcat-4.1.24

    HI,
    In tomcat, web context is specified in Server .xml file with
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true" />.
    this will deploy my examples webapplication in Tomcat server. And the property reloadable="ture" makes my life easiear. When even I change a .class, the class is automatically loaded in to memory with out restarting the server. Let me know the how to configure the same in Jboss-3.2.1_tomact-4.1.24 (auto-reload context) . Requesting for immediate solution

    I am running into the same problem. The only solution I know is to touch the application.xml which will reload the .ear file, which is not efficient in my case.
    Please let me also know if you have come across something else useful.
    Thanks,
    Mangal
    [email protected]

  • How to configure MI client in NWDS

    How to configure MI client in NWDS
    MI home folder
    MI servername: xxxx
    MI webapps TCP  port:
    AWT Runtime
    MI home folder:

    You need not install Tomcat, You have to Install MI client specific to your release.
    <<DO I HAVE TO INSTALL THE MDK PLUGINS OR IT IS INSTALL BY DEFAULT ?>>
    If you have installed NWDS, then by default it consists of MDK also. You have to just configure the MDK Plugin's to work.
    <<where can i download the file that you mentioned in the diagram
    c:\share\MI\MIM2.5SP09JSP>>
    The above path mentioned is just an example, and it need not be same for all.
    Its usually the MI home folder path (You will get this folder once you install the MI client).
    To find the Setup.exe of MI client you can refer to this Link
    Re: need path to download mi client
    Best Regards,
    Lakshmi

  • Configure reports with tomcat

    hi,
    i wanted to know know how can i integrate apache tomcat 5.0 with oracle reports.
    so that when i run apache as my http server and type a request for report on the URL it interprets and shows me the report.
    what steps should i perfrom,
    kindly elaborate

    Sudesh,
    The Actuate BIRT reports should be used with Actuate's Interactive
    Viewer which is an enhanced viewer.
    Jason
    On 5/13/2011 6:24 AM, Sudesh Bulathsinhala wrote:
    > Hello,
    >
    > We've deployed the reports in tomcat server
    > (apache-tomcat-7.0.12) which contains BIRT report viewer to
    > render the reports. The data reports are running perfectly
    > as expected when invoked from the browser.
    >
    > I recently wanted to try ACTUATE BIRT offering and created
    > few reports with flash charts and it was very powerful,
    > intuitive and very attractive.
    >
    > However, when I deployed the report file (.rptdesign) to
    > tomcat server and tried to preview/run the report,
    > surprisingly I did not get any output for reports with
    > charts.
    >
    > Should we configure different BIRT Report Viewer for reports
    > with Charts in tomcat ? Or perhaps copy flash-plugins to
    > tomcat BIRT Viewer plugins folder ?
    >
    > Any suggestion is highly appreciated.
    >
    > Regards,
    > Sudesh Bulathsinhala
    >

  • How to configure DSN in linux?

    hi everyone,
    i had install tomcat in linux os, i wonder how to configure DSN in order to access in database, im' only know how to configure in MSWindows but not linux, could anybody help
    thanks in advance

    It would probably be better to post this question in the JDBC forum, but what database and driver are you using?

  • Can i know how to configure this??

    the last i can ping pc(ipv4) to pc(ipv6)...
    i want trying to use RIP route...
    can i get the command and some explanation??

    This sounds like a question better asked on the WebTools forum.
    On 31/07/2013 8:40 AM, anuganti gowtham wrote:
    > Hi
    > this is gowtham, can i know how to configure the tomcat server into
    > eclipse when we remove the already existing server and installed into
    > a separate directory ,can i know about that ,how to make a
    > configuration in eclipse
    >
    > thanks
    >
    > Gowtham.A

Maybe you are looking for