geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <djen...@gluecode.com>
Subject Re: Geronimo :: Derby :: Connector compile error
Date Tue, 16 Nov 2004 18:05:42 GMT
We had some classloader problems with the original handling of the  
exception sorters, and it looks like perhaps only a partial fix got  
applied.

I've just updated both the geronimo derby-connector and  
tranql-connector with a version I like.  If you rebuild both it should  
work.

I can't remember what our process on this is supposed to be.  Should I  
update the openejb maven repo by hand with the updated tranql connector  
jar or is this done automatically?

thanks
david jencks

On Nov 15, 2004, at 10:01 PM, sissonj@insession.com wrote:

> It looks like it may be related to Alan's recent change..
> http://nagoya.apache.org/eyebrowse/ReadMsg? 
> listName=scm@geronimo.apache.org&msgNo=5663
>
> Seems that org.tranql.connector.jdbc.AbstractXADataSourceMCF.java  
> hasn't
> been changed to have a setExceptionSorterClass method.  Currently it  
> has:
>
>     public String getExceptionSorterClass() {
>         return exceptionSorter.getClass().getName();
>     }
>
>     public void setExceptionSorter(ExceptionSorter exceptionSorter) {
>         this.exceptionSorter = exceptionSorter;
>     }
>
> John
>
> Craig Johannsen <cjohan@shaw.ca> wrote on 16/11/2004 04:40:16 PM:
>
>> Doing a maven m:build in a clean geronimo directory, I checked that a
>> recent tranql-connector-1.0-SNAPSHOT.jar has been downloaded into the
>> .maven repository.  Yet the build fails because the
>> org.apache.geronimo.derby.connector.DerbyXAManagedConnectionFactory.
>> setExceptionSorterClass
>> function is not found.  Maybe this is related to Aaron's problem  
>> "TranQL
>
>> DB Problem in M3" (14 Nov 04) where he couldn't load the
>> ExceptionSorterClass.  I have a "deja vu" feeling about this one --
>> we've seen it before?
>>
>> +----------------------------------------
>> | Executing default Geronimo :: Derby :: Connector
>> | Memory: 32M/48M
>> +----------------------------------------
>> Attempting to download tranql-connector-1.0-SNAPSHOT.jar.
>>
>> war:install:
>>
>>
>> build:end:
>>
>>     [copy] Copying 1 file to /home/craigj/geronimo/etc
>> Plugin 'maven-deploy-plugin' in project 'Geronimo :: Derby ::  
>> Connector'
>
>> is not available
>> build:start:
>>
>> default:
>> rar:init:
>>
>> rar:rar:
>> java:prepare-filesystem:
>>
>> java:compile:
>>     [depend] Deleted 0 out of date files in 0 seconds
>>     [echo] Compiling to
>> /home/craigj/geronimo/modules/derby-connector/target/classes
>>     [javac] Compiling 1 source file to
>> /home/craigj/geronimo/modules/derby-connector/target/classes
>> /home/craigj/geronimo/modules/derby-
>>
> connector/src/java/org/apache/geronimo/derby/connector/ 
> DerbyXAManagedConnectionFactory.
>> java:15:
>> cannot resolve symbol
>> symbol  : method setExceptionSorterClass (java.lang.String)
>> location: class
>> org.apache.geronimo.derby.connector.DerbyXAManagedConnectionFactory
>> setExceptionSorterClass(NoExceptionsAreFatalSorter.class.getName());
>>         ^
>> 1 error
>>
>> BUILD FAILED
>> File......
>> /home/craigj/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
>> Element... maven:reactor
>> Line...... 217
>> Column.... 9
>> Unable to obtain goal [default] --
>> /home/craigj/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48:
>> <ant:javac> Compile failed; see the compiler error output for details.
>> Total time: 13 minutes 44 seconds
>> Finished at: Mon Nov 15 20:45:55 PST 2004
>> ============================================================
>> Here is the offending code in DerbyXAManagedConnectionFactory:
>>     public DerbyXAManagedConnectionFactory() throws
>> IllegalAccessException, InstantiationException,  
>> ClassNotFoundException {
>>         super(new EmbeddedXADataSource());
>> setExceptionSorterClass(NoExceptionsAreFatalSorter.class.getName());
>>     }
>>
>> In the parent class of DerbyXAManagedConnectionFactory,
>> AbstractXADataSourceMCF, there is a getExceptionSorterClass, but not a
>> setExceptionSorterClass, although there is this function:
>>     public void setExceptionSorter(ExceptionSorter exceptionSorter) {
>>         this.exceptionSorter = exceptionSorter;
>>     }
>>
>>
>>
>


Mime
View raw message