You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Long Lin Yu <ly...@citiz.net> on 2001/04/11 20:26:51 UTC

Oracle-HOWTO: No suitable driver

Hi everybody,

I followed the instructions of
http://jakarta.apache.org/turbine/oracle-howto.html to setup my tdk1.1a13
environment. The only difference is that I am using Oracle-JDBC driver
"classes12.zip" instead of "classes12_01.zip".  All the work of building my
project goes smooth. But when I run my project, any BasePeer will cause a
error as following:

java.sql.SQLException: No suitable driver
at com.msft.actions.Vlogin.doPerform(Vlogin.java:56)
at
org.apache.turbine.modules.actions.VelocityAction.doPerform(VelocityAction.j
ava:88)
	at
org.apache.turbine.util.velocity.VelocityActionEvent.perform(VelocityActionE
vent.java:116)
	at
org.apache.turbine.modules.actions.VelocityAction.perform(VelocityAction.jav
a:114)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
	at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:148)
	at org.apache.turbine.modules.Page.build(Page.java:90)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
	at org.apache.turbine.Turbine.doGet(Turbine.java:414)
	at org.apache.turbine.Turbine.doPost(Turbine.java:505)

the source code is extremely simple as following :(
---------------------------------
Criteria criteria = new Criteria();
criteria.add( UsersPeer.LOGINNAME, loginName );

Vector users = null;
users = UsersPeer.doSelect(criteria);  <------- here throws the exception
---------------------------------
Runtime environments:
Oracle 8i(8.1.5)
JDK 1.3.1-beta
TDK 1.1a13
Oracle 8i JDBC type 4 Thin driver for JDK 1.2.x  -- classes12.zip from
oracle.com
---------------------------------

Anybody has ideas about this ?

Thanks in advance.

-lylong
mailto: lylong@citiz.net



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org