Problem in Oracle Database Connectivity in JSP

I am having big problem such as Oracle Database connectivity problem
Following code i am used for database connection. but it throw an exception call class not found exception.
Pls any one can help me. With a sample code for Oracle Database connection in JSP
Class.forName ("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@172.25.44.54:1521:bbo";
con = DriverManager.getConnection(url,"user", "user123");
Thank you

Well i've never used oracle or their drivers before but i'm presuming that you'd go to oracle.com or something and look for downloads. Otherwise you could goodle for Oracle JDBC drivers. Then just follow the instructions.
Again i've never used JSP but if you have a manifest file somewhere you'll need to put a class-path: entry in their referecning the jar file with the driver so that it is availble at run-time.
Wes

Similar Messages

  • Oracle Database Connection using JSP

    I am attempting to create a simple web app using Oracle 9i and JSP. I am trying to create a connection to my database and do not seem to be having much luck. I have worked with ASP and can find my way around fairly well in that environment, however, JSP seems to be not as closely related as I initially thought. Can anyone point me to a good site that can give a beginner the basics on using this technology. I have been to several sites off of Oracle and Sun, but I seem to be more confused after reading them. With JSP, can I code as I would in ASP i.e JavaScript, etc? I have downloaded and installed the JDBC drivers from Oracle's website, but I receive errors when trying to establish a connection. If there is a site that can explain from the ground up how to set up a connection, I would be very greatful!

    Hi,
    This example uses Interbase, but hopefully you will find it useful anyway -
    http://www.kpi.com.au/interbase/connect.jsp
    Cheers,
    Lars

  • Are there any problems running oracle database express 10g and iis together

    Are there any problems running oracle database express 10g on an windows 2000 server or advanced server running iis 5?
    Does oracle database express cause any conflicts with iis (because of used ports etc)
    Could an server have running on it, both an website using iis and an oracle database express website without conflicts?

    I would not expect a problem under normal circumstances.
    Oracle's listener is set for a default port 1521 for database requests, port 8080 for HTMLDB requests. The database connections generally find an empty port above 1024 when establishing a connection.
    So, if IIS does not want to use 1521 or 8080, you will generally see no challenges. Even then it is fairly easy to move ORacle's port requirements elsewhere.
    Using port 8080 seems reasonably common, but that is easily changed - search for sethttpport in this forum. IIS tromping on 1521 would be rare as it has been a well known Oracle service port since, roughly, forever.

  • When and How to close database connection in JSP?

    Hi there,
    I am using MySQL and JDBC 3.0, in my system, When and How to close database connection in JSP?
    Thanks in advance.
    Lonely Wolf
    <%@ page session="true" language="java" %>
    <jsp:include page="checkauthorization.jsp" />
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <%--
    Execute query, with wildcard characters added to the
    parameter values used in the search criteria
    --%>
    <sql:query var="availablecomputerList" dataSource="jdbc/Bookingcomputer" scope="request">
    SELECT * FROM computer where status=0
    order by s_code
    </sql:query>
    <html>
    <head>
    <title>Search Result</title>
    </head>
    <body bgcolor="white">
    <center>
    <form action="checkin.jsp" method="post">
    <input type="submit" value="Back to Check-in Page">
    </form>
    <c:choose>
    <c:when test="${availablecomputerList.rowCount == 0}">
    Sorry, no available computer found.
    </c:when>
    <c:otherwise>
    The following available computers were found:
    <table border="1">
    <th>Computer</th>
    <th>Description</th>
    <th>Status</th>
    <c:forEach items="${availablecomputerList.rows}" var="row">
    <tr>
    <td><c:out value="${row.s_code}" /></td>
    <td><c:out value="${row.description}" /></td>
    <td><c:out value="${row.status}" /></td>
    </tr>
    </c:forEach>
    </table>
    </c:otherwise>
    </c:choose>
    </center>
    </body>
    </html>

    when should you close the connection? when you're done with it.
    how should you close the connection? like this: conn.close();
    that said, doing this in a JSP page is bad form and not recommended
    JSP's typically don't contain ANY business or data logic

  • How to establish a MYSQL Database connection in JSP page.

    Hi People,
    Tell me how to establish mysql database connection in JSP page.
    Needed details on:
    1) what are all the mysql drivers need to be included.
    2) what is the syntax for establish a database connection

    hi,
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.htmlsee down for mysql config with tomcat

  • NetBean, I can't establish the oracle database connection with version 9i.

    In NetBean, I can't establish the oracle database connection with version 9i.
    I have create the datasource and it is fine.
    when i try to access the tables i get a message
    "Unable to refresh children, connection is broken, unsupported feature"
    in netbeans.
    Does netbeans support oracle 9i version.
    Thanks,
    VKK

    In NetBean, I can't establish the oracle database connection with version 9i.
    I have create the datasource and it is fine.
    when i try to access the tables i get a message
    "Unable to refresh children, connection is broken, unsupported feature"
    in netbeans.
    Does netbeans support oracle 9i version.
    Thanks,
    VKK

  • Problem with ORACLE database

    Hi all,
    I am facing some problem with ORACLE database while configuring one JDBC scenario in the receiver side. I have configured one JDBC scenario like FILE TO JDBC. As JDBC is at receiver side i have provided the input file with the following format ,
    <root>
      <StatementName1>
         <dbTableName action="INSERT">
             <table>employee</table>
              <access>
                    <flag>NO</flag> 
                    <ID>567</ID>
             <NAME>134</NAME>
                 </access>
         </dbTableName>
      </StatementName1>
    </root>
    But in the ORACLE database all my columns are in the uppercase.
    So when i have tried to send this input file to process through JDBC receiver side then i have faced the below error :
    FATAL ERROR: Column 'flag' does not exist in table 'employee'
    Then I have tried to check with sender side processing of JDBC adapter. By using the SQL statements as
    SELECT * FROM EMPLOYEE WHERE flag='NO'
    UPDATE EMPLOYEE SET Flag='YES'  WHERE flag='NO'
    Here it worked fine.
    Now my question is,
    If the same adapter is working when we are writing a query directly(sender side), then we must also allow case independence in the auto generated SQL part(receiver side).
    The JDBC drivers for both SQL server and Oracle, supports the same java code, for accessing the DB, irrespective of the case of the column names.
    Please clarify this doubt as soon as possible.
    Thanks,
    Soorya.

    Hi Dharmaveer,
    When I go with the following input file,
    <root>
      <StatementName1>
         <dbTableName action="INSERT">
             <table>EMPLOYEE</table>
              <access>
                    <FLAG>NO</FLAG> 
                    <ID>666</ID>
                    <NAME>SSS</NAME>
                 </access>
             </dbTableName>
      </StatementName1>
    </root>
    I will get the following query with succesfull processing.
    INSERT INTO  EMPLOYEE (FLAG, ID, NAME) VALUES (NO, 666, SSS)
    when i go with this input file,
    <root>
      <StatementName1>
         <dbTableName action="INSERT">
             <table>EMPLOYEE</table>
              <access>
                                    <flag>NO</flag> 
                                   <ID>777</ID>
                        <NAME>TTTT</NAME>
                        </access>
                   </dbTableName>
      </StatementName1>
    </root>
    Then i am facing this problem,
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'EMPLOYEE' (structure 'StatementName1'): java.sql.SQLException: FATAL ERROR: Column 'flag' does not exist in table 'EMPLOYEE'
    Here I cant get any SQL statement as it is not successfull.
    I have gone through your link but it also says to modify the column in the input file which is not possible for me. Can you please help me in this regard?
    Thanks,
    Soorya

  • How to config the oracle database connection pool in IAS

    Hi,
    Does anyone who hows to config the oracle database connection pool in IAS?
    Thanks so much!!!
    [email protected]
    Jacky

    Jacky,
    You need do the following for oracle type4 driver:
    1) register the driver:
    $IAS_HOME/bin/jdbcsetup
    Driver Identifier: Oracle_Type4_816 (whatever name you like)
    Driver Classname: oracle.jdbc.driver.OracleDriver
    Driver Classpath: .../classes12.zip (install this this zip file somewhere
    and add this zip into the Classpath later).
    2) DataSource Setup:
    start iAS Administration Tool (iASAT)
    Choose Database, unfold iAS1 (your app server instance),
    choose External JDBC Datasource -> add: DataSource Registration
    JNDI Name: yourPoolName
    Driver Type: Oracle_Type4_816 (select what you just register)
    DataSource Url: jdbc:oracle:thin:@hostName:portName:dbName
    Username: your_user_name
    Password: your_passwd
    (Datasource Pool: using defaults for now): you can also customrize the
    parameters for the pool.
    3. Add classes12.zip into CLASSPATH.
    In your application, you can use JNDI lookup to get the DataSource from
    which you get the connection from the pool.
    Hope this helps.
    Good luck.
    Xuran
    "Jacky Yan" <[email protected]> wrote in message
    news:9m0tmp$[email protected]..
    Hi,
    Does anyone who hows to config the oracle database connection pool in IAS?
    Thanks so much!!!
    [email protected]
    Jacky

  • Installing Oracle 10g on XP SP2 problems. No Database connectivity.. but

    I use oracle 10g at work and have completed the training. I do not know how to configure ORacle to work at my home PC using either XP with SP2 or Vista with SP1. I got it all installed but it says I am not connected to Oracle database. I have also successfully installed it incl the Microsoft Loopback adapter. The database name is the same as when I installed: orcl how then do I set it up to read the sample schemas as in SQL Developer I do not know what is the connection name, user Name and password... which I believe I have both. How do I set up the Data Source (ODBC). Everything was installed as Default. SQL Developer and iSQl Plus starts ok but no database is shown to be connected. Strangely Express works fine but only using the Web interface. Trying to use SQL Developer but was unable to....
    Phillip
    Problem: The install has detected that the primary IP address of the system is DHCP-assigned.
    Recommendation: Oracle supports installations on systems with DHCP-assigned IP addresses; However, before you can do this, you must configure the Microsoft LoopBack Adapter to be the primary network adapter on the system. See the Installation Guide for more details on installing the software on systems configured with DHCP.

    I recommend you read '2 Days DBA' from the documentation,this manual answer already many questions. And simply follow 'See the Installation Guide for more details ...'. Start simply , not with several client tools at the same time.
    By the way if your home PC has a Windows Home Edition , that's not supported, neither for XP nor Vista.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/toc.htm
    Werner

  • Oracle Database Connectivity Problem.. Please Help

    Hi , i am having a problem in connecting my JSP page to Oracle. I dont know how to work from Scratch like which classes to download for driver and where to put them so that it works for me please also help me in writng connection String. i am writing this code but it generates an error.
    <%
    try
    Connection conn=null; // defining variable
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@serverName:1521:myDatabase", "scott", "tiger");
    Statement st = conn.createStatement();
    String sql = "SELECT * FROM POS";
    ResultSet rs = st.executeQuery(sql);
    String name = rs.getString("DNAME");
    out.println(name);
    catch(Exception e)
    out.println(e);
    %>
    and the Error is
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I shall be thankful to you for your help.
    Regards,
    Adeel

    Thanks for your reply and sugession. We cannot stop
    using JSP actually. I meant while learning JDBC and attempting to debug it.
    I have been working with ODBC
    drivers and haven't got any problem. Now here you are
    talking about Class.... We haven't download the
    driver yet thats what i was trying to ask that from
    where to dowload those drivers/classes and where to
    put them or how to config them . Your Help is always
    appriciated because it can be really crucial for some
    one else. Any way Thanks again hope to see a reply
    from you.That isn't what your OP suggested. It suggested specifically that you didn't know what a class not found exception meant.
    You can down load the drivers from oracle. Or you can get them from the Oracle client install - just drill down under the install directory.
    As for where you put them, it would be the same place that you put the other drivers that you already have experience with.

  • Connect Problems with Oracle Database Express Edition 11g Release 2

    Hello,
    I am a student trying to install Oracle Database Express Edition 11g Release 2 and SQL Developer on my home system, Win7 64Bit, in order to practice some things I've learned from me DBA class and Developer classes.
    Anyway, I have everything installed, but I am having difficulty connecting as SYS or SYSDBA in the 'Run SQL Command Line', I keep getting the ORA-01017: invalid username/password: logon denied.
    However, If i select the 'Start Database' I get this:
    C:\oraclexe\app\oracle\product\11.2.0\server\bin>
    and I can type sqlplus / as sysdba and it starts up just fine and show user lists me as "SYS".
    but if I go back to 'Run SQL Command Line' I still cannot connect as SYS or SYSDBA...I find this both confusing and frustrating. I don't know if I am in different instances or something like that, but I seem to be limited to connecting only as "SYSTEM". I need SYS because I want to practice creating datafiles, instances and things like that, but I seem to be lost.
    Also, I am trying to create a new DB connection with SQL Developer and I can only us SYSTEM for my login which, if I understand correctly, will limit my privileges. Again When I try to sign in with SYS or SYSDBA I get error'd out. When I installed Ora11gDBExpress I was prompted in input a single password that was supposed to grant me access as SYS or SYSTEM, but I am limited to only SYSTEM for some reason.
    So, I am looking for help/guidance as to what to do.
    Thanks in advance for any and all help,
    Warren

    General rule of thumb, don't use sysdba unless you want to shut down the database, or grant a database user privileges on a sys object.
    A SYSTEM connection is not "limiting", it has the DBA role which means a user with a system connection can do most anything needed, including select/update/delete/drop any user's objects as well as change parameters in the instance.
    The system user can indeed add datafiles, tablespaces, etc. The instance and database should already be created as long as the installer completed all its chores correctly. For XE, per the license agreement only one instance can run on one host. If you want to try creating a database, it will require shutting down the XE instance and creating a new database service, creating the database, and installing the system catalog and any other optional components desired. Good practice indeed, but a bit advanced for the new user.
    Do create users for schemas ... connect system; create user <username> identified by <password> and connect <username> for the schemas (a collection of objects) within the database. Grant the resource and create session privilege to <username> to allow the database user the ability to create tables, indexes, stored procedures, etc.
    There is no "or" in a sys as sysdba connection, from 10g onwards a sys connection requires using the sysdba privilege. To enable a sysdba connection, add your host user to the ORA_DBA group on the host. To verify the OS users in the ORA_DBA group, this might work for win7, in a cmd box ...
    $ net localgroup ora_dba
    ...If your OS user is in the ora_dba group the sys as sysdba password is not relevant, you can in fact type anything for a password. If you wish to connect with the sysdba privilege from a remote client, that is a bit different and requires knowing the password set in the instance password file. Which should be set the same as the system password defined in the installer, but you can change that by creating a new password file. Another slightly advanced topic.
    In Windows IMHO its better to leave the listener and database set to Manual start (in the services applet, Start/Run/services.msc) and start the listener, then the database, when its needed. At least for an XE instance, as its intended for practice and learning RDBMS management.
    Edited by: clcarter on Mar 2, 2012 6:19 PM
    fix typos

  • 64 bit SAP to 32 bit External Oracle Database connectivity failing

    Dear All,
    We are trying to connect to an external Oracle database thru DBCON method. We are able to connect to Oracle server from our IDES server which is a 32 bit server, but when we are trying to connect our development server which is a 64 bit server, the connectivity is failing.
    we copied the correct 64 bit *.lib file to the SAP server but still same result. We are getting the error message - Work Process restarted. Session terminated.
    the Oracle server we are trying to connect is 32 bit, can this create some problem ?
    kindly any one help us in this reagrd.
    thanks in advance,
    Saurabh.

    Hi Eric,
    thanks for the advice but I am a bit confused as where to execute that sqlplus command/query ?
    in the Oracle server or from SAP and what does system/password@DEV means ??
    can you elaborate on this please.
    here i would like to add that we have connected to the external Oracle server using linked server approach of MS SQL (our SAP default database) and so our connectivity is happening till SQL level i.e. I am able to connect to the Oracle and query it using OpenQuery syntax. the problem is appearing when I am trying to connect from the ABAP level.
    kindly suggest as to what can be the solution of this issue.
    thanks
    Saurabh.

  • Problem with Oracle database Express Edition (Linux)

    I installed oracle-xe on my machine (ArchLinux x64), and all worked fine before a  reboot. After it, I still can connnect to the db with sqlplus, but can't connect to apex (http://localhost:8080/apex/f?p=4950) and can't get a connection using ojdbc:
    Exception in thread "main" java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection.
    I tried to reinstall the db several times, but the result was always the same: all is ok only before rebooting. I'm a newer with Oracle database and can't find a solution. Could you give me some tip about it?

    The problem was solved by changing permissions for log directory :
    sudo chmod -R 777 /usr/lib/oracle/product/11.2.0/xe/log

  • A strang problem about Resin database connection pool

    I am a beginner&#65292;hope somebody can help me.
    my web site occured a strange problem after I used the Resin database connection pool instead of
    connecting directly
    the error message as follows:java.lang.IllegalArgumentException: Request cannot be null
    at javax.servlet.ServletRequestWrapper.<init>(ServletRequestWrapper.java:100)
    at javax.servlet.http.HttpServletRequestWrapper.<init>(HttpServletRequestWrapper.java:92)
    at com.caucho.server.connection.RequestAdapter.<init>(RequestAdapter.java:96)
    at com.caucho.server.webapp.DispatchRequest.<init>(DispatchRequest.java:97)
    at com.caucho.server.webapp.IncludeDispatchRequest.<init>(IncludeDispatchRequest.java:77)
    at com.caucho.server.webapp.IncludeDispatchRequest.createDispatch(IncludeDispatchRequest.java:87)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:389)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
    at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:807)
    at _jsp._intro__jsp._jspService(/intro.jsp:60)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
    at com.caucho.jsp.Page.pageservice(Page.java:571)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
    at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
    at java.lang.Thread.run(Thread.java:595)

    <!--
    - Resin 3.0 configuration file.
    -->
    <resin xmlns="http://caucho.com/ns/resin"
    xmlns:resin="http://caucho.com/ns/resin/core">
    <!--
    - Logging configuration for the JDK logging API.
    -->
    <log name='' level='info' path='stdout:' timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.java' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.loader' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <!--
    - For production sites, change dependency-check-interval to something
    - like 600s, so it only checks for updates every 10 minutes.
    -->
    <dependency-check-interval>2s</dependency-check-interval>
    <!--
    - You can change the compiler to "javac" or jikes.
    - The default is "internal" only because it's the most
    - likely to be available.
    -->
    <javac compiler="internal" args=""/>
    <!-- Security providers.
    - <security-provider>
    - com.sun.net.ssl.internal.ssl.Provider
    - </security-provider>
    -->
    <!--
    - If starting bin/resin as root on Unix, specify the user name
    - and group name for the web server user.
    - <user-name>resin</user-name>
    - <group-name>resin</group-name>
    -->
    <!--
    - Configures threads shared among all HTTP and SRUN ports.
    -->
    <thread-pool>
    <!-- Maximum number of threads. -->
    <thread-max>128</thread-max>
    <!-- Minimum number of spare connection threads. -->
    <spare-thread-min>25</spare-thread-min>
    </thread-pool>
    <!--
    - Configures the minimum free memory allowed before Resin
    - will force a restart.
    -->
    <min-free-memory>1M</min-free-memory>
    <server>
    <!-- adds all .jar files under the resin/lib directory -->
    <class-loader>
    <tree-loader path="$resin-home/lib"/>
    </class-loader>
    <!-- Configures the keepalive -->
    <keepalive-max>500</keepalive-max>
    <keepalive-timeout>120s</keepalive-timeout>
    <!-- The http port -->
    <http server-id="" host="*" port="8080"/>
    <!--
    - SSL port configuration:
    - <http port="8443">
    - <openssl>
    - <certificate-file>keys/gryffindor.crt</certificate-file>
    - <certificate-key-file>keys/gryffindor.key</certificate-key-file>
    - <password>test123</password>
    - </openssl>
    - </http>
    -->
    <!--
    - The local cluster, used for load balancing and distributed
    - backup.
    -->
    <cluster>
    <srun server-id="" host="127.0.0.1" port="6802" index="1"/>
    </cluster>
    <!--
    - Enables/disables exceptions when the browser closes a connection.
    -->
    <ignore-client-disconnect>true</ignore-client-disconnect>
    <!--
    - Enables the cache
    -->
    <cache path="cache" memory-size="10M"/>
    <!--
    - Enables periodic checking of the server status.
    - With JDK 1.5, this will ask the JDK to check for deadlocks.
    - All servers can add <url>s to be checked.
    -->
    <ping>
    <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
    </ping>
    <!--
    - Defaults applied to each web-app.
    -->
    <web-app-default>
    <!--
    - Sets timeout values for cacheable pages, e.g. static pages.
    -->
    <cache-mapping url-pattern="/" expires="5s"/>
    <cache-mapping url-pattern="*.gif" expires="60s"/>
    <cache-mapping url-pattern="*.jpg" expires="60s"/>
    <!--
    - Servlet to use for directory display.
    -->
    <servlet servlet-name="directory"
    servlet-class="com.caucho.servlets.DirectoryServlet"/>
    </web-app-default>
    <!--DataSource jndi configuration-->
    <database>
    <jndi-name>jdbc/artunion</jndi-name>
    <driver type="org.gjt.mm.mysql.Driver">
    <url>jdbc:mysql://localhost:3306/union</url>
    <user>as</user>
    <password>as</password>
    </driver>
    <prepared-statement-cache-size>8</prepared-statement-cache-size>
    <max-connections>20</max-connections>
    <max-idle-time>30s</max-idle-time>
    </database>
    <!--
    - Default host configuration applied to all virtual hosts.
    -->
    <host-default>
    <class-loader>
    <compiling-loader path='webapps/WEB-INF/classes'/>
    <library-loader path='webapps/WEB-INF/lib'/>
    </class-loader>
    <!--
    - With another web server, like Apache, this can be commented out
    - because the web server will log this information.
    -->
    <access-log path='logs/access.log'
    format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
    rollover-period='1W'/>
    <!-- creates the webapps directory for .war expansion -->
    <web-app-deploy path='webapps'/>
    <!-- creates the deploy directory for .ear expansion -->
    <ear-deploy path='deploy'>
    <ear-default>
    <!-- Configure this for the ejb server
    - <ejb-server>
    - <config-directory>WEB-INF</config-directory>
    - <data-source>jdbc/test</data-source>
    - </ejb-server>
    -->
    </ear-default>
    </ear-deploy>
    <!-- creates the deploy directory for .rar expansion -->
    <resource-deploy path='deploy'/>
    <!-- creates a second deploy directory for .war expansion -->
    <web-app-deploy path='deploy'/>
    </host-default>
    <!-- includes the web-app-default for default web-app behavior -->
    <resin:import path="${resinHome}/conf/app-default.xml"/>
    <!-- configures the default host, matching any host name -->
    <host id=''>
    <document-directory>D:/artunion</document-directory>
    <!-- configures the root web-app -->
    <web-app id='/'>
    <!-- adds xsl to the search path -->
    <class-loader>
    <simple-loader path="$host-root/xsl"/>
    </class-loader>
    <servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
    </web-app>
    </host>
    </server>
    </resin>
    Thank you!

  • Access vba problem with ORACLE database via ODBC

    I get a problem when using MS-Access 2007 DAO recordset built on table hosted by an Oracle database 10g and connected thru an ODBC link (the id is generated by a sequence/trigger associated to the table).
    The code I use is :
    Private Sub Commande0_Click()
    Dim rs As DAO.Recordset2
    Dim bm As Variant
    'Set rs = CurrentDb.OpenRecordset("select * from table1", dbOpenDynaset, dbSeeChanges, dbPessimistic)
    Me.Recordset.AddNew
    Me.Recordset!libelle = CStr(Rnd)
    Me.Recordset!code = “”
    Me.Recordset!actif = True
    Me.Recordset!idCollege = 1
    Me.Recordset.Update
    Me.Recordset.MoveFirst
    Me.Recordset.Bookmark = Me.Recordset.LastModified
    Dim idtemp As Long
    idtemp = Me.Recordset.idPartenaire
    Me.Requery
    Me.Recordset.FindFirst "idPartenaire = " & idtemp
    Set rs = Nothing
    End Sub
    When I run this code, I get an error 3167 (current record is deleted) on the line :
    idtemp = Me.Recordset.idPartenaire
    If I change the ligne :
    Me.Recordset!code = “”
    By :
    Me.Recordset!code = “xxxx”
    Or if I comment this line, the error does not appear and I get the right value in idtemp variable.
    I tried also with the same table in a SQL Server database table. In this case it works fine in all cases.
    So, I seems that the problem is due to the Oracle ODBC driver.
    I search on Internet but I have not found any explanation or solution.
    Does anybody experiment the same problem (and find a solution)?
    Gilles Roussel.

    There is a dediacted forum for Oracle ODBC driver issues.
    Please post your problem at:
    http://forums.oracle.com/forums/categoryHome.jspa?categoryID=84

Maybe you are looking for

  • Logical operator in datatemplate query

    Hi, I'm having trouble writing my queries in a datatemplate. The problem is, when I have to use the logical operators <>. More specific, my sql query has a less than condition, but when I try to save the datatemplate with my query, I get an error mes

  • Potential bug when using Parsley 2.4.1 and Cairngorm's module 0.17 in Flex 4.5.1

    Hi I have an issue when using cairngorm's ModuleViewLoader along with ParsleyModuleDescriptor to load a simple module consistig mainly of HBoxes, VBoxes and Datagrids. The module consists of one child (let's call it ViewA) and that child consists of

  • 12c BP1 Oracle Chargeback plugin  deployment failed when config webtier

    Plugin version is 12.1.0.2.0, It failed at config WebTier stage. From pluginca trc file, it shows EMPluginDeploymentStep:{ OMS_CONFIG ; FAILED Further check the content of configplugin_all_2012-07-04_21-40-01.trc shows: 2012-07-04 21:42:13,968 [main]

  • Iphoto 11 is frozen on finishing import.  Stop import does not work.  How do I fix this?

    I tried to import photos by dragging a group of them to an album and the import started, but does not finish.  When I press stop import, it does not respond. How do I fix this?  I think that it happened with iphone pictures, but could have been a SD

  • Seeking runtime mutex analysis tool

    I am using Sun C++ 5.5 on Solaris 8, on an Ultra 10. Does there exist a "known reliable" tool for tracking (logging, analyzing, reporting) a Solaris application's RUN TIME operationis on Solaris mutexes? I've written such a tool, myself, but if I am