Applets: DriverManager.registerDriver  NoClassDefFoundError

Basically, I can get a Java Program to work, but an applet with the same code fails. I'm running j2sdk 1.4.1.02 under Windows 2000, with Oracle 9i and Internet Explorer 6.0.
CreateJoltData is just a plain Java program; JoltData is an Applet (Included below). Both use the same statement to register the Oracle Driver. It's the one that is used in all of the books and the Oracle webpages:
DriverManager.registerDriver(new Oracle.jdbc.OracleDriver());
I can connect and access an Oracle database from the Java program (CreateJoltData)...but not the Applet (JoltData).
If I use the Classpath: .;C:\oracle\ora92\jdbc\lib\classes12_g.zip:
- The program compiles and executes just fine.
- The Java Applet compiles but gets a runtime error that usually means that the Classpath is not set correctly:
java.lang.NoClassDefFoundError: orable/jdbc/OracleDriver.
If I use the Classpath: .;C:\oracle\ora92\jdbc\lib\ojdbc14_g.zip
(which Oracle recommends), both the program and the applet get a compile error:
Package Oracle.jdbc does not exist.
Any help would greatly be appreciated!!!
Donna
------------------ JoltData.java:
/* JoltData
compile: javac JoltData.java
execute: JoltData.html
import java.applet.*;
import java.awt.*;
import java.io.*;
import java.sql.*;
import oracle.sql.*;
import oracle.jdbc.*;
public class JoltData extends Applet {
String database= "Coffee";
String username = "Donna";
String password = "v1v1enne";
Connection conn=null;
// Constructor
public JoltData () {
System.out.println("username " +username );
System.out.println("password " +password );
registerDB();
connectDB();
// Register Driver
private void registerDB() {
System.out.println("registerDB " );
try {
DriverManager.registerDriver(new
oracle.jdbc.OracleDriver());
System.out.println("registerDB done.");
} catch (Exception e) {
System.err.println("problems registering .");
// Connect To Database
private void connectDB() {
System.out.println("connectDBURL." );
try {
conn = DriverManager.getConnection
("jdbc:oracle:oci8:@" + database,
username,
password);
// Create a statement
Statement stmt = conn.createStatement ();
stmt = conn.createStatement();
System.out.println("connectDB: Connection done. ");
} catch (Exception e) {
System.err.println("connectDB: problems connecting to
database. ");
public void main (String[] args) {
JoltData converter = new JoltData ();
}

After much (MUCH) hair pulling, I have my Applet accessing my database (and, more troubles to come, I'm sure :-) . Without Rauf Sarwar's help, I'd probably be bald!
Here's what the final solution is (first example line is generic; the second, is my setting):
- Make sure that the Classpath includes an entry for the Oracle drivers:
.;[driver].zip
.;C:\oracle\ora92\jdbc\lib\classes12.zip
- The subdirectory containing the java class file (executable) should also
contain the Oracle driver.
- HTML file needs to contain: archive=[driver].zip
<APPLET CODE="[name].class" archive="[driver].zip ">
<APPLET CODE="JoltData.class" archive="classes12.zip ">
- Java.policy needs a line for SocketPermissions:
permission java.net.SocketPermission "[hostname]", "connect,resolve";
permission java.net.SocketPermission "Waltz", "connect,resolve";
- Java.policy needs a line for PropertyPermission for Oracle:
permission java.util.PropertyPermission "oracle.jserver.version",
"read, write";
Oh, and, in the "catch" put the following line...it helped immensely!!
System.out.println(e.toString());
Again, lotsa thanks goes to Rauf Sarwar for this solution!!!
Donna

Similar Messages

  • Memory leak in DriverManager.registerDriver()

    I am finding that when a driver is registered with the java.sql.DriverManager multiple times it runs the JVM out of memory (crashing it). I tested using the last three versions of the JDBC (thin) drivers through 8.1.7, using both Sun JDK 1.2.2 and 1.3 (final) on Linux. It takes only a 1-2 minutes to use all the memory. The following code should be sufficient to reproduce the issue:
    import java.sql.*;
    public class ClassLd {
    public static void main(String[] args) {
    try {
    while (1==1) {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    } catch (Exception e) {
    System.out.println("Error");
    e.printStackTrace();
    This produces the following error:
    Exception in thread "main" java.lang.OutOfMemoryError
    <<no stack trace available>>
    The documentation clearly states that "You register the driver only once in
    your Java application." However, a memory leak is still a nasty bug -- even if that line of documentation was skimmed.
    Thanks,
    slag
    [email protected]

    If you are concerned about registering the same driver multiple times then you should use the DriverManager.deregisterDriver() API to clean up.
    In your program the DriverManager has no choice but to hold on to all of the driver objects that you are creating and registering.

  • Difference between DriverManager.registerDriver and Class.forName?

    Hi all,
    I've noticed that the Oracle JDBC driver specifically asks to use DriverManager.registerDriver instead of Class.forName. What is the difference btw those 2 methods in loading and registering the driver?
    Thanks.

    I am trying to understand the jdbc, odbc drivers better.
    Does the class my.sql.Driver refer to a driver for MySql or is it a driver itself?
    with the lines one and two commented out, the code works fine. but with lines one and three commented out and the dbDriver being as specified in line two; no connection is made to the database. Can anyone explain this? and when i do Class.forName(dbDriver), is there a class by that name?
    //String dbDriver = "sun.jdbc.odbc.JdbcOdbcDriver"; //one
    //String dbDriver = "my.sql.Driver"; //two
    String dbDriver = "MySql ODBC 3.51 Driver"; //three
    String dbSource = "jdbc:odbc:mydb";
    try {
         Class.forName(dbDriver);
         conn = DriverManager.getConnection(dbSource);
         statement = conn.createStatement();
    } catch(Exception exception) {
         System.out.println(exception.getMessage()+" from the "+exception.toString());
         System.exit(1);

  • Regarding DriverManager.registerDriver(...)

    Hi All,
    I need to test connection to a database before Data Sources can be created on it.
    1. I load a driver jar from user speciifed location using URLClassLoader.
    2. Then i load data source class name specified by user. For example for "oracle.jdbc.xa.client.OracleXADataSource" i do:
         Class c = loader.loadClass ("oracle.jdbc.xa.client.OracleXADataSource");
    3. Now i need to load and register the driver class with DriverManager. This happens automatically had i used
    Class.forName("oracle.jdbc.xa.client.OracleXADataSource") as would have created an instance and
    directly loaded the driver class also.
    5. So for eg: For "oracle.jdbc.xa.client.OracleXADataSource", i need to do DriverManager.registerDriver("OracleDriver");
    (knowing that OracleDiver is the driver class for the datasource class mentioned.          
    6. But how will i know which driver class to load given user has specified a data source class name.
    For eaxmple for:               
              COM.ibm.db2.jdbc.DB2XADataSource
              com.ibm.db2j.jdbc.DB2jXADataSource
              oracle.jdbc.xa.client.OracleXADataSource
    I cant use Class.forName(), as i need to load the class from the path specified by user and not default classpath.
    Please help.
    Regards.

    Hi All,
    I need to test connection to a database before Data
    Sources can be created on it.
    1. I load a driver jar from user speciifed location
    using URLClassLoader.
    2. Then i load data source class name specified by
    user. For example for
    "oracle.jdbc.xa.client.OracleXADataSource" i do:
    Class c = loader.loadClass
    ss ("oracle.jdbc.xa.client.OracleXADataSource");
    3. Now i need to load and register the driver class
    with DriverManager. This happens automatically had i
    used
    Class.forName("oracle.jdbc.xa.client.OracleXADataSour
    ce") as would have created an instance and
    directly loaded the driver class also.
    No, loading the class into the JVM is not the same as registering it with DriverManager.
    5. So for eg: For
    "oracle.jdbc.xa.client.OracleXADataSource", i need to
    do DriverManager.registerDriver("OracleDriver");
    (knowing that OracleDiver is the driver class for
    for the datasource class mentioned.Simple, call newInstance() on the class you loaded with forName() and pass that to registerDriver(). You will have to cast it as an instance of Driver.
    6. But how will i know which driver class to load
    given user has specified a data source class name.
    For eaxmple for:               
              COM.ibm.db2.jdbc.DB2XADataSource
              com.ibm.db2j.jdbc.DB2jXADataSource
              oracle.jdbc.xa.client.OracleXADataSource
    I cant use Class.forName(), as i need to load the
    class from the path specified by user and not default
    classpath.
    Please help.
    Regards.See above.
    - Saish

  • DriverManager.registerDriver  - Error

    Hello. I am new to java. i have a Class i created (on the IBM As/400 - iseries) and tried to compile - but i get this error:
    Sqlweb400.java:69: package com.microsoft.jdbc.sqlserver does not exist
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver));
    I have the ":CLASSPATH" as such"
    export-s CLASSPATH=/java/jt400.jar:/java/msbase.jar:/java/msutil.jar:/java/mssqlserver.jar:/java/tools.jar
    Am I missing a jar file (thast needs to be added to the classpath - put in the respective folder also)? Thanks in advance for any help, it's greatly appreciated.

    Hello. I am new to java. i have a Class i created (on the IBM As/400 - iseries) and tried to compile - but i get this error:
    Sqlweb400.java:69: package com.microsoft.jdbc.sqlserver does not exist
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver));
    I have the ":CLASSPATH" as such"
    export-s CLASSPATH=/java/jt400.jar:/java/msbase.jar:/java/msutil.jar:/java/mssqlserver.jar:/java/tools.jar
    Am I missing a jar file (thast needs to be added to the classpath - put in the respective folder also)? Thanks in advance for any help, it's greatly appreciated.

  • DriverManager.registerDriver -- can it take a variable as argument?

    While trying to make code generic, noticed that DriverManager.registerDriver takes a class like this:
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver ());How does one make the argument a variable? The intent is to make the code read properties file, determine what kind of RDB and use the appropriate class. I don't want to use switch or if-then-else at this point.
    Thanks
    Murthy

    I think the registerDriver method is intended to be called by the driver's themselves.
    When the driver class gets loaded, they get registered to the DriverManager.
    So, you can always read the driver classname from a properties file and call
    Class.forName(<drivername>);
    to register the driver.
    And this is what most J2EE containers do.
    Does this answer your question.
    Vijay

  • DriverManager.registerDriver(....) doesnt work

    I have a javabean which is called from webforms on a when-button-pressed trigger. The javabean works fine, except when it reaches a point in the code where i try to load the oracle jdbc driver:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver())
    when it hits this line, the program just hangs there, no error messages of any kind. Plus, I have tried running the same code in a standalone java application, and it works just fine.
    If you have experienced this, or know why this might be happening, please let me know, your help is appreciated.

    Class not found means as it suggests that the Forms client does not have access to all the classes it needs - in your Archive / archive_jini setting in the Formsweb.cfg file you will need to ensure that you include the JAR file that includes the JDBC runtime stuff as well as the jar file that contains your bean.
    In JDeveloper you can create a new deployment profile to create a simple JAR file. In the settings for this deployment you can specify that the JAR should include dependant classes so you can combine the JDBC and Bean classes into a single JAR.
    For information on Jar File signing for Forms see the new white paper on the Forms Page on otn
    http://otn.oracle.com/products/forms

  • Error connecting applet with oracle database

    hi all,
    here i m running the following code .
    it executes the following query "Select * from emp";
    the number in the text filed decides the column number to be displayed.
    import java.awt.*;
    import java.applet.*;
    import java.sql.*;
    /*<applet code=project.class width=300 height=200>
    </applet>*/
    public class project extends Applet
    Statement stmt=null;
    Connection conn = null;
    TextField t1;
    public void init()
    t1 = new TextField(2);
    add(t1);
    t1.setText("0");
    public void paint(Graphics g)
    int x=0,y=0,z=0;
    String s1,s2,s;
    try{
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    catch(Exception e)
    try{
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@anant:1521:student", "scott", "tiger");
    stmt = conn.createStatement();
    catch(Exception e)
    s1 = t1.getText();
    x = Integer.parseInt(s1);
    try{
    ResultSet rset = stmt.executeQuery("select * from emp");
    while (rset.next())
    s2 = (rset.getString(x));
    g.drawString(s2,100,100);
    stmt.close();
    catch(Exception e){}
    public boolean action(Event event,Object obj)
    repaint();
    return true;
    i m getting following error.
    Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    at project.paint(project.java:23)
    at java.awt.Container.update(Container.java:1730)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
    at sun.awt.RepaintArea.paint(RepaintArea.java:216)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
    at java.awt.Component.dispatchEventImpl(Component.java:4031)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    this error comes when i run every jdbc applet.
    can anyone suggest any solution.

    Mintu,
    You said:
    i do have to access to jdbc driversNo, you don't. Otherwise you wouldn't be getting that error message.
    Good Luck,
    Avi.

  • Error connecing applet with oracle database

    here i m running the following code .
    it executes the following query "Select * from emp";
    the number in the text area decides the column number to be displayed.
    import java.awt.*;
    import java.applet.*;
    import java.sql.*;
    /*<applet code=project.class width=300 height=200>
    </applet>*/
    public class project extends Applet
    Statement stmt=null;
    Connection conn = null;
    TextField t1;
    public void init()
    t1 = new TextField(2);
    add(t1);
    t1.setText("0");
    public void paint(Graphics g)
    int x=0,y=0,z=0;
    String s1,s2,s;
    try{
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    catch(Exception e)
    try{
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@anant:1521:student", "scott", "tiger");
    stmt = conn.createStatement();
    catch(Exception e)
    s1 = t1.getText();
    x = Integer.parseInt(s1);
    try{
    ResultSet rset = stmt.executeQuery("select * from emp");
    while (rset.next())
    s2 = (rset.getString(x));
    g.drawString(s2,100,100);
    stmt.close();
    catch(Exception e){}
    public boolean action(Event event,Object obj)
    repaint();
    return true;
    i m getting following error.
    Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    at project.paint(project.java:23)
    at java.awt.Container.update(Container.java:1730)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
    at sun.awt.RepaintArea.paint(RepaintArea.java:216)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
    at java.awt.Component.dispatchEventImpl(Component.java:4031)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    this error comes when i run every jdbc applet.
    can anyone suggest any solution.

    seems as if your client machines are missing the oracle driver. This is one of the disadvantages of a single tier environment you have to make sure that the oracle driver is available to the machines where the applet is run.
    If you have the possibility to define/change the configuration or setup of these machines, e.g. in an intranet environment) deploy the driver in the ext directory of the virtual machines used. If not you can make it a part of your applet jar file, so it is downloaded with the applet code and therefore available to the virtual machines.

  • Load oracle jdbc driver error when run applet via the web

    Hi All,
    I have built an applet which connect to database via jdbc thin driver. It works fine when I run it through the applet viewer, but got a problem when run it through the web.
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    I am using jdev9i 9.0.4 and jdk 1.4.2. The jdbc version is 9.0.1
    I have added both the classes12.zip and ojdbc14.zip in the class path and also pack them together with my applet class. Here is the code
    public class MyApplet extends Applet
    implements Runnable
    public void start()
    if(theThread == null)
    theThread = new Thread(this);
    theThread.start();
    Retrieve R = new Retrieve();
    this.MyMap = R.retrieveDesc();
    public class Retrieve
    public Retrieve()
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn=DriverManager.getConnection("jdbc:oracle:thin:@babyruth.wvu.edu:1703:devdw", User, Password);
    conn.setAutoCommit(true);
    connectStatus = true;
    public HashMap retrieveDesc()
    return map;
    I have also built one HTML page NewApplet like this
    <HTML>
    <HEAD>
    <TITLE> My New Applet</TITLE>
    </HEAD>
    <APPLET CODE="MyApplet.class" CODEBASE="menu" ARCHIVE="MyApplet.zip" WIDTH=300 HEIGHT=485>
    <!--General Settings-->
    <param name="bgcolor" value="255,255,255">
    </HTML>
    Any advice is highly appreciated
    Mei

    Sir,
    Well you haven't "packed" them correctly. Why don't you just add the driver bits to the soucebase tag? or something like that anyway...
    Sincerely,
    Slappy

  • Oracle Driver NoClassDefFoundError

    I'm not quite sure that this is an ejb question, but I am doing all of this through ejb with glassfish 9.0_01.
    I'm trying to load a simple entity bean from the database, but I'm getting a NoClassDefFoundError.
    Debug output from glassfish:
    JServer Release 9.2.0.6.0 - Production;Oracle JDBC driver;9.2.0.8.0;
            ;|connected_user_database_driver
    @@@@ Returning sysResourceManager
    ConnectorXAResource.end()
    Pool: resourceClosed: 3
    Pool: resourceFreed: 3
    login_successful
    returning the connector registry
    RAR5036:Resource reference is not defined for JNDI name [ORACLE__nontx]
    returning the connector registry
    Found/returing Connector descriptor in connector registry.
    ConnectionMgr: poolName oracle-thinPool  txLevel : 1
    @@@@ Returning noTxResourceManager
    @@@@ Returning noTxResourceManager
    NoTxResourceManagerImpl :: enlistResource called
    LDR5207: EJBClassLoader EJBClassLoader :
    doneCalled = true
    doneSnapshot = EJBClassLoader.done() called ON EJBClassLoader :
    urlSet = [URLEntry : file:/D:/Documents%20and%20Settings/doerscc/Desktop/glassfish/domains/domain1/applications/j2ee-apps/eAR/ojdbc14.jar, URLEntry : file:/D:/Documents%20and%20Settings/doerscc/Desktop/glassfish/domains/domain1/applications/j2ee-apps/eAR/eAR-ejb.jar, URLEntry : file:/D:/Documents%20and%20Settings/doerscc/Desktop/glassfish/domains/domain1/applications/j2ee-apps/eAR/eAR-war_war/WEB-INF/classes/, URLEntry : file:/D:/Documents%20and%20Settings/doerscc/Desktop/glassfish/domains/domain1/applications/j2ee-apps/eAR/eAR-ejb_jar/, URLEntry : file:/D:/Documents%20and%20Settings/doerscc/Desktop/glassfish/domains/domain1/generated/ejb/j2ee-apps/eAR/]
    doneCalled = false
    Parent -> EJBClassLoader :
    urlSet = []
    doneCalled = false
    Parent -> java.net.URLClassLoader@a36b53
    AT Fri Aug 03 09:13:03 EDT 2007
    BY :java.lang.Throwable: printStackTraceToString
            at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:621)
            at com.sun.enterprise.loader.EJBClassLoader.done(EJBClassLoader.java:159)
            at com.sun.enterprise.server.AbstractLoader.done(AbstractLoader.java:309)
            at com.sun.enterprise.server.ApplicationLoader.unload(ApplicationLoader.java:260)
            at com.sun.enterprise.server.TomcatApplicationLoader.unload(TomcatApplicationLoader.java:200)
            at com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:511)
            at com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:687)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:910)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
            at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
            at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:203)
            at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:319)
            at com.sun.enterprise.deployment.phasing.ApplicationStopPhase.runPhase(ApplicationStopPhase.java:119)
            at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:606)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:652)
            at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:742)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
            at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
            at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
            at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
            at $Proxy1.invoke(Unknown Source)
            at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
            at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
            at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
            at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
            at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Parent -> EJBClassLoader :
    urlSet = []
    doneCalled = false
    Parent -> java.net.URLClassLoader@a36b53
    was requested to find class oracle.jdbc.oracore.OracleTypeOPAQUE after done was invoked from the following stack trace
    java.lang.Throwable
            at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:694)
            at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:614)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:1037)
            at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:889)
            at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1147)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:597)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:470)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
            at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
            at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
            at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
            at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
            at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
            at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
            at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
            at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
            at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
            at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:471)
            at com.utc.hs.ear.facade.EarFacadeBean.getAr(EarFacadeBean.java:37)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
            at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
            at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:118)
            at $Proxy51.getAr(Unknown Source)
            at com.utc.hs.ear.controller.EarManager.loadEar(EarManager.java:63)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    @@@@ Returning noTxResourceManager
    NoTxResourceManagerImpl :: delistResource called
    Pool: resourceClosed: 4
    Pool: resourceFreed: 4
    context with empty container in  ContainerSynchronization.afterCompletion
    calling transactionCompleted on oracle-thinPool
    Pool: transactionCompleted: 3
    EJB5018: An exception was thrown during an ejb invocation on [EarFacadeBean]
    javax.ejb.EJBException
            at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3730)
            at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3630)
            at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
            at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:192)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:118)
            at $Proxy51.getAr(Unknown Source)
            at com.utc.hs.ear.controller.EarManager.loadEar(EarManager.java:63)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/oracore/OracleTypeOPAQUE
            at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:1037)
            at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:889)
            at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1147)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:597)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:470)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
            at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
            at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
            at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
            at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
            at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
            at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
            at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
            at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
            at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
            at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:471)
            at com.utc.hs.ear.facade.EarFacadeBean.getAr(EarFacadeBean.java:37)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
            at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
            at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            ... 42 more
    java.lang.NoClassDefFoundError: oracle/jdbc/oracore/OracleTypeOPAQUE
    javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: oracle/jdbc/oracore/OracleTypeOPAQUE
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/oracore/OracleTypeOPAQUE
            at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:1037)
            at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:889)
            at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1147)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:597)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:470)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
            at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
            at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
            at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
            at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
            at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
            at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
            at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
            at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
            at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
            at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
            at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
            at oracle.top                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by KG:
    I do not have oracle server installed on my PC. I want to connect to an oracle DB server on another host from my PC. I am using winNT/JDK1.2.2.
    Hi,
    I am experiencing the same error. Can you please help if your problem is solved. You can email me at [email protected]
    Thanks,
    I have installed the Oracle thin driver (classes12.zip) on my local drive under
    c:\jdk1.2.2\jdbc\classes12.zip. I am setting classpath thus: c:\jdk1.2.2\jdbc\classes12.zip
    My applet compiles fine but gives the foll. error when I invoke appletviewer: java.lang.noClassDefFoundError:
    /oracle/jdbc/driver/OracleDriver
    I am using the foll. line in my applet code: DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Is this a classpath problem ? If yes, then what shud it be set to ?
    Thanks in advance, KG<HR></BLOCKQUOTE>
    null

  • A sign Applet unable to load "oracle.jdbc.OracleDriver" class

    hi,
    i am chiranjit , i am now working in a web based ERP. where i am using a signed applet which unable to load "oracle.jdbc.OracleDriver" class but it easily loading "sun.jdbc.odbc.JdbcOdbcDriver", i am also giving my code:
    import java.sql.*;
    import java.math.*;
    import java.io.*;
    import java.awt.*;
    class JdbcTest extends Applet{
    public static void main (String args[]) throws SQLException {
    // Load Oracle driver
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    // Connect to the local database
    Connection conn =
    DriverManager.getConnection
    ("jdbc:oracle:thin:@192.168.16.7:1521:kris",
    "plsql", "oracle");
    // Query the employee names
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT FIRST_NAME FROM
    AUTHORS");
    // Print the name out
    while (rset.next ())
    System.out.println (rset.getString (1));
    // Close the result set, statement, and the connection
    rset.close();
    stmt.close();
    conn.close();
    }

    Hint: The sun.jdbc.odbc.JdbcOdbcDriver is available in any JRE distribution. The Oracle driver is not.

  • Applet not showing in browser/only getting a grey box

    Hell to all....
    I am using a trial version of MS J++ and every time i execute to the browser i dont see my output all i get is a lil grey box on left side with header rules (<hr> tage in HTML) surounding the box. Can anyone help me out???
    if you need my code i will post it.
    Thanks in advance!

    OK ABUSE, check this out
    this is what i'm trying to do....The boss just wants me to connect to our database...and that's it....all i want to do is to see if i can connect to our database....so all the code is suspose to do is say database connected if it did and if it didn't then it should say connection failure...here is the code once again this is the code and that's it....
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.applet.Applet;
    public class Test extends Applet
    public static final String DB_URL = "jdbc:microsoft:sqlserver://<IP HOST>";
    private Connection conn;
    public void init(){
         try {
              DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver() );
              //Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
              this.conn = DriverManager.getConnection(DB_URL, "user", "pass");
              Statement stmt = conn.createStatement();
         catch (SQLException e){
              System.out.println("Cannot open database connection: " + e.getMessage());
         System.out.println("Connected to database");
    hope you understand what i'm trying to do....

  • Help needed to access Oracle from Applet.

    Please help. I have spent days reading info on the web and I simply cannot access to Oracle from an applet to work. Oracle is on a different IP than the Web Server. For my testing I am running the html directly from my local file system.
    Here are the steps I have taken:
    1. Create a key: "%JAVA_HOME%/bin/keytool" -genkey -alias MyAlias -keypass MyKPass -keystore C:\Keys.bin -storepass MySPass
    2. Sign my jar: "%JAVA_HOME%/bin/jarsigner" -keystore C:\Keys.bin -storepass MySPass -keypass MyKPass -signedjar myjar-signed.jar myjar.jar MyAlias
    3. Sign Oracle's Jar: "%JAVA_HOME%/bin/jarsigner" -keystore C:\Keys.bin -storepass MySPass -keypass MyKPass -signedjar ojdbc14-signed.jar ojdbc14.jar MyAlias
    4. Applet Tag (at this time I have the two jars in the same folder as the HTML and JS files):
        <applet id="MyApp"
      codebase=""
      archive="myjar-signed.jar,ojdbc14-signed.jar"
      code="com/company/applets/Test.class"
      mayscript
      width="50" height="50">
        </applet>5. Javascript:
      document.observe("dom:loaded", function() {
      alert("Applet: " + $('MyApp').getVersion());
      $('MyApp').getConnection(url, user, pswd);
      alert("Applet: " + $('MyApp').getVersion() + "Got Connection.");
      $('MyApp').testConnection();
      alert("Applet: " + $('MyApp').getVersion() + "Connection Tested.");
    });Execution:
    1. The applet loads, The browser asks if I want to trust it, I say yes.
    2. The '$('MyApp').getVersion()' works.
    3. The '$('MyApp').getConnection(url, user, pswd);' fails. Java Code:
      public void getConnection(String url, String user, String pswd)
          throws Exception {
        try {
          System.out.println("Driver...");
          DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
          System.out.println("Connection...");
          _conn = DriverManager.getConnection(url, user, pswd);
          ...The driver registers, but the getConnection fails with a security error.
    After much reading, I used policytool to update the policy file. It added:
    keystore "file:/C:/Keys.bin", "jks";
    grant signedBy "MyAlias" {
      permission java.security.AllPermission;
    };This did not make any difference. Both IE and FF get the same error.
    The JRE being used is 1.6.0_14.
    Any help solving this would be MUCH appreciated.
    Thanks.

    I have simplified the problem, and now it has nothing to do with Oracle. It is a certificate/signing problem.
    Here are the steps I took to set the test up:
    Certificate:
    "%JAVA_HOME%/bin/keytool" -genkey -storepass MyStorePswd -keyalg RSA -alias MyRsa -dname "CN=Company.com, OU=IT, O=Company Inc, L=Atlanta, ST=Georgia, C=US, DC=mailexpress, DC=com" -validity 999
    "%JAVA_HOME%/bin/keytool" -selfcert -storepass MyStorePswd -alias MyRsa -validity 999
    "%JAVA_HOME%/bin/keytool" -exportcert -storepass MyStorePswd -alias MyRsa -rfc -file MyRsa.cer
    "%JAVA_HOME%/bin/keytool" -importcert -keystore "C:\Program Files\Java\jre6\lib\security\cacerts." -storepass changeit -alias MyRsa -file MyRsa.cer
    Jar Signing:
    "%JAVA_HOME%/bin/jarsigner" -storepass MyStorePswd -keypass MyStorePswd -signedjar Text-Project-signed.jar Text-Project.jar MyRsa
    "%JAVA_HOME%/bin/jarsigner" -verify Text-Project-signed.jar
    Result: jar verified.
    HTML:
        <applet id="MyApp"
                codebase="file:/c:/projects/Text-Project/js/Memory"
                archive="Text-Project.jar"           <== unsigned test  OR
                archive="Text-Project-signed.jar"    <== signed   test
                code="com/company/applets/MemTest.class"
                mayscript
                width="50" height="50">
        </applet>
    JavaScript:
    document.observe("dom:loaded", function() {
      alert("Applet: " + $('MyApp').checkSecurity());
    Function in the Applet:
      public String checkSecurity() {
        System.out.println("Security Check...");
        try {
          AccessController.checkPermission(new FilePermission("MemTest.js", "read"));
          AccessController.checkPermission(new FilePermission("MemTest.js", "write"));
          AccessController.checkPermission(new java.net.SocketPermission("192.168.1.121", "resolve"));
        } catch (Exception e) {
          e.printStackTrace();
          return e.getMessage();
        return "Security Checked OK";
      }Results (Internet Explorer):
    1. Unsigned JAR, No policy:
    Result = java.security.AccessControlException: access denied (java.io.FilePermission MemTest.js read)
    (as expected)
    2. Unsigned JAR, Policy = permission java.security.AllPermission:
    Result = Security Checked OK
    (as expected)
    3. Signed JAR, No Policy: Popup states: signature verified; do you want to run the application.
    Result = java.security.AccessControlException: access denied (java.io.FilePermission MemTest.js read)
    (not expected)
    Something is wrong with the certificate or signing process. Any ideas ?
    Thanks.
    Edited by: javadude.101 on Jul 29, 2009 12:29 PM

  • Query to connect Java Applet to Oracle 10g.

    I am developing an Applet in Java 1.5.0.7.My database is Oracle 10g.Now when i connect Oracle to Java I get the Error : java.lang.ExceptionInInitializerError
    and it does not get connected.Please help me anyone.
    Below is the code which i have written.
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.sql.*;
    import java.util.ArrayList;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    public class tt7 extends JApplet
         implements ActionListener, PropertyChangeListener
    private int m_uniqueID = 0;
         JLabel m_lblRadius;
         // A button the user can click to display the Add Theme wizard.
         JButton m_btnAddTheme;
         static String m_mapxtremeURL = null;
         // TODO: Specify a map file name such as "uk.mdf" (if the mdf file is in
         // in same directory that the applet was loaded from),
         // or an URL to a map file, such as "http://host.com/maps/uk.mdf".
         // Or, instead of specifying this URL explicitly here, you can specify it
         // in the HTML page that loads the applet (using the 'filetoload' param).
    ResultSet rs=null ;
    ArrayList arrlist=null;
    ArrayList arrlist1=null;
    ArrayList arrlist2=null;
    //Connection con=null;
    Statement st=null;
         public void start()
         } // start method
         public void init()
    try{
    // System.out.println("helloooooooo");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    //Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con= DriverManager.getConnection("Jdbc:oracle:thin:@asl005:1521:geo","system","1234567");//"jdbc:oracle:thin:@asl005:1521:geo","system","1234567");
    System.out.println("helloooooooo");
    System.out.println("CON:"+con.toString());
    st = con.createStatement();
    System.out.println("St:"+st);
    catch(Exception e2){System.out.println("Exception :"+e2);}
    catch(ExceptionInInitializerError s)
    System.out.println("Exception2 :"+s);
    }// If the HTML page specified parameters, use them to
              // override our default values.
              // See if a MapDef file was specified in the HTML file.
         }     // propertyChange method
         // Respond to the user actions, such as clicking
         // the Add Theme button.
    public void actionPerformed(ActionEvent e)
    // LocalDataProviderRef localDPRef = null;
    // a static label displayed in the applet
    public void propertyChange(PropertyChangeEvent evt) {
    This is the HTML CODE...
    <HTML>
    <HEAD>
    <TITLE>SimpleMap applet demonstration</TITLE>
    </HEAD>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 600 HEIGHT = 440
    codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0">
    <PARAM NAME = CODE VALUE = "tt7.class" >
    <PARAM NAME=archive VALUE="classes12.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.5">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.5"
    CODE = "tt7.class"
    WIDTH = 600 HEIGHT = 440
    archive="classes12.jar"
    pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html">
    <NOEMBED></COMMENT>
    alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
    Your browser is completely ignoring the &lt;APPLET&gt; tag!
    </NOEMBED></EMBED>
    </OBJECT>
    </BODY>
    </HTML>

    My dear colleague, You better consider asking this question in Jdeveloper forum.
    I have a simple code for Windows application. You can easily convert it into Applet application..
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.sql.*;
    public class QueryFrame extends Frame {
    TextField inputText;
    public QueryFrame() {
    super("Query Interface");
    setSize(450, 250);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    ActionListener printListener = new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    ConnectAndRun(inputText.getText());
    Panel toolbar = new Panel();
    toolbar.setLayout(new FlowLayout(FlowLayout.LEFT));
    Button queryButton = new Button("Run Query");
    queryButton.addActionListener(printListener);
    toolbar.add(queryButton);
    inputText = new TextField(14);
    toolbar.add(inputText);          
    // The "preferred" BorderLayout add call
    add(toolbar, BorderLayout.NORTH);
    public static void main(String args[]) {
    QueryFrame tf1 = new QueryFrame();
    tf1.setVisible(true);
         public void ConnectAndRun(String s)
              String sqlquery;
              if (s.equals(""))
              sqlquery ="select * from DEPT where LOC is null";
              else
              sqlquery ="select * from DEPT where LOC like '" + s + "'";
              System.out.println(sqlquery);
              try
              DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
         Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:HELLO","scott","tiger");
         Statement stmt = conn.createStatement ();
              ResultSet rset = stmt.executeQuery (sqlquery);
              while (rset.next ())
                   System.out.println( rset.getInt("DEPTNO"));
                   System.out.println( rset.getString("DNAME"));
                   System.out.println (rset.getString("LOC"));
              rset.close();
         stmt.close();          
              catch (SQLException se)
                   System.out.println(se);
    Make sure you have appropriate libraries in classpath...

Maybe you are looking for

  • Error rollback segment while exporting a table

    I am getting error while exporting a table, can someone advise me how i can handle this issue. EXP-00056: ORACLE error 1555 encountered ORA-01555: snapshot too old: rollback segment number with name "" too small ORA-22924: snapshot too old Thanks

  • ISE 1.1.2 - Agent Customization Package

    Hi there I have created a NAC Agent Customization Package and sucsesfully uploaded the 'custom.zip' file to - Policy>Policy Elements>Results>ClientProvisioning>Resources. However, when I try to edit my Client Provisioning Policy and select AgentCusto

  • Java.sql.SQLException: Invalid precision value. Cannot be less than zero

    Hi, In my portlet application have several jsf tables which bind to several oracle tables. I have tested the portlet in pluto and tried to deploy it on liferay. However, I get an exception stating: java.sql.SQLException: Invalid precision value. Cann

  • Can't import address book?

    I want to import my address book from my old address book (Snow Leopard, Mac Address Book).  Amazingly, when I try to import from the import menu, it says it is not importable.  It seems that unless you use me.com, google or yahoo, there's no way to

  • New tab opens every time i click on a link

    When I'm searching on...lets say Google and I click on the linked website it opens a new tab in Safari Version 6.0.2. How can I turn that off? I want it to open that link in the current tab.