geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Johannsen <cjo...@shaw.ca>
Subject Geronimo :: Derby :: Connector compile error
Date Tue, 16 Nov 2004 05:40:16 GMT
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