Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Yet another OT question.

Yet another OT question.

2004-02-04       - By David Short

 Back
Reply:     <<     11  

I've tested my OCI8 installation with the JdbcCheckup.java program from the
Oracle JDBC Developer's Guide (attached) and it works.  I'm using Oracle's
connection caching class (OracleConnectionCacheImpl) and everything works
fine with the thin driver.  When I try the oci8 driver I get this message:

2004-02-03 22:55:24 Failed to create data source: No suitable driver

I tried executing the following code before I initialize the connect pool:

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

This didn't seem to make a difference.

Is the oci8 driver compatible with Oracle's OracleConnectionCacheImpl class?
If so, what am I doing wrong.

W2K
Oracle 8.1.7
Apache 2.0.43
Tomcat 4.1.0

-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Tuesday, February 03, 2004 9:14 PM
To: 'George Sexton'
Subject: RE: Yet another OT question.



 <context-param>
   <param-name>jdbcURL</param-name>

<param-value>(description=(address=(host=hostname)(protocol=tcp)(port=1521))
(connect_data=(sid=orcl)))</param-value>
 </context-param>

 <context-param>
   <param-name>user</param-name>
   <param-value>username</param-value>
 </context-param>

 <context-param>
   <param-name>password</param-name>
   <param-value>password</param-value>
 </context-param>

 <context-param>
   <param-name>maxLimit</param-name>
   <param-value>50</param-value>
 </context-param>

 <context-param>
   <param-name>minLimit</param-name>
   <param-value>5</param-value>
 </context-param>

-- --Original Message-- --
From: George Sexton [mailto:gsexton@(protected)]
Sent: Tuesday, February 03, 2004 8:13 PM
To: dshort@(protected)
Subject: RE: Yet another OT question.


If you could show me the values for your context-params I could make
some suggestions. I don't use the pooling stuff.


-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Tuesday, February 03, 2004 8:59 PM
To: 'George Sexton'
Subject: RE: Yet another OT question.


I've been reading on Oracle's web site and think that the thin driver,
which
is what I've been using, doesn't perform extensive error checking like
the
OCI driver does.  So, I'm trying to get the OCI driver working.  I've
got
the Oracle client software loaded (ocijdbs8.dll in the
%ORACLE_HOME%\jdbs\bin directory and classes12.zip and nls_charset12.zip
in
%ORACLE_HOME%\jdbs\lib directory).

Tomcat complained about an invalid driver designation.

