Tomcat to Oracle

Hi all !!!
I use Tomcat 4.0.3. Where do I have to put classes12.zip if I want to connect to oracle.
I was trying to write in classpath in catalina.bat, but tomcat does not see that. I've made
classes12.jar from classes12.zip and put in lib, but it does not work. I did not have the same problem with version 3.x.x. What do I have to do.
Thanks !!!

When using a .zip file or .jar file, that file must be explicitly stated in your classpath. If you put the jar file in your /lib folder, and that /lib folder is in your classpath, it will still not be recognized. You must state ./lib/classes12.jar in your classpath in order for it to be found.

Similar Messages

  • Migration Tomcat to Oracle

    Actually, we have an open source architecture but, I'm trying to convince everyone change to Application Server 10G.
    We have an Apache HTTP Server on front-end redirecting requests to different instances of Tomcat by mod_jk feature. How can I adapt this architecture for using Oracle Application Server?
    Exists some documentantion how-to migrate from Tomcat to Oracle Application Server?
    thanks a lot
    André

    Andre,
    Here is a document that discuss migrating Tomcat to OC4J.
    You can use the existing HTTP load balancing to then distribute calls
    to your Application Server Middle Tiers.
    Regards
    Roelie Viviershttp://download.oracle.com/docs/cd/B32110_01/web.1013/b28959/develop.htm#CHDFJJDA<a/>
    You can use the existing HTTP load balancing to then distribute calls
    to your Application Server Middle Tiers.
    Regards
    Roelie Viviers

  • Running both Tomcat and Oracle !

    Can anyone tell me how to setup Tomcat and Oracle on the same machine so that they both can be accessed through port 80.
    I am using Tomcat 5.0.24 and Oracle 9i.
    I would be glad if anyone can send me links to useful resiurces !!!
    Thanks !!!!

    Hi,
    Thank you much for your reply.
    Right now I am running my Tomcat on port#7000. I want it to run on port#80 because my network admin has set firewall on port#7000.
    Do u know anyway of connecting Tomcat and oracle so that they both can run on same port or is there any other way out ?????
    Thanks !!!

  • [svn:bz-trunk] 17133: this time finally (and hopefully) adding all the flex-messaging-opt tomcat/jrun/oracle/weblogic/ websphere servers maven pom files in the right svn folder.

    Revision: 17133
    Revision: 17133
    Author:   [email protected]
    Date:     2010-07-30 02:01:44 -0700 (Fri, 30 Jul 2010)
    Log Message:
    this time finally (and hopefully) adding all the flex-messaging-opt tomcat/jrun/oracle/weblogic/websphere servers maven pom files in the right svn folder.
    Added Paths:
        blazeds/trunk/modules/opt/poms/oracle/
        blazeds/trunk/modules/opt/poms/oracle/pom.xml
        blazeds/trunk/modules/opt/poms/tomcat4/
        blazeds/trunk/modules/opt/poms/tomcat4/pom.xml
        blazeds/trunk/modules/opt/poms/tomcat6/
        blazeds/trunk/modules/opt/poms/tomcat6/pom.xml
        blazeds/trunk/modules/opt/poms/weblogic/
        blazeds/trunk/modules/opt/poms/weblogic/pom.xml
        blazeds/trunk/modules/opt/poms/websphere/
        blazeds/trunk/modules/opt/poms/websphere/pom.xml

  • Using tomcat with Oracle database?

    I am having some difficulty setting up Tomcat 6.0.16 with JDeveloper 10 and Oracle - I have with the kind help of people here found this:
    ADF-BC4J + MySQL 5 + Tomcat 6
    Which helps me some of the way, but it is for MySQL, not Oracle, and I don't know things well enough to change the XML in a meaningful way.
    I did try to install MySQL, but not extremely hard - I would prefer to use Oracle, anyway. Are there any instructions about how to do this for an Oracle database?

    Please refer
    http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html
    http://www.akadia.com/download/soug/tomcat/html/tomcat_apache.html#Deploying%20Servlets
    http://www.hansbergsten.com/contrib/solaris-oracle-howto.html

  • Java application (tomcat) and Oracle RAC 10gR2

    Hi, I have an Oracle RAC 10gR2 (10.2.0.3) on Suse Linux Enterprise Server (3 nodes).
    I have several application running on tomcat 5.X and tomcat 6.X with java 1.5 and java 1.6. Sometimes, because of hardware fail, network problems,... one of the nodes fails, and then the other 2 nodes still working and my database is up. However, the most of applications lose the connection with the database, and I must to restart the tomcat. I want to have a system more reliable and robust, and I want to prepare the tomcat's and java application for prevent it. I have read the http://drdobbs.com/java/222700353?pgno=1 and http://db360.blogspot.com/2007/01/is-your-java-application-failoverproof.html. I've been tried the example of the first url, but I don't connect with my database. However, I've probe the sample on another oracle rac (10.2.0.4) and it works. In the samples, it use the ucp.jar (11g) and ons.jar (10g) and ojdbc6.jar (11g driver).
    Anyone can help me how can I configure my application for I must not to restart the tomcats??
    Thanks you very much!!.

    The best solution for your problem is ORACLE SUPPORT.. Please raise an SR and coordinate with them.. GoodLuck!

  • Moving to Tomcat 6, Oracle 11g - getting weird exception

    Hello,
    I am having a problem that I can't seem to get past:
    java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.getLibraryVersionNumber()I
         at oracle.jdbc.driver.T2CConnection.getLibraryVersionNumber(Native Method)
         at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3536)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3531)
         at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:266)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
         at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
         at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at com.rhs.db.conn.ConnectionOra.useOCIDriver(ConnectionOra.java:82)
    The code, below, worked against Oracle 10g and Tomcat 5.5:
                   try {
                   DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
                   _driverLoaded = true;
              } catch (Exception e) {
              deflog.error(e);
                   _conn = DriverManager.getConnection("jdbc:oracle:oci:@orcl", login, pwd);
    I have included ojdbc6.jar in Tomcat's "lib" directory. Am I just missing something dumb?
    Thanks,
    Jerry

    Right it's blowing up on what looks like trying to get metadata about the library.
    It's just loading the dll that came with 11g. I would think that if it were the wrong dll, that this would be a well known issue, right?
    If I remove the library altogether, it complains about simply not being able to find the dll (obviously). If I use a jar ojdbc6.jar targeted at 10g, it complains about 10's dll not being there, which also makes sense.
    My jvm is the latest (installed a couple of days ago).
    A Google search of this particular failure yields pretty much 0 useful results, so I'm hoping someone can shed light on the problem, in general, and what one might do, in general, to fix it....perhaps a Java master employed by Oracle? :)
    Ah well, I'm about to abandon this approach, I don't have time to monkey around with expensive databases that are clunky to upgrade (read almost completely different between versions) and have poor oob tool support. Oracle has cost our company more money than it's made us, that's for sure.

  • Tomcat and Oracle

    Hi. I have tomcat 6 and Oracle 10g Express edition 10.2.0.1.0 and I have to make a jsp page that would connect to my database and get data from it.
    In server.xml I added:
    <Resource name="jdbc/myoracle" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@127.0.0.1:8080:apex"
    username="hr" password="hr" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    and in web.xml:
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    I also downloaded ojdbc14.jar driver and placed it into tomcat/lib folder.
    now, I dont know how to connect to the database in my jsp page and what imports to make, I tried to search the web and couldnt find anything specific.
    Can you please help me? How would I for example list all entries from say Employees table that is already created.
    Thanks

    Hi,
    Found the solution best described in below link.
    http://wiki.apache.org/tomcat/UsingDataSources
    Im using tomcat 6.0.18 on vista and oracle 10g. Hope this Infomation might help someone.
    1. comment following line in TOMCAT_HOME\conf\context.xml
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    2. copy following in ur web applications META-INF\context.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context>
    <Resource name="jdbc/oraclexe" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@127.0.0.1:1521:xe" username="oracle"
    password="oracle" maxActive="20" maxIdle="10" maxWait="-1" />
    </Context>
    3. no need to edit TOMCAT_HOME\conf\server.xml or WEB-INF\web.xml.
    Hope this helps
    bye

  • Port flex app from tomcat to oracle oas

    any direction given will be appreciated. i have a flex 3 app up and running on my localhost. i'm using a local install of tomcat(6.0.18) and i'm also using blazeds(3.2.0.3978). this combined java/flex app is using remote objects connecting to a back end oracle db on a diff host. as i mentioned... this app runs fine on my local tomcat server. i'm looking for docs or direction to port this over to an oracle app server(10.1.3.4). i have exported my project as a war file... deployed it error free on my OAS 10.1..3.4 server. the app loads but fails to do any remoting with [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http:/*****/messagebroker/amf'"]. i'm not sure if there are config changes i need to make before export or after deployment on oracle app server.
    thanks
    -doug-

    All jars are inside war so no need to conf, look inside oracle all server logs for error 
    -- Sent from my Palm Pre
    On Apr 5, 2010 4:18 PM, msdawgs &lt;[email protected]&gt; wrote:
    thanks for the reply...
    url returns...404 Not FoundServlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    let me take a step back... i have not done any initial config of this oracle app server for this particular application. do i need to get blazeds.jar and ojdbc14.jar over there first? then deploy?
    thanks
    -doug-

  • Trying to deploy a provider in Tomcat  - Missing: oracle/bali/share...

    I managed to get past some other missing JAR's, but since Oracle doesn't have any good documentation for deploying a portlet /provider in anything but OC4J, i'm stuck.
    Anyone know where I can find:
    oracle/bali/share/util/UnhandledException?
    There is just wayyy too many files / folders in a 9iAS install .. and there is no docs on what goes where. (Thanks guys)..
    Please help!
    Even better would be a document that details the procedure of creating a provider in ANY j2ee container. (Not just OC4J)..
    Thanks,
    -Sean

    Very elegant response. I do appreciate the information. It is kinda amusing to think OC4J is the only "certified" app server. One of the touted benefits of portal is that it is "100% Pure J2EE Compliant..." :0) *(insert good laugh)* Seems like Oracle would be inclined to make this information more obvious (about the provider requirements), since there are soooo many app servers out there that could host portlets. I can't see how providing 'alternative, unsupported configuration docs' could hurt.
    Either way, it's no skin off my back, just a little wasted time. I will check out this 'pdksoftware.zip' and see what it gives me. I have a feeling it's the same JAR's I managed to wrangle off the PDK and server, but it's nice to know for recreating a dev environment. (And the demo I'm doing tomorrow)
    Honestly, my Netbeans / Tomcat portlet development environment is very splendid! I must say, that making a change in my 'Renderer' class and having the changes appear immediately in our development portal is a very VERY good thing. (we're talkin 5 second turnaround here) The only change that requires any kind of 'reloading' is when I change my provider.xml. Just need to 'reload' the provider, and all is good again.
    A year ago, there was a serious bug in JDev / OC4J in which the auto class reload feature simply did not work. I had this confirmed with a TAR. Hence the abandonment of JDev. Needless to say, I've been a very open-standards kinda person. May as well mention, JDev was too slow and painful to use for the kind of development I like. Maybe it's better now. Who knows.
    As my team and I slowly shuffle the moving parts of Portal, you will surely see more of my posts. Thanks again for the help!
    Cheers!
    -Sean

  • Bean differences between tomcat and oracle

    All I have created a session bean in a servlet and am trying to use it in a jsp page. On my localhost I am using Apache Tomcat 4.0 and everything works fine. In my test environment I am using oracle9i's app server and I am getting a "java.lang.ClassCastException: class" exception.
    Code snippets follow - If anyone can help I would appreciate it.
    Thanks in advance
    Servlet snippet
    public class index extends HttpServlet
    public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,
    IOException
    try{
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    HttpSession session = req.getSession(true);
    WebModel model = (WebModel)session.getValue("model");
    if (model == null) {
    model = new WebModel();
    session.putValue("model", model);
    jsp use bean snippet
    <jsp:useBean id="model" class="ngtvsmodel.WebModel" scope="session"/>
    <jsp:setProperty name="model" property="*"/>

    Does this make any sense to anyone??
    I have been banging my head against the wall all day.
    Please help.

  • How do I set miminum # of connections for pool with Oracle and Tomcat?

    Hi,
    I can't seem to find any attribute to initialize the number of connections for my connection pool. Here is my current context.xml file under my /App1 directory:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1" />
    </Context>
    I've been googling and reading forums, but haven't found a way to establish the minimum number of connections. I've tried all sorts of parameters like InitialLimit, MinLimit, MinActive, etc, with no success.
    Here is some sample code that I am testing:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xxx");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    rst = stmt.executeQuery("SELECT username, server from v$session where username is not null");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; Server: " + rst.getString(2);
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    I'm using a utility to repeatedly call a JSP page that uses this class and displays the message variable. This utility allows me to specify the number of concurrent web requests and an overall number of requests to try. While that is running, I look at V$SESSION in Oracle and occassionaly, I will see a brief entry for app1 or adavey depending on the timing of my query and how far along the code has processed in this example. So it seems that I am only using one connection at a time and not a true connection pool.
    Is it possible that I need to use the oci driver instead of the thin driver? I've looked at the javadoc for oci and the OCIConnectionPool has a setPoolConfig method to set initial, min and max connections. However, it appears that this can only be set via Java code and not as a parameter in my context.xml resource file. If I have to set it each time I get a database connection, it seems like it sort of defeats the purpose of having Tomcat maintain the connection pool for me and that I need to implement my own connection pool. I'm a newbie to this technology so I really don't want to go this route.
    Any advice on setting up a proper connection pool that works with Tomcat and Oracle proxy sessions would be greatly appreciated.
    Thanks,
    Alan

    Well I did some more experiments and I am able to at least create a connection pool within my example code:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    boolean cache_enabled = ds.getConnectionCachingEnabled();
    if (!cache_enabled){
    ds.setConnectionCachingEnabled(true);
    Properties cacheProps = new Properties();
    cacheProps.put("InitialLimit","5");
         cacheProps.put("MinLimit","5");
    cacheProps.put("MaxLimit","10");
    ds.setConnectionCacheProperties(cacheProps);
              conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xyz");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    //rst = stmt.executeQuery("SELECT 'Success obtaining connection' FROM DUAL");
    rst = stmt.executeQuery("SELECT user, SYS_CONTEXT ('USERENV', 'SESSION_USER') from dual");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; sys_context: " + rst.getString(2);
    message += "; Was cache enabled?: " + cache_enabled;
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(OracleConnection.PROXY_SESSION); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    In my context.xml file, I tried to specify the same Connection Cache Properties as attributes, but no luck:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1"
    ConnectionCachingEnabled="1" MinLimit="5" MaxLimit="20"/>
    </Context>
    These attributes seemed to have no effect:
    ConnectionCachingEnabled="1" ; also tried "true"
    MinLimit="5"
    MaxLimit="20"
    So basically if I could find some way to get these attributes set within the context.xml file instead of my code, I would be a happy developer :-)
    Oh well, it's almost Miller time here on the east coast. Maybe a few beers will help me find the solution I'm looking for.

  • 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.

  • Oracle Tomcat Connection Problem

    Dear all,
    We have Oracle as the back end and Java-Jsp-Struts as the front end for our project.For the last few days we are facing a strange problem and although we tried a lot we were not able to find even the cause of the problem
    We have Oracle server and Webserver running on seperate machine. As this is a webbased solution , clients can take the pages by putting the URL in the browser. The problem is that the connection to the database is lost sometimes and we need to restart our apache tomcat service to get the connection again. Once it is restarted the pages work fine for sometime and after sometime the problem comes again. Sometimes the problem occures frequently and sometimes rarely.
    Please help us as we tried a lot to troubleshoot but failed.
    Whenever we are loosing connection, the database or listener seem to have no problem as they are running perfectly fine. Is there something that should be done in Tomcat for oracle connections? Or if multiple users are accessing the database at the same time is there something to do sothat the webserver is able to handle these multiple connections and update operations?
    The error messages that we get are:
    The network adapter could not establish the connection
    or The TNS Listener could not resolve the SID given in the connection descriptor
    If the error is the second one then sometimes it will vanish after sometime even without restarting thr tomcat service . But for the first one we must restart the service
    All suggessions are welcome.
    Regards,
    Cochu.

    Hi,
    Thanks for your valuable suggession, but when I
    tried to ping from webserver to db server, it was
    pinging all the time and I am sure that the LAN
    Connection is alright.
    Regards,
    Cochu.No, the fact that Oracle works at all says that your network connection between servers is not the problem.
    When you say "connection to Oracle", it sounds like you literally mean a single connection to Oracle. You open the connection on startup, so if it's stale or lost or dropped you have to restart the web app. Is this true?
    If it is, your solution is to use a database connection pool and rewrite the database code in such a way that you get a fresh connection out of the pool when request comes in, use it, and immediately close it in the same scope, returning it to the pool. Scope should be within a single transaction in a single method. You should keep a connection open only for as long as you need it for a request.
    %

  • Old Oracle Session with Tomcat is not kiiling automatically

    Hi,
    I am facing a problem of increasing inactive oracle sessions with tomcat, Old Oracle sessions with tomcat are visible with new one.
    if somebaody did not restarted tomcat gracefully, then does Oracle keep the session connected or is there any way that whenever any one restarted tomcat abnormally, Oracle session can be killed.
    I had restart the database to kill session.

    Could you please tell me that where do i set this parameter in parameter file or sql net file and what is the recommended value, do you have any document on this.
    Another thing tomcat is in other server machine and my database is in different server machine, killing process in tomcat server machine manually may not kill linux process on oracle database machine and therefore oracle sessions are still there.
    Is it possible?
    Edited by: user605066 on 28-Aug-2008 04:59

Maybe you are looking for

  • My Windows 8.1 computer doesn't recognize my iPod nano 7th generation. Why?

    My Windows 8.1 computer doesn't recognize my iPod nano 7th generation. Why? When I connect my iPod to my computer, nothing happens. I've read the tips in the section "support" and I noticed that maybe Windows 8 is not one of the operating systems tha

  • Burning a DVD from Final Cut Pro X for DVD player

    I created my video in Final Cut Pro X 10.1. I then exported it by "Share" to "DVD" and burned it to a Sony VDV+R disc. I needed 6 copies. Some worked when I put it in the DVD player to show on our TV and others said "Can't read disc" even though I fo

  • Page Specific Persistence using Session Variables

    Hi, I have read a lot about using session variables to persist the ReportDocument object across page loads.  This works fine if you have just one page open with one report.  The problem I am having is I have a web application that makes 30 or 40 diff

  • How to serialize collections (language builtins) in ValueObjects?

    I use the weblogic ant tasks servicegen and clientgen to generate webservices. I'd like to use the same ValueObject for the client as for the server. The ValueObject exchanged over the webservice contains a field "addresses" of type ArrayList. client

  • Iphone does not sync ical w/macbook

    Responses suggest going to ical system preferences and open icloud.  My system preferences has NO icloud, only mobileme.