Hello Berin,

I went a little further and got more of an education of the workings of
avalon and cocoon (the greatness of open source :)). Got the latest cvs of
avalon and cocoon2 compiling and working with mysql databases using
tomcat-4.0.2-b1 and jdk1.4-beta3!

In the JdbcConnectionPool I changed JdbcConnection to AbstractJdbcConnection
and in JdbcConnectionFactory changed JdbcConnection to Jdbc3Connection and
the constructors were gotten.  This of course won't work with jdk1.3.x.

Starting at line 105 in JdbcConnectionFactory:

        if ( null != this.m_connectionClass )
        {
            try
            {
                Class clazz =
Thread.currentThread().getContextClassLoader().loadClass(
this.m_connectionClass );
                Class[] paramTypes = new Class[] { Connection.class,
String.class };
                Object[] params = new Object[] { connection,
this.m_keepAlive };

                Constructor constructor = clazz.getConstructor(
paramTypes );
     System.out.println(this.m_connectionClass);
                jdbcConnection = (Jdbc3Connection)
constructor.newInstance( params );
     System.out.println("first try");
            }
            catch ( Exception e )
            {
...
"first try" ouput occurs when run.

Question: Do you want to make Jdbc3Connection a subclass of JdbcConnection
or use the AbtractJdbcConnection throughout the code?

Regards,

Roger

----- Original Message -----
From: "Berin Loritsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2002 3:08 PM
Subject: Re: no connections in the pool


> Roger I Martin PhD wrote:
>
> > Hello,
> >
> > After compiling the cvs HEAD of excalibur with jdk1.4 the
Jdbc3Connection
> > showed up in the jar.  However, then the next exception occurs:
>
>
> Ok, I will take a look at it.
>
>
> >
> > 2002-01-11 13:36:20 DEBUG   (2002-01-11) 13:36.20:325   [cocoon  ]
> > (Unknown-URI) Unknown-thread/LogKitLogger: Exception in
> > JdbcConnectionFactory.newInstance:
> > java.lang.NoSuchMethodException
> >  at java.lang.Class.getConstructor0(Class.java:1760)
> >  at java.lang.Class.getConstructor(Class.java:995)
> >  at
> >
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb
> > cConnectionFactory.java:123)
> >  at
> >
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
> > 82)
> >  at
> >
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardRe
> > sourceLimitingPool.java:95)
> >  at
> >
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcCo
> > nnectionPool.java:74)
> >  at
> >
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java
> > :126)
> >  at
> >
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(HardR
> > esourceLimitingPool.java:104)
> >
> > Regards,
> >
> > Roger
> >
> > ----- Original Message -----
> > From: "Berin Loritsch" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 11, 2002 1:20 PM
> > Subject: Re: no connections in the pool
> >
> >
> >
> >>Roger I Martin PhD wrote:
> >>
> >>
> >>>Hello, I looked into this and found that the current cvs HEAD supplies
> >>>avalon-excalibur-20011229.jar and a look inside of it shows no
> >>>org.apache.avalon.excalibur.datasource.Jdbc3Connection class
> >>>
> >>
> >>
> >>Let me guess, you are running on JDK 1.4?
> >>
> >>Try compiling Excalibur with JDK 1.4 enabled--you will get the class you
> >>need.
> >>
> >>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > .
> >
> >
>
>
>
> --
>
> "They that give up essential liberty to obtain a little temporary safety
>   deserve neither liberty nor safety."
>                  - Benjamin Franklin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to