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

Similar Messages

  • Oracle 10G connection problem

    Oracle 10G connection problem
    I launch my db with the following script:
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/dbstart"
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl start"
    Here is the output:
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 27 22:17:51 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 188743680 bytes
    Fixed Size 778036 bytes
    Variable Size 162537676 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Database "orcl" warm started.
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 27-FEB-2004 22:17:59
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    System parameter file is /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Start Date 27-FEB-2004 22:17:59
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    But when i try to connect with sqlplus:
    oracle@xavan_fixe oracle $ sqlplus
    SQL*Plus: Release 10.1.0.2.0 - Production on Ven. Févr. 27 22:19:32 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory

    When you go to get connection you have to set the ORACLE_SID enviroment variable or use the service name in the string to get connection.
    Joel Pérez

  • Oracle 6i connection problem

    Dear All,
    good afternoon:
    i am facing problem with oracle 6i connecting to oracle RAC two nodes cluster. which was working fine from last 3-4 years and there was no issue with application as well as database.
    now i am getting error with oracle 6i forms , sometimg its not connecting with database . when i enabled the trace on 6i sqlnet.ora file.
    i goted the result
    trace file:
    -- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    New trace stream is "C:\ora6i\NET80\ADMIN\trace\conection.trc.trc"
    New trace level is 16
    --- TRACE CONFIGURATION INFORMATION ENDS ---
    [02-MAY-10 12:33:07] nigini: entry
    [02-MAY-10 12:33:07] nigini: Count in NI global area now: 1
    [02-MAY-10 12:33:07] nigini: Count in NI global area now: 1
    [02-MAY-10 12:33:07] nrigbi: entry
    [02-MAY-10 12:33:07] nrigbni: entry
    [02-MAY-10 12:33:07] nrigbni: Unable to get data from navigation file tnsnav.ora
    [02-MAY-10 12:33:07] nrigbni: exit
    [02-MAY-10 12:33:07] nrigbi: exit
    [02-MAY-10 12:33:07] nigini: exit
    [02-MAY-10 12:33:07] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
    [02-MAY-10 12:33:07] nnftboot: entry
    [02-MAY-10 12:33:07] nnftboot: exit
    [02-MAY-10 12:33:07] nnfoboot: entry
    [02-MAY-10 12:33:07] nnfoboot: exit
    [02-MAY-10 12:33:07] nnfoboot: entry
    [02-MAY-10 12:33:07] nnfoboot: exit
    [02-MAY-10 12:33:07] nnfhboot: entry
    [02-MAY-10 12:33:07] nnfhboot: exit
    [02-MAY-10 12:33:07] nncpmlf_make_local_addrfile: construction of local names file failed
    [02-MAY-10 12:33:07] nncpmsf_make_sys_addrfile: system names file is C:\ora6i\NET80\admin\tnsnames.ora
    [02-MAY-10 12:33:07] nncpcin_maybe_init: first request sent to name server will have ID 0
    [02-MAY-10 12:33:07] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
    [02-MAY-10 12:33:07] nncpcin_maybe_init: max request retries per name server is 1
    [02-MAY-10 12:33:07] nngsini_init_streams: initializing stream subsystem, cache size is 10
    [02-MAY-10 12:33:07] nngtini_init_msg: initializing PDU subsystem, initial pool size is 2
    [02-MAY-10 12:33:07] nncpcin_maybe_init: default name server domain is [root]
    [02-MAY-10 12:33:07] nnfun2a: entry
    [02-MAY-10 12:33:07] nnftqnm: entry
    [02-MAY-10 12:33:07] nnfcagmd: entry
    [02-MAY-10 12:33:07] nnfcagmd: Attempting to find metadata for type a.smd
    [02-MAY-10 12:33:07] nnfcagmd: Attribute name a.smd is a predefined meta type, syntax is 4.
    [02-MAY-10 12:33:07] nnfcagmd: exit
    [02-MAY-10 12:33:07] nnfotran: Checking local tnsnames.ora file
    [02-MAY-10 12:33:07] nnfotran: Checking local tnsnames.ora file
    [02-MAY-10 12:33:07] nncpldf_load_addrfile: initial load of names file C:\ora6i\NET80\admin\tnsnames.ora
    [02-MAY-10 12:33:07] nncpldf_load_addrfile: failure, error stack follows
    [02-MAY-10 12:33:07] nncpldf_load_addrfile: NL-00425: bad continuation line
    NL-00425: bad continuation line
    NL-00425: bad continuation line
    NL-00425: bad continuation line
    [02-MAY-10 12:33:07] nncpldf_load_addrfile: NOTE: FILE CONTAINS ERRORS, SOME NAMES MAY BE MISSING
    [02-MAY-10 12:33:07] nnftqnm: Using tnsnames.ora address (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dbsr15-vip1.dxbdom08.com)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = dbsr15-vip2.dxbdom08.com)(PORT = 1521)) (LOAD_BALANCE = yes) (FAILOVER = ON) (CONNECT_DATA = (SERVICE_NAME = mscdxb)(SERVER=DEDICATED) (FAILOVER_MODE=(TYPE=select)(METHOD=basic)))) for name mscdxb
    [02-MAY-10 12:33:07] nnfcraa: entry
    [02-MAY-10 12:33:07] nnfun2a: Obtaining answer records for mscdxb
    [02-MAY-10 12:33:07] nnftans: entry
    [02-MAY-10 12:33:07] nnfcran: entry
    [02-MAY-10 12:33:07] nnfcran: 64 rrs requested, 1 remaining, 1 total
    [02-MAY-10 12:33:07] nnfcran: exit
    [02-MAY-10 12:33:07] nnfotrv1: entry
    [02-MAY-10 12:33:07] nnfotrv1: translated "mscdxb" to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dbsr15-vip1.dxbdom08.com)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = dbsr15-vip2.dxbdom08.com)(PORT = 1521)) (LOAD_BALANCE = yes) (FAILOVER = ON) (CONNECT_DATA = (SERVICE_NAME = mscdxb)(SERVER=DEDICATED) (FAILOVER_MODE=(TYPE=select)(METHOD=basic))))
    [02-MAY-10 12:33:07] nngsdei_deinit_streams: deinit
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    [02-MAY-10 12:33:07] nngscls_close_stream: UID 0 not established, ignored
    please help me,
    thanks in advance.
    sher khan

    thanks dear this is my tnsfile please check it. if any error can you corect me.
    mscdxb =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
    (LOAD_BALANCE = on)
    (FAILOVER = ON)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = mscdxb)
         (FAILOVER_MODE=
    (TYPE=select)
    (METHOD=basic))     
    thanks,
    sher khan

  • Oracle OCI Connection Problem

    Could you please help me?
    When I try to access Oracle using TopLink and OCI this error occurred
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
    # Problematic frame:
    # C [OCI.dll+0x7774]
    # An error report file with more information is saved as hs_err_pid3504.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    [error occurred during error reporting, step 270, id 0xc0000006]
    I have used these libraries
    - ojdbc14.jar
    - toplink-essentials.jar
    - toplink-essentials-agent.jar
    Also I used netbeans v6
    and Apache Tomcat 6.0.14
    The following code shows my persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
      <persistence-unit name="RtsModelPU" transaction-type="RESOURCE_LOCAL">
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
        <class>com.xxx.rts.model.Responsibility</class>
        <class>com.xxx.rts.model.Person</class>
        <class>com.xxx.rts.model.WeeklyTask</class>
        <properties>
          <property name="toplink.jdbc.user" value="XXX"/>
          <property name="toplink.jdbc.password" value="XXX"/>
          <property name="toplink.jdbc.url" value="jdbc:oracle:oci:@XXX"/>
          <property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
        </properties>
      </persistence-unit>
    </persistence>This is the server log file
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
    # Problematic frame:
    # C [OCI.dll+0x7774]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x0aaaa000): JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
    siginfo: ExceptionCode=0xc0000006, ExceptionInformation=0x00000000 0x10007774 0xc000020c
    Registers:
    EAX=0x00000003, EBX=0x00000000, ECX=0x0b837070, EDX=0x00000001
    ESP=0x0ac1f54c, EBP=0x0ac1f564, ESI=0x0b3cbc00, EDI=0x0b3cbc00
    EIP=0x10007774, EFLAGS=0x00010202
    Top of Stack: (sp=0x0ac1f54c)
    0x0ac1f54c: 0c6504d7 0b88ea34 0b88eae8 00000000
    0x0ac1f55c: 0b837070 00000000 0ac1f580 0c65d331
    0x0ac1f56c: 0b3cbc00 00000001 0b3cbc00 00000000
    0x0ac1f57c: 00000000 0ac1f5a0 0c644647 0b3cbc00
    0x0ac1f58c: 00000000 0b3cbc00 00000000 0b3cbc00
    0x0ac1f59c: 07c1b6b8 0ac1f5c4 0c6444d1 0b3cbc00
    0x0ac1f5ac: 00000000 0b3cbc00 00000000 00000000
    0x0ac1f5bc: 0c4f1348 0c4f1f38 0ac1f5e8 74327ed4
    Instructions: (pc=0x10007774)
    0x10007764:
    [error occurred during error reporting, step 100, id 0xc0000006]
    Stack: [0x0abd0000,0x0ac20000), sp=0x0ac1f54c, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [OCI.dll+0x7774]
    C [SQORA32.DLL+0x1d331]
    C [SQORA32.DLL+0x4647]
    C [SQORA32.DLL+0x44d1]
    C [ODBC32.dll+0x7ed4]
    C [JdbcOdbc.dll+0x4d8b]
    j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
    j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
    j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
    j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
    j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
    v ~StubRoutines::call_stub
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.jdbc.odbc.JdbcOdbc.disconnect(J[B)V+0
    j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
    j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
    j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
    j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
    j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
    v ~StubRoutines::call_stub
    j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
    j java.lang.ref.Finalizer.runFinalizer()V+45
    j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
    j java.lang.ref.Finalizer$FinalizerThread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0b0b0c00 JavaThread "JDWP Transport Listener: dt_shmem" daemon [_thread_in_native, id=5896]
    0x0b3d3400 JavaThread "http-8084-4" daemon [_thread_blocked, id=464]
    0x0af5a000 JavaThread "http-8084-3" daemon [_thread_blocked, id=5312]
    0x0b22d000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6060]
    0x0b36b000 JavaThread "TP-Processor4" daemon [_thread_in_native, id=5300]
    0x0b33ec00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=636]
    0x0b33e400 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2364]
    0x0b127000 JavaThread "TP-Processor1" daemon [_thread_blocked, id=4616]
    0x0b264000 JavaThread "http-8084-2" daemon [_thread_blocked, id=2092]
    0x0b32b000 JavaThread "http-8084-1" daemon [_thread_in_native, id=784]
    0x0b097800 JavaThread "http-8084-Acceptor-0" daemon [_thread_in_native, id=4424]
    0x0b200800 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3832]
    0x0aada000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4072]
    0x0aad8800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5492]
    0x0aacd800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=5060]
    0x0aabcc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=5980]
    0x0aabc000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6100]
    =>0x0aaaa000 JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
    0x0aaa5800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3636]
    0x00299400 JavaThread "main" [_thread_in_native, id=876]
    Other Threads:
    0x0aaa2800 VMThread [id=5072]
    0x0aadb800 WatcherThread [id=4248]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 1280K, used 25K [0x02990000, 0x02af0000, 0x02e70000)
    eden space 1152K, 2% used [0x02990000, 0x02996470, 0x02ab0000)
    from space 128K, 0% used [0x02ab0000, 0x02ab0000, 0x02ad0000)
    to space 128K, 0% used [0x02ad0000, 0x02ad0000, 0x02af0000)
    tenured generation total 16728K, used 11763K [0x02e70000, 0x03ec6000, 0x06990000)
    the space 16728K, 70% used [0x02e70000, 0x039ecd70, 0x039ece00, 0x03ec6000)
    compacting perm gen total 36352K, used 36190K [0x06990000, 0x08d10000, 0x0a990000)
    the space 36352K, 99% used [0x06990000, 0x08ce7be8, 0x08ce7c00, 0x08d10000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINNT\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINNT\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINNT\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINNT\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINNT\system32\Secur32.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
    0x6d870000 - 0x6daba000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a0000      C:\WINNT\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINNT\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINNT\system32\WINMM.dll
    0x629c0000 - 0x629c9000      C:\WINNT\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINNT\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINNT\system32\msvcrt.dll
    0x6d3c0000 - 0x6d3c8000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINNT\system32\PSAPI.DLL
    0x6d4b0000 - 0x6d4d9000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
    0x6d770000 - 0x6d776000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\npt.dll
    0x6d820000 - 0x6d82c000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll
    0x6d460000 - 0x6d47f000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll
    0x6d860000 - 0x6d86f000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll
    0x6d320000 - 0x6d328000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\dt_shmem.dll
    0x6d620000 - 0x6d633000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINNT\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINNT\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINNT\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINNT\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINNT\System32\wshtcpip.dll
    0x62f00000 - 0x62f13000      ...\Ora10gClient\BIN\ocijdbc10.dll
    0x10000000 - 0x10057000      ...\ora10gClient\bin\OCI.dll
    0x61c20000 - 0x61e72000      ...\ora10gClient\bin\OraClient10.Dll
    0x60870000 - 0x60953000      ...\ora10gClient\bin\oracore10.dll
    0x60a80000 - 0x60b44000      ...\ora10gClient\bin\oranls10.dll
    0x63690000 - 0x636a8000      ...\ora10gClient\bin\oraunls10.dll
    0x60eb0000 - 0x60eb7000      ...\ora10gClient\bin\orauts.dll
    0x774e0000 - 0x7761d000      C:\WINNT\system32\ole32.dll
    0x636b0000 - 0x636b6000      ...\ora10gClient\bin\oravsn10.dll
    0x60fa0000 - 0x61092000      ...\ora10gClient\bin\oracommon10.dll
    0x60300000 - 0x60857000      ...\ora10gClient\bin\orageneric10.dll
    0x63430000 - 0x63457000      ...\ora10gClient\bin\orasnls10.dll
    0x0c000000 - 0x0c160000      ...\ora10gClient\bin\oraxml10.dll
    0x0c160000 - 0x0c171000      C:\WINNT\system32\MSVCIRT.dll
    0x60960000 - 0x60a6d000      ...\ora10gClient\bin\oran10.dll
    0x62740000 - 0x6277d000      ...\ora10gClient\bin\oranl10.dll
    0x62790000 - 0x627a7000      ...\ora10gClient\bin\oranldap10.dll
    0x627f0000 - 0x628f9000      ...\ora10gClient\bin\orannzsbb10.dll
    0x62530000 - 0x62583000      ...\ora10gClient\bin\oraldapclnt10.dll
    0x62670000 - 0x6268b000      ...\ora10gClient\bin\orancrypt10.dll
    0x71ad0000 - 0x71ad9000      C:\WINNT\system32\WSOCK32.dll
    0x77120000 - 0x771ab000      C:\WINNT\system32\OLEAUT32.dll
    0x62920000 - 0x6296c000      ...\ora10gClient\bin\oranro10.dll
    0x626b0000 - 0x626b7000      ...\ora10gClient\bin\oranhost10.dll
    0x62660000 - 0x62666000      ...\ora10gClient\bin\orancds10.dll
    0x0acc0000 - 0x0acc8000      ...\ora10gClient\bin\orantns10.dll
    0x60b50000 - 0x60ea8000      ...\ora10gClient\bin\orapls10.dll
    0x0c180000 - 0x0c189000      ...\ora10gClient\bin\oraslax10.dll
    0x63080000 - 0x63284000      ...\ora10gClient\bin\oraplp10.dll
    0x61ed0000 - 0x61f5b000      ...\ora10gClient\bin\orahasgen10.dll
    0x62ab0000 - 0x62b1a000      ...\ora10gClient\bin\oraocr10.dll
    0x62b20000 - 0x62b60000      ...\ora10gClient\bin\oraocrb10.dll
    0x5b860000 - 0x5b8b4000      C:\WINNT\system32\NETAPI32.dll
    0x62980000 - 0x62990000      ...\ora10gClient\bin\orantcp10.dll
    0x0c190000 - 0x0c22a000      ...\ora10gClient\bin\orasql10.dll
    0x76f20000 - 0x76f47000      C:\WINNT\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINNT\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINNT\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINNT\system32\rasadhlp.dll
    0x5ad70000 - 0x5ada8000      C:\WINNT\system32\uxtheme.dll
    0x0c400000 - 0x0c407000      C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
    0x74720000 - 0x7476b000      C:\WINNT\system32\MSCTF.dll
    0x6d4a0000 - 0x6d4ad000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\JdbcOdbc.dll
    0x74320000 - 0x7435d000      C:\WINNT\system32\ODBC32.dll
    0x5d090000 - 0x5d12a000      C:\WINNT\system32\COMCTL32.dll
    0x7c9c0000 - 0x7d1d6000      C:\WINNT\system32\SHELL32.dll
    0x77f60000 - 0x77fd6000      C:\WINNT\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000      C:\WINNT\system32\comdlg32.dll
    0x773d0000 - 0x774d3000      C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x20000000 - 0x20017000      C:\WINNT\system32\odbcint.dll
    0x5fe80000 - 0x5fe9b000      C:\WINNT\system32\odbccp32.dll
    0x77c00000 - 0x77c08000      C:\WINNT\system32\VERSION.dll
    0x0c640000 - 0x0c6bd000      ...\Ora10gClient\BIN\SQORA32.DLL
    0x0c6c0000 - 0x0c6c9000      ...\ORA10GCLIENT\BIN\sqresUS.dll
    0x7c140000 - 0x7c245000      C:\WINNT\system32\MFC71.DLL
    0x5d360000 - 0x5d36e000      C:\WINNT\system32\MFC71ENU.DLL
    VM Arguments:
    jvm_args: -Dhttp.proxyHost= -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Dhttps.proxyHost= -Dhttps.proxyPort=80 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\conf\logging.properties -Xdebug -Xrunjdwp:transport=dt_shmem,address=tomcat_shared_memory_id,server=y,suspend=n -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\endorsed -Dcatalina.base=C:\Documents and Settings\XXX\.netbeans\6.0\apache-tomcat-6.0.14_base -Dcatalina.home=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14 -Djava.io.tmpdir=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
    java_command: org.apache.catalina.startup.Bootstrap start
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
    JRE_HOME=C:\Program Files\Java\jdk1.6.0_03
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\bootstrap.jar
    PATH=...\ora10gClient\bin;...\ora9i\bin;...\orant\ora8i\bin;...\orant\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Documentum\Shared;p:\pvcs813\vm\win32\bin;p:\pvcs813\vm\common\bin\win32;P:\PVCS81\vm\win32\bin;P:\PVCS81\vm\common\bin\win32;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\DATA\;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem;C:\Program Files\QuickTime\QTSystem";;C:\Program Files\QuickTime\QTSystem;C:\Borland\JBuilder2005\jdk1.4\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Documentum\Shared;C:\WINNT;C:\WINNT\system32
    USERNAME=XXX
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3
    Memory: 4k page, physical 1047536k(145972k free), swap 2996004k(1885868k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
    Please if have a solution to this problem let me know,
    Please don't say use thin driver because OCI is required on my envirnoment

    Are you sure you are using the Oracle OCI JDBC driver? From you stack trace you are not, you are using the JDBC-ODBC bridge.
    >>
    sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
    j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
    j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
    Ensure you set your database url and driver class in your persistence XML (or DataSource config) to be the Oracle JDBC driver and the Oracle OCI url.
    i.e.
    toplink.jdbc.driver - oracle.jdbc.OracleDriver
    toplink.jdbc.url - jdbc:oracle:oci:@instance
    -- James : http://www.eclipselink.org

  • Oracle 8i connection problem

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg
    I have the Oracle 8i personal edition for win 98. I've installed the software and I'm able to use SQL *Plus. But when I try connecting to server manager to create a tablespace, I can't.
    I'm logged in as Scott/Tiger.
    I'm unable to connect as internal with the password manager.
    I get an Error Msg: "ORA-01031: insufficient privileges"
    Where am I going wrong? Is there any other way to connect to server manager?
    Is there a different userid or pwd? The software is installed at home and there are no admins involved.
    Also, can someone tell me where to find Oracle 8 for windows?

    Have you patched either the 8i or 10g installations? There is a bug (3437884) that makes the 10g software not able to connect to versions of 8i below 8.1.7.4 - the bug is fixed in the 10.1.0.3.0 patchset. So, if you patch the 8i installation to 8.1.7.4.x you can connect using the 10.1.0.2.0 software. Or you can patch the 10.1.0.2.0 software to 10.1.0.3.0 - however there is another bug (3870317) that prevents any additional components from being installed into a 10.1.0.3.0 home. So, if you patch to 10.1.0.3.0 make sure you have installed all the components you will need to into that home before patching. The workaround for this particular bug is a complete uninstall and re-install.
    Sorry for the long-winded response, but hope that helps.
    - Mark
    ===================================================
    Mark A. Williams
    Oracle DBA
    Author, Professional .NET Oracle Programming
    http://www.apress.com/book/bookDisplay.html?bID=378

  • WebLogic 8.1 and Tomcat connection problem

    I am using Tomcat 4.0.6 for my JSPs and WebLogic for my EJBs.
    Everything worked fine under WebLogic 6.1 but I am trying
    to upgrade to WebLogic 8.1 and it is not working.
    I can also connect to WebLogic 8.1 from a standalone class
    but not using Tomcat. What is wrong?
    This is the basic code I am using to connect:
    Hashtable ht = new Hashtable(4);
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://localhost:7009");
    InitialContext ic = new InitialContext(ht);
    Object obj = ic.lookup("NsbInfoHome");
    NsbInfoHome home = ( NsbInfoHome) PortableRemoteObject.
    narrow(obj, NsbInfoHome.class);
    NsbInfo nsbInfo = home.create();
    NsbMemberPrimaryInfo info = nsbInfo.getMemberPrimaryInfo(1);
    And this is the error
    java.lang.NullPointerException
    at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:694)
    at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:666)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:712)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:699)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:76)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:486)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:449)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:345)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
    at javax.naming.InitialContext.init(InitialContext.java:226)
    at javax.naming.InitialContext.<init>(InitialContext.java:202)
    at org.apache.jsp.testWL2$jsp._jspService(testWL2$jsp.java:81)
    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:536)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
    generate class for weblogic.jndi.internal.ServerNamingNode_WLStub ] -
    with nested exception:
    [java.lang.NullPointerException]
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:716)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:699)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:76)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:486)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:449)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:345)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
    at javax.naming.InitialContext.init(InitialContext.java:226)
    at javax.naming.InitialContext.<init>(InitialContext.java:202)
    at org.apache.jsp.testWL2$jsp._jspService(testWL2$jsp.java:81)
    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:536)
    Any ideas how to fix this?
    Thanks,
    Dan

    Hi,
    I work under a sligthly different seeting like Dan used (Java Client instead of JSPs, but same context properties), but the problem is exactly the same: weblogic.rmi.internal.StubGenerator.getStubOnClient() results in a NullPointerException.
    What does this method actually do? I provided the weblogic.jar in the client's runtime environment; is it possible that the method asks for something else on the client side that I have to provide (only guessing...)
    PS: I found the error myself. Its the Eclipse 3.0 IDE that won't work together with the factory class of BEA for some obscure reason. Switching to another IDE solved the problem...
    Message was edited by c_web at Dec 1, 2004 6:03 AM

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

  • Oracle instant connection problem

    In Redhat7.2 Linux,
    I used the connetion description as follows:
    orcl =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.66.85)
    (Port = 1521)
    (CONNECT_DATA =
    (SID = orcl)
    (GLOBAL_NAME = orcl.hexiong.com)
    And TNS_ADMIN environment is set.
    But it can't connect to 192.168.66.85 yet. Why?

    I'v installed Oracle10g Instant Client for linux i386.
    And the error is:
    SQL*Plus: Release 10.1.0.2.0 - Production on Tue Sep 7 09:43:16 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    Enter user-name: sde
    Enter password:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified

  • 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

  • Oracle 10g connection

    Oracle 10G connection problem
    I launch my db with the following script:
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/dbstart"
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl start"
    Here is the output:
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 27 22:17:51 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 188743680 bytes
    Fixed Size 778036 bytes
    Variable Size 162537676 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Database "orcl" warm started.
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 27-FEB-2004 22:17:59
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    System parameter file is /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Start Date 27-FEB-2004 22:17:59
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    But when i try to connect with sqlplus:
    oracle@xavan_fixe oracle $ sqlplus
    SQL*Plus: Release 10.1.0.2.0 - Production on Ven. Févr. 27 22:19:32 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory

    Both friends
    You have to set the ORACLE_SID enviroment variable before getting connection to the database through SQL*Plus so:
    export ORACLE_SID=<database_sid>
    sqlplus /nolog
    conn <user>/<password>
    and that's it
    Joel Pérez
    http://otn.oracle.com/experts

  • Tomcat Connection pooling problem

    I am using Tomcat connection pooling (DBCP) to get the connection from the Database
    It really works great with Oracle, MySQL, Sybase and as well as DB2.
    Recently I tried to integrate apache with tomcat to improve the performance.
    But now the problem is I am unable to load the JDBC Driver its giving me an error message as Cannot load JDBC driver class ?null?
    @ org.apache.commons.dbcp.BasicDataSource.createDataSource ..
    Interseting thing is I am able to get connection through datasource(DBCP) if I use the following URL
    http://localhost:8080/application _name/Hello.jsp
    But I get the error message when I try to get connection through datasource(DBCP)
    as Cannot load JDBC driver class ?null? for this URL
    http://localhost/application_name/Hello.jsp
    Both the URL use same server.xml, httpd.conf,servlet class and jsp pages
    Gurus can you please help me to understand why my application is unable to get the connection when I use this URL http://localhost/application_name/Hello.jsp
    But not with other one
    Please........... Some one help me
    Thanks in Advance
    Maria

    How did you make Tomcat connection pooling(DBCP) working with Oracle?
    I refereced to the "JNDI Datasource HOW-TO" in Jakarta Tomcat. I am using Tomcat 4.18. I can get DataSource object, but when to get connection from dataSource, not any response, It seems freezing.
    I appreciate any reply.
    Johnson Ouyang

  • Connection problem to Oracle 11.1.0 on Windows Professional XP (SP2)

    Hello
    I've recently performed default installations for 3 Oracle Databases, into seperate homes on a newly formatted Windows
    Professional XP (SP2) standalone laptop. For all databases Oracle 10.2.0 (rover), Oracle XE (xe) and Oracle 11.1.0 (fido) I
    installed APEX and they worked perfectly.
    I then installed my Wireless O2 Broadband for my internet which uses DHCP
    I am unable to connect to my databases with the wireless broadband connected. I then bring down all databases and turn
    off/disable the Broadband,then restart all databases.
    Using commands
    Set ORACLE_SID=ROVER
    sqlplus system/rover@rover
    Set ORACLE_SID=XE
    sqlplus system/xe@xe
    Set ORACLE_SID=FIDO
    sqlplus system/fido@fido
    Connections are successfull apart from the Oracle 11.1.0 (fido) database with error
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Can anybody identify my connection problem to Oracle 11.1.0 (fido) database by reviewing my listener.ora, tnsnames.ora and
    other configuration files below.
    Many thanks in advance
    Regards
    Ade
    tnsping results
    ===============
    C:\>tnsping rover
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localho
    t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = rover)))
    OK (10 msec)
    C:\>tnsping xe
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bascilic
    o)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (30 msec)
    C:\>tnsping fido
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1523)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fido)))
    OK (20 msec)
    lsnrctl stat - results
    ======================
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
    Start Date 17-OCT-2009 15:54:12
    Uptime 0 days 0 hr. 32 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\11.1.0\db_fido\network\admin\listener.ora
    Listener Log File c:\oracle\product\11.1.0\diag\tnslsnr\bascilico\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1523ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bascilico)(PORT=1523)))
    The listener supports no services
    The command completed successfully
    General configuration - Environment variables
    =============================================
    PATH =
    C:\oracle\product\11.1.0\db_fido\bin;C:\oracle\product\10.2.0\db_rover\bin;C:\oracle\oraclexe\app\oracle\product\10.2.0\serve
    r\bin;C:\oracle\ohs\bin;C:\oracle\ohs\jlib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI
    Technologies\ATI Control Panel
    TNS_ADMIN = C:\oracle\tns
    C:\oracle\tns\tnsnames.ora
    ==========================
    ROVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rover)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    FIDO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = fido)
    Oracle 10.2.0 listener.ora
    ==========================
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_rover)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Oracle 10.2.0 tnsnames.ora
    ==========================
    ROVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rover)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Oracle XE listener.ora
    ======================
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oracle\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    DEFAULT_SERVICE_LISTENER = (XE)
    Oracle XE tnsnames.ora
    ======================
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Oracle 11.1.0 listener.ora
    ==========================
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    Oracle 11.1.0 tnsnames.ora
    ==========================
    LISTENER_FIDO =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    FIDO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = fido)
    )

    For static registration you need to update the 3 listener.ora files.
    Exemple:
    SID_LIST_LISTENER_FIDO =
      (SID_LIST =
        (SID_DESC
          (ORACLE_HOME = <Oracle Home path>)
          (SID_NAME=FIDO)
    )

  • How to solve Oracle SQL Developer connection problem ?

    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?

    user8860348 wrote:
    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
    password: enter_your_correct_password given at the time of oracle installation
    role: select sysdba if you would connect as sysdba else select normal for users other than sys
    hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
    to find the hostname open terminal/command prompt in oracle installed machine
    type ---> hostname
    type ---->ping hostname
    you can find the ipaddress of the server
    port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
    SID: DB1
    try it
    Good Luck

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Client side connection problems with Oracle

    Hello,
    I'm using JUnit to test my code and am having client connection problems.
    Weblogic server 6.1sp2, oracle 8.1.7, win 2000
    I create an oracle user on the fly (with a dynamic name) and then need to connect
    so I'm getting a direct connection, rather than using a connection pool.
    it works fine when run through the container, but when run through JUnit I get the
    following error:
    java.sql.SQLException: The pool driver only works within the WebLogic server, it
    cannot be called directly in a client. Use the t3 driver.
    So i changed the code to:
    driver = (Driver)Class.
         forName("weblogic.jdbc.t3.Driver").newInstance();
    from:
    driver = (Driver)Class.
         forName("weblogic.jdbc.oci.Driver").newInstance();
    and now i get this error:
    java.sql.SQLException: No suitable driver
    Any ideas??
    Thanks!
    Sara

    Hi Sara,
    You may want to look at Cactus framework. This is a JUnit extension
    for serverside tests. You won't need to care about server/client
    configuration:
    http://jakarta.apache.org/cactus/index.html
    Regards,
    Slava Imeshev
    "Sara Chieco" <[email protected]> wrote in message
    news:3cf7b9ad$[email protected]..
    >
    Hi Sree,
    Actually, I also have a connection pool, so I am getting connections tothe database
    both using the pool (for the static user) and directly for the dynamicusers.
    >
    Here's the code in the config.xml:
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="6"LoginDelaySeconds="1" MaxCapacity="60"
    Name="pics"
    Properties="weblogic.oci.cacheRows=500;user=**;password=**;defaultRowPrefetc
    h=500;server=nmctest"
    RefreshMinutes="10" ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true" Targets="nmc2Server"
    TestTableName="dual" URL="jdbc:weblogic:oracle"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="false"
    JNDIName="weblogic.jdbc.jts.pics" Name="pics" PoolName="pics"Targets="nmc2Server"/>
    >
    And if I change the above DriverName to weblogic.jdbc.pool.Driver the poolno longer
    works, and the direct connection (attempted with weblogic.jdbc.oci.Driver)does not
    work either.
    Thanks for your help!
    Sara

Maybe you are looking for