Couldnot connect JBuilder 6 to ORACLE 8i , JDBC driver problem
Hi guys
I am trying to connect to the oracle 8i database from jbuilder 6 using a simple select statement , but it gives the following error
Root cause:
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
at _0002ftestEmployee_0002ejsptestEmployee_jsp_1._jspService(_0002ftestEmployee_0002ejsptestEmployee_jsp_1.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
plse help me how to connect jbuilder to oracle to access the data. I followed jbuilder doc like from the menu (Tools �� enterprise setup �� database driver ��)
but could not select the driver since it is marked as red (uninstalled). How can I made jdbc driver to available to jbuilder.?. I am using oracle 8i. Will oracle 8i supports jdk 1.3 b��cos I have noticed the jbuilder supports from jdk 1.3 onwards. So plse correct me if I am wrong
waiting for reply
sumesh
thanks for u'r reply.
you mean to say i need to install the new JDBC driver (Classes12.zip and nls_charset12) to the oracle/ora8i/jdbc/lib folder.currently this folder contains only classes102 and classes11.zip files and the corresponding charset only.After instaling the new classes12.zip file do i need to set the classpath?.
Similar Messages
-
Oracle JDBC driver problem for Oracle 8.1.6
i am a newbee to Java, i was trying JDBC programming thru Jbuilder 4.0. now the problem is whenever i am trying the DriverManager.getconnection(), I am getting an error "NO SUITABLE DRIVER". i have downloaded jodbc14.jar(oracle 9i JDBC driver) but so result. what can i do now? any other config issues or is it due to absence of a Oracle JDBC driver of Oracle 8.1.6.
i have set the classpath as mentioned. but no solution.
the error is like this::
java.lang.NoClassDefFoundError: java/sql/Savepoint
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at DbaseTest.DbaseForm.OpenConnection(DbaseForm.java:37)
at DbaseTest.DbaseForm.jbInit(DbaseForm.java:73)
at DbaseTest.DbaseForm.<init>(DbaseForm.java:26)
at DbaseTest.Application1.<init>(Application1.java:11)
at DbaseTest.Application1.main(Application1.java:40)
i have imported
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import oracle.jdbc.*;
import java.lang.*;
the driver is registered by:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); -
Problem with Java 5 and Oracle 10g JDBC driver
Hi All,
Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
Thanks,sounds like a database problem...
Are you using a driver version that's supported for your database engine?
What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
So it's either your database, your driver, your network (dropping packets???), or your application.
The upgrade may just have exposed something that was already there. -
Spy for oracle thin jdbc driver
Does anyone know a good spy utility to intercept the
query going to the database thru oracle thin jdbc driver?If you can post the code, I would be happy to look at. I'm not aware of any 'trapping' mechanism for JDBC, although there may be one. Are you confident that you are 'waiting' on the execute of the SQL? It's very unusual for nothing to happen. In most cases, I would expect a long running query, or that you are getting, but not catching an Exception. Code would help if that's possible...
-
Connection string for Oracle in instantclient11_1 Driver without TNS
We have Oracle DB without tnsnames.ora.
We are able to connect to the DB using sqlplus from a command line with the following connection string:
username/Password@DomainAdress:Port/DataBaseName.DomainAdress
SYS/****@computerName.Domain.net:1523/DataBaseName.computerName.Domain.net
If we try to connect from the command line only with the DB name and not the FQDN – the connection fails.
We would like to connect using Driver={Oracle in instantclient11_1} We tried the following connection string:
Driver={Oracle in instantclient11_1};Dbq= computerName.Domain.net:1523/ DataBaseName.computerName.Domain.net;Uid=SYS;Pwd=**** as sysdba
We got the following Error:
[Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
What should be the right connection string for Oracle in instantclient11_1 Driver?Thanks for the confirmation.
-
Hi,
I want to connect to an Oracle 7 database over JDBC. When I go to the download page, it only gives me Oracle 8 and higher download options, even though the documentation index lists an Oracle7 driver.
Does anyone know where I can get it from?
Regards,
Kelsey GrantJin Yu (guest) wrote:
: Is there a column limitation in Oracle 7 JDBC drivers ? We are
: not able to retrieve more than 11 columns in a SELECT
statement.
: Could someone get back to us on this ?
: Thanking you in advance
: Jin Yu
Hi!
I tried to use the JDBC driver to connect to Oracle 7. But had
some trouble with it.
Could you give me some hints on how to load the driver, set up
the url for database, etc?
By the way, we use JBuilder.
Thanks.
null -
Oracle jdbc driver problems in netbeans 5.5
need help again....i'm experience a problem. the problems are :
i connect from netbeans 5.5 to oracle database express client 10g using jdbc driver ojdbc14.jar. the connection succeded (all the tables appears and i even can view the data). but when i trying to bind data to a drop down list component (with right click to the dropdown list component and then bind data), the dataprovider of that table appear in red color and there's no field appears in that. i'm so confused? i already add the ojdbc14.jar driver to the following path :
1. i create a new class library in netbeans with consist of that driver,
then added to my project (right click in my project then add library).
2. then i added the ojdbc14.jar driver to my tomcats lib at "C:\Program
Files\netbeans-5.5\enterprise3\apache-tomcat-5.5.17\common\lib".
Is there any additional settings in using oracle jdbc driver? Does anyone knows? thanks a lot for the answers...
Message was edited by:
darma_sadhaHi!
I'm using NetBeans 6.5 and I'm having some troubles to connect.
The steps I've made:
- Create the connection pool in Glassfish, nothing special, just standard parameters (Based on javax.sql.DataSource and including URL, Username and Password).
- Create the JDBC resource associated with that connection pool,let's say jdbc/test.
Now in NetBeans I register the driver:
- New driver -> Find the ojdbc14.jar and from the options that I can choose it shows: oracle.jdbc.OracleDriver and oracle.jdbc.driver.OracleDriver.
If i choose without +.driver+ I got the thin drivers (the ones i want) and if i chosse the one with the other one I got the OCI drivers. So I choose the first option oracle.jdbc.OracleDriver
- Then I go to my project and click New -> Entity Classes from Database and from Datasource I select jdbc/test and it shows the following error message:
Unable to find the driver oracle.jdbc.driver.OracleDriver. Please register this driver in the Databases.
I can fix it if while registering the ojdbc14.jar I select the second option (*oracle.jdbc.driver.OracleDriver*) but with this option I need to specity the connection to use OCI instead of the desired thin driver.
I hope you'll understand and help me somehow
Edited by: KILE on Oct 10, 2008 2:26 AM -
Oracle JDBC driver problem for Canada locale
Hi, there:
I have problem on Oracle JDBC thin driver with Canada locale on client side:
I'm using Oracle9i thin jdbc driver, the nls parameters in oracle database is:
NLS_LANGUAGE: AMERICAN
NLS_TERRITORY: AMERICA
NLS_NUMERIC_CHARACTERS : .,
My java client side is running on Windows NT, which using jdbc thin driver to connect oracle database. If I set the locale in client side as "English(Canada)", it seems return me "French" number format, like ",45" (comma, instead of decimal point) for "0.45". However, If I set client side locale as "English(United States)", it returns me "0.45" as expected.
So, my question: does Oracle JDBC driver always returns "French" number format evenif I set "English(Canada)" as locale? Because Canada have both English and French locale "French(Canada), and English(Canada)". How can I get "English" number format like "0.45" with "English(Canada)" locale setting?
Really appreciated any reply, and thanks a lot in advance
DavidSounds like a question for Oracle Support to me.
Anyway, the way to avoid the problem is to not ask Oracle to format numbers. Get the number directly (via ResultSet.getInt() or getDouble() or whatever) and ask Java to format it. -
Oracle 8.1.5 JDBC driver problem with LONGVARCHAR
Hi, I'm having problem with 8.1.5 release on Solaris with the
JDBC type 4 driver (thin). If I create the following table
create table test1 (col1 NUMBER, col2 LONG);
Using JDBC driver to insert into the second column any string
longer than 4000 characters causing run time exception. The type2
driver works fine, but type2 is slow.
String sql = "insert into test1 (col1, col2) values (1099,?)";
PreparedStatement stmt ;
stmt = conn.prepareStatement(sql);
// create a string with very long value , bigger than 4096
stmt.setString(1,string);
stmt.executeUpdate();
runtime exception:
java.sql.SQLException: Data size bigger than max size for this
type
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(Compiled Code)
at oracle.jdbc.dbaccess.DBError.check_error(Compiled
Code)
at oracle.jdbc.ttc7.TTCItem.setArrayData(Compiled Code)
at
oracle.jdbc.driver.OraclePreparedStatement.setItem(Compiled Code)
at
oracle.jdbc.driver.OraclePreparedStatement.setString(Compiled
Code)
at testi.main(Compiled Code)
Any help is appreciated.
Thanks
Steve
nullPost the full stacktrace here
Also you might want to post jdbc related questions to weblogic.developer.
interest.jdbc
Kumar
DreamNEON wrote:
Hello,
the NSAPI integration works, also the JSP files.
But I have still problems with the Jdriver for my Oracle 8.1.5.
I get the message :
Failed to invoke startup class
weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.internal.JdbcStartup
when the WebLogic Server is started.
Any ideas or hints about that?
Thanks in advance
Armin -
Oracle 8.1.5 - jdbc driver problem
I am using Oracle8.1.5 (personal oracle) for database. I am trying to retrieve the data from JAVA(JDK 1.3). I use the following driver and its manager in the Java program:-
DriverManager.registerDriver(new Oracle.jdbc.driver.OracleDriver());
Class.forName("Oracle.jdbc.driver.OracleDriver");
However Java is not getting compiled with the following error message:-
Cannot resolve symbol:
package: driver
class: DriverManager
I would request your goodselves to help me out. Thank you in anticipation.
Regards,
SivaswamyThanks for the reply.
Have you tried manually taking the current time and
converting it to the way Oracle is expecting it? If I embed a TO_DATE and format it, it works fine, but I want to stay database independent. Is that want you mean?
Or how about using new java.util.Date() to get the
current date?Not sure I follow you:
--- insertStmt.setTimestamp(5, new java.sql.Date(System.currentTimeMillis()));
Gives an error since setTimestamp expects a java.sql.Timestamp and
--- insertStmt.setDate(5, new java.sql.Date(System.currentTimeMillis()));
Only stores the date without the time.
Thanks again,
Todd -
Hi,
When I write code as
Resultset rs = .....
rs.last();
there is no problem for MySQL JDBC Driver, but when I use this code for Oracle, I am getting error with line 2. Why ? Do you know any Oracle JDBC Driver that supports "rs.last()" ? Or is there another way to handle it?
Thanks.Most of the JDBC Drivers can handle "rs.last()".
The question here is, how do you create a Scrollable ResultSet using DatabaseMetaData, or if this is even possible.
A thorough read of the API docs, for the Classes and methods being used here will answer this question (now that you know what the actual question is). -
JDBC Driver problem when using JDeveloper 10.1.2 with JDK 1.4
I hope someone can help me solve this problem (which I am sure others have encountered).
The JDK that is downloaded together with JDeveloper 10.1.2 is JDK 1.4.2. However, I believe the JDBC jar files that comes together with JDeveloper 10.1.2 are for JDK 1.2 : classes12.jar, classes12dms.jar and nls_charset12.
What I did was I replaced the JDeveloper 10.1.2 JDBC (JDK 1.2) jar files with the JDBC jar files from JDeveloper 10.1.3 download i.e. ocrs12.jar, ojdbc14.jar, ojdbc14dms.jar and orai18n.jar and then create a new JDBC Library which references these new jar files. I was able to successfully run my applications (under my modified JDeveloper 10.1.2) using this new JDBC library (instead of the original 'Oracle JDBC' library). However, when I created a Database Connection in this modified JDeveloper 10.1.2, the connection was unsuccessful. I received the error message "Unable to find driver: oracle.jdbc.driver.OracleDriver".
My organisation requires me to use JDK 1.4.2 and therefore I cannot use JDeveloper 10.1.3 (which I did not encounter any JDBC problem) as it is certified to run only on JDK 1.5.
Please help. Thanks.JDev 10.1.2 is quite old, and was never certified for Windows 2008.
No need to post multiple threads - same question as {thread:id=2271522} -
WLS6.1 SP4 weblogic JDBC driver problem
Hi,
We have a big Oracle table (more than 13000000 rows). The query cost by SP2 weblogic
driver is about 200 milli-second while SP4 cost is more than 200 seconds. Does
anyone know how to fix the problem? Our Orale is 9.2.0.1. The test program is
a simple java application running on Sun 5.8, JDK 1.3.1_02-b02.amyshuai wrote:
We are using the weblogic jdbc driver. The connection is from JDBCTxDataSource.
Problem can be solved by using oracle jdbc driver 9.0.1.4, but we are curious
why
the jdbc driver can impact the query performance so much?So all connections are coming through our pool, and you found a performance
regression in our Oracle driver between sp2 and sp4, which you work around
by using Oracle's own driver. Is that correct?
thanks,
Joe -
How to resolve "Failed to load TTSQLDB JDBC driver" problem
Hi,
I installed timesten112140.sparc64.tar on solaris m/c.
Details of solaris m/c are
SunOS pun-ldom-rds70 5.10 Generic_139555-08 sun4v sparc SUNW,T5240
I am getting below mentioned error when trying connecting to the database through java process.
ERROR: failed to load TTSQLDB JDBC driver.
java.sql.SQLException: Problems with loading native library/missing methods: /op
t/TimesTen/ttsolaris21/lib/libttJdbc.so: ld.so.1: java: fatal: /opt/TimesTen/tts
olaris21/lib/libttJdbc.so: wrong ELF class: ELFCLASS64 (Possible cause: architec
ture word width mismatch)
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:
1753)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:349)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:205)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at CreateConnectionDemo.createConnection(CreateConnectionDemo.java:43)
at CreateConnectionDemo.<clinit>(CreateConnectionDemo.java:26)
Exception in thread "main" java.lang.NullPointerException
at CreateConnectionDemo.closeConnection(CreateConnectionDemo.java:69)
at CreateConnectionDemo.main(CreateConnectionDemo.java:62)You are trying to open a direct mode connection to 64-bit TimesTen from a JVM running in 32-bit mode. This is not possible. Run the JVM in 64-bit mode instead and thsi issue will be resolved.
Chris -
Microsoft SQL Server JDBC Driver problem
Hi all,
I've downloaded the JDBC driver for SQL Server 2000 from Microsoft website and I
tried creating connection pool in Weblogic (WL 6.1 SP2).
Following are the configuration from the admin console,
Name - SQL2K
URL - jdbc:microsoft:sqlserver://127.0.0.1:1433
Driver Classname - com.microsoft.jdbc.sqlserver.SQLServerDriver
ACLName - sa
Password - tonypet
After creating the config, I select to chose the target server from the Servers tab
in Targets main tab in the admin console and when I click on Apply I saw in the WL
server command prompt the following error,
<16/07/2002 11:22:55> <Error> <JDBC> <Cannot startup connection pool "SQL2K" Cannot
load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have assigned the classpath env var as follows,
CLASSPATH=;.;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program
Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;c:\bea\wlserver6.1\lib\weblogic.jar
I've tried even copying the .JAR files to the ext and lib directory of bea directory
but I'm getting the same error.
Can anyone help me please.
Thanks a lot for your help
Cheers
NanikHi. You will also be wanting to add this property for the pool to apply to that driver:
SelectMethod=cursor
Joe
Nanik Tolaram wrote:
Hi all,
After fiddling around I found a solution (hope this will help those who are having
the same problem),
1. Make sure you add the complete directory of the library of the .JAR files in the
classpath in the STARTWEBLOGIC.CMD, I made a mistake of specifying the path in the
CLASSPATH and NOT IN the STARTWEBLOGIC.CMD as the classpath is overriden in the STARTWEBLOGIC.CMD
file.
2. The other thing I found was the configuration setting. I put the full settings
in the URL in admin console as follows,
jdbc:microsoft:sqlserver://127.0.0.1:1433;user=nanik;password=tonypet;databasename=scriptbuilder
When I put it individually in the Properties filed it won't work as it is not picking
it up from there but when I moved it to the URL and put it all together it worked
fine.
Whew !!! it's been a looong day, hope the info will help.
Cheers
Nanik
"Nanik Tolaram" <[email protected]> wrote:
Hi all,
I've downloaded the JDBC driver for SQL Server 2000 from Microsoft website
and I
tried creating connection pool in Weblogic (WL 6.1 SP2).
Following are the configuration from the admin console,
Name - SQL2K
URL - jdbc:microsoft:sqlserver://127.0.0.1:1433
Driver Classname - com.microsoft.jdbc.sqlserver.SQLServerDriver
ACLName - sa
Password - tonypet
After creating the config, I select to chose the target server from the
Servers tab
in Targets main tab in the admin console and when I click on Apply I saw
in the WL
server command prompt the following error,
<16/07/2002 11:22:55> <Error> <JDBC> <Cannot startup connection pool "SQL2K"
Cannot
load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have assigned the classpath env var as follows,
CLASSPATH=;.;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program
Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;c:\bea\wlserver6.1\lib\weblogic.jar
I've tried even copying the .JAR files to the ext and lib directory of bea
directory
but I'm getting the same error.
Can anyone help me please.
Thanks a lot for your help
Cheers
Nanik
Maybe you are looking for
-
Skipped audio files when burning disc in iDVD.
I burned a DVD using iDVD version 7.0. The audio files sound perfect on the computer but on the disc there are skipped areas noted in three different audio files. I did try different discs and burned discs on both my laptop and my desktop. I have use
-
How do i get my note back on my iphone 4
-
What generations of ipod touch works with facetime?
What generations of ipod touch work with facetime? I would imagine, one download the application to the computer then sync with the ipod touch. Will facetime work with itunes on a windows box or it only works with Apple computer / laptob....
-
The phone is in a block of flats so the police won't do anything. Is there a way to prove or zoom in to validate the EXACT location?
-
Siri is not responding to any question
Siri is not responding. latest 8.1.2 iOS. I have started and restarted many times. Any question whatsoever is met with the same response "sorry, i can't find that right now, please try again." ANY question - what time is it, what is the temperat