Hi Jacek,
       I built openejb 3 and have imported it to my IDE. I went
through the link
http://cwiki.apache.org/confluence/display/OPENEJB/Creating+itests .It
seems to be for openejb 2.1. Also it is written wrt the maven 1 build
process. There are quite a few changes w.r.t OpenEjb 3.

I am assuming that the class called org.apache.openejb.iTest is the
top level Test Suite.
The document says that Derby is the default DB used but on running
the tests openejb seems to want to connect to InstantDB. On running
the iTest class as a junit test case in eclipse I get the error below.
Can you please verify if this is the correct class and where I should
put the driver classes for Instant DB. Also there seems to be some
other errors occurring.


0 [main] WARN OpenEJB  - Unable use logging config as there are 3 file
references containing directories which have not been created.  See
the list below.
10 [main] WARN OpenEJB  - [0]
C:\g\openejb3\container\openejb-core\conf\logs\transaction.log
10 [main] WARN OpenEJB  - [1]
C:\g\openejb3\container\openejb-core\conf\logs\openejb.log
10 [main] WARN OpenEJB  - [2]
C:\g\openejb3\container\openejb-core\conf\logs\server.log
10 [main] WARN OpenEJB.startup  - No ApplicationServer was specified!
The container system will only be accessible by same-vm clients via
the IntraVm Server.
Apache OpenEJB ${pom.version}    build:
@[EMAIL PROTECTED]@TIME-REPLACED-BY-MAVEN@
http://incubator.apache.org/openejb
70 [main] WARN OpenEJB  - Cannot find the configuration file
[conf/openejb.xml].  Will attempt to create one for the beans
deployed.
3986 [main] WARN OpenEJB  - Auto-creating a container for bean
client/tests/entity/cmp/BasicCmpHome: Container(type=CMP_ENTITY,
id=Default CMP Container)
19:27:27,519 WARN  [OpenEJB] Auto-creating a container for bean
client/tests/entity/cmp/BasicCmpHome: Container(type=CMP_ENTITY,
id=Default CMP Container)
3986 [main] ERROR OpenEJB  - Bad resource-link: No such connector with
specified res-id: ResourceLink(res-ref-name=jdbc/basic/entityDatabase,
res-idDefault JDBC Database)
19:27:27,519 ERROR [OpenEJB] Bad resource-link: No such connector with
specified res-id: ResourceLink(res-ref-name=jdbc/basic/entityDatabase,
res-idDefault JDBC Database)
3986 [main] WARN OpenEJB  - Auto-creating a connector with res-id
Default JDBC Database.  THERE IS LITTLE CHANCE THIS WILL WORK!
19:27:27,519 WARN  [OpenEJB] Auto-creating a connector with res-id
Default JDBC Database.  THERE IS LITTLE CHANCE THIS WILL WORK!
3996 [main] WARN OpenEJB  - Jar not loaded.
C:\g\openejb3\openejb-itests\target\classes.  CMP 1.1 Beans with
finder methods cannot be autodeployed; finder methods require OQL
Select statements which cannot be generated accurately.
19:27:27,529 WARN  [OpenEJB] Jar not loaded.
C:\g\openejb3\openejb-itests\target\classes.  CMP 1.1 Beans with
finder methods cannot be autodeployed; finder methods require OQL
Select statements which cannot be generated accurately.
4567 [main] ERROR OpenEJB.connector  - Testing driver failed.
[jdbc:idb:conf/instantdb.properties]  Could not obtain a physical JDBC
connection from the DriverManager.
The error message was:
Could not obtain a physical JDBC connection from the DriverManager
Possible cause:
        o JDBC driver classes are not available to OpenEJB
        o Relative paths are not resolved properly
19:27:28,100 ERROR [connector] Testing driver failed.
[jdbc:idb:conf/instantdb.properties]  Could not obtain a physical JDBC
connection from the DriverManager.
The error message was:
Could not obtain a physical JDBC connection from the DriverManager
Possible cause:
        o JDBC driver classes are not available to OpenEJB
        o Relative paths are not resolved properly
OpenEJB ready.

Thanks
Manu

Reply via email to