2004-02-03 19:35:10 Failed to create data source: ORA-06401 (See http://ORA-06401.ora-code.com): NETCMN:
invalid
driver designator

So, I got to looking around and found a post stating I should change my
database URL to this.

 <context-param>
   <param-name>jdbcURL</param-name>

<param-value>(description=(address=(host=serverName)(protocol=tcp)(port=
1521
))(connect_data=(sid=orcl)))</param-value>
 </context-param>

Now, I get this error:

2004-02-03 19:47:14 Failed to create data source: No suitable driver

My environment is set up according to the Oracle installation
instructions.

I'm still digging, any ideas?

-- --Original Message-- --
From: George Sexton [mailto:gsexton@(protected)]
Sent: Tuesday, February 03, 2004 7:22 PM
To: dshort@(protected)
Subject: RE: Yet another OT question.


The list software that Tomcat uses seems to have more than it's share of
problems with Auto Responders, and the like. I also noticed that it
doesn't strip off notification requests. I ended up re-writing my
procmail filter to remove them. In general, the list software has a lot
of problems.

-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Tuesday, February 03, 2004 8:21 PM
To: 'George Sexton'
Subject: RE: Yet another OT question.


Yours is the only one that returns two replies...  Anyway, thanks for
your
help!

-- --Original Message-- --
From: George Sexton [mailto:gsexton@(protected)]
Sent: Tuesday, February 03, 2004 8:58 AM
To: 'Tomcat Users List'; dshort@(protected)
Subject: RE: Yet another OT question.


Complain to the list maintainers or check your own MUA for a spurious
REPLY-TO header. The message comes in with two reply-to headers and my
MUA is just honoring them when I hit reply:

There are two cases going on here. The first is that you have invalid
SQL. You might be able to catch this by using a prepared statement
rather than a statement. In my experience, the preparation of the
statement will throw an error.

In the second case, if you really need notification about whether the
insert failed because the record existed, you need to create a stored
procedure and send back a result from it. The result will have to be in
the form of a record set (or if Oracle supports it, an OUTPUT variable).
This has the unfortunate side effect of increased overhead to handle the
result set.

I think the problem is that the executeUpdate() method was intentionally
designed to be light-weight and you are trying to use it in a situation
where you need more functionality.


Return-Path:
<tomcat-user-return-91578 (See http://urn-91578.ora-code.com)-gsexton=mhsoftware.com@(protected)>
Received: from mail.apache.org (daedalus.apache.org [208.185.179.12])
  by starbug.mhsoftware.com (8.12.8/8.12.8) with SMTP id
i135NvL8031350
  for <gsexton@(protected)>; Mon, 2 Feb 2004 22:23:57 -0700
Received: (qmail 5054 invoked by uid 500); 3 Feb 2004 05:23:13 -0000
Mailing-List: contact tomcat-user-help@(protected); run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:tomcat-user-unsubscribe@(protected)>
List-Subscribe: <mailto:tomcat-user-subscribe@(protected)>
List-Help: <mailto:tomcat-user-help@(protected)>
List-Post: <mailto:tomcat-user@(protected)>
List-Id: "Tomcat Users List" <tomcat-user.jakarta.apache.org>
Reply-To: "Tomcat Users List" <tomcat-user@(protected)>
Delivered-To: mailing list tomcat-user@(protected)
Received: (qmail 5030 invoked from network); 3 Feb 2004 05:23:12 -0000
Received: from unknown (HELO ms-smtp-01 (See http://mtp-01.ora-code.com)-eri0.socal.rr.com)
(66.75.162.133)
 by daedalus.apache.org with SMTP; 3 Feb 2004 05:23:12 -0000
Received: from short200 (dt0c5n7b.san.rr.com [24.94.16.123])
  by ms-smtp-01 (See http://mtp-01.ora-code.com)-eri0.socal.rr.com (8.12.10/8.12.7) with SMTP id
i135NIOm024368
  for <tomcat-user@(protected)>; Mon, 2 Feb 2004 21:23:21
-0800 (PST)
Reply-To: <dshort@(protected)>
From: "David Short" <dshort@(protected)>
To: "'Tomcat Users List'" <tomcat-user@(protected)>
Subject: RE: Yet another OT question.
Date: Mon, 2 Feb 2004 21:27:23 -0800
Message-ID: <013201c3ea16$694c6420$0264a2c6@(protected)>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0)
In-reply-to: <002601c3ea15$5612c7b0$fe00a8c0@(protected)>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
X-Virus-Scanned: Symantec AntiVirus Scan Engine
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.8




-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Monday, February 02, 2004 10:27 PM
To: 'Tomcat Users List'
Subject: RE: Yet another OT question.


How about replying to one email address or the other. ok?  I'm getting
duplicate messages.  Don't get me wrong, I appreciate your help. I just
don't need the same message twice.

-- --Original Message-- --
From: George Sexton [mailto:gsexton@(protected)]
Sent: Monday, February 02, 2004 9:20 PM
To: 'Tomcat Users List'; dshort@(protected)
Subject: RE: Yet another OT question.


The error is signaled by getting 0 back as the number of affected
records.

-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Monday, February 02, 2004 10:16 PM
To: 'Tomcat Users List'
Subject: RE: Yet another OT question.


My statement is performing an insert, which would not return a result
set.
An executeQuery() would return a result set.  I too, read the
description
about returning an int.  I intentionally tried inserting a duplicate
value
in the index, trying to force an error, and no error was generated.  The
return value was 0.  So, it is returning zero (nothing was inserted) but
that's it.  No SQLException.  There's got to be a way to catch an error
like
this.

-- --Original Message-- --
From: George Sexton [mailto:gsexton@(protected)]
Sent: Monday, February 02, 2004 8:10 PM
To: 'Tomcat Users List'; dshort@(protected)
Subject: RE: Yet another OT question.


I broke out my JDBC handbook (JDBC API Tutorial and Reference, Second
Edition) and it says:

"Returns an int indicating the number of rows affeted by an
INSERT,UPDATE, or DELETE statement; 0 if no rows were affected or the
statement executed was a DDL statement."

"Throws SQLException if the sepcified argument is a statement that
generates a result set."

>>From reading this, it appears the driver is compliant and working per
the specification.

-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Monday, February 02, 2004 7:59 PM
To: 'Tomcat Users List'
Subject: RE: Yet another OT question.


I pulled the latest (1.2 for Oracle 8.1.7) off of Oracle's web site
today.

-- --Original Message-- --
From: George Sexton [mailto:gsexton@(protected)]
Sent: Monday, February 02, 2004 6:33 PM
To: 'Tomcat Users List'; dshort@(protected)
Subject: RE: Yet another OT question.


Probably a flake in the Oracle driver. Check you are using the latest
one.

-- --Original Message-- --
From: David Short [mailto:dshort@(protected)]
Sent: Monday, February 02, 2004 4:18 PM
To: 'Tomcat Users List'
Subject: Yet another OT question.


It seems like a slow day on the list so, thought I'd throw my issue out
there.

I'm working with Tomcat 4.1.0, Oracle 8.1.7 and JDBC 1.2.  It seems that
the
JDBC executeUpdate() method doesn't raise an exception when I pass an
incorrect SQL statement.  It returns 0 rows, but no exception.  Anyone
seen
this before?



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)








-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.