You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by marcel_011 <bu...@dplanet.ch> on 2006/10/31 15:39:58 UTC
jdbc access to domino
why I get this msg when I try to connect to domino database the same way a I
do with mySQL?:
java.lang.AbstractMethodError:
lotus.jdbc.domino.DominoConnection.prepareStatement(Ljava/lang/String;II)Ljava/sql/PreparedStatement;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.invoke(AbstractJdbcConnection.java:397)
--
View this message in context: http://www.nabble.com/jdbc-access-to-domino-tf2546193.html#a7095191
Sent from the Cocoon - Dev mailing list archive at Nabble.com.
Re: jdbc access to domino
Posted by marcel_011 <bu...@dplanet.ch>.
how why?!
if I use it outside cocoon with a server.xml enty
<Resource name="jdbc/MedLib" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/MedLib">
<parameter>
<name>username</name>
<value>memyself</value>
</parameter>
<parameter>
<name>password</name>
<value>habrakahabra</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>lotus.jdbc.domino.DominoDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:domino:/MedLib.nsf</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
</ResourceParams>
and have a handler
NotesHandler(){
init();
// System.out.println("NotesHandler init in NotesHandler");
}
protected void init() {
try{
Class.forName("lotus.jdbc.domino.DominoDriver").newInstance();
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
_dsn = (DataSource)envCtx.lookup("jdbc/MedLib");
ebverything works fine??
--
View this message in context: http://www.nabble.com/jdbc-access-to-domino-tf2546193.html#a7097461
Sent from the Cocoon - Dev mailing list archive at Nabble.com.
Re: jdbc access to domino
Posted by Vadim Gritsenko <va...@reverycodes.com>.
marcel_011 wrote:
> why I get this msg when I try to connect to domino database the same way a I
> do with mySQL?:
>
> java.lang.AbstractMethodError:
> lotus.jdbc.domino.DominoConnection.prepareStatement(Ljava/lang/String;II)Ljava/sql/PreparedStatement;
You need to implement this method in your JDBC driver if you want to use
prepared statements.
Vadim
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.avalon.excalibur.datasource.AbstractJdbcConnection.invoke(AbstractJdbcConnection.java:397)