Nothing important in this email, feel free to ignore it.
More or less just posting the current raw contents of my brain before
i retire for the night.
* * * * * * *
Been trying to get automated tests to run on an openejb-3.0-
SNAPSHOT.zip, but don't want to do it with the itests pre-deployed as
we typically did in the 1.x world. I also want to have the itests
client run with a tightly controlled classpath and *no* extra jars in
it.
So far I've modified our assembly to create another jar that contains
just the itests the openejb client and junit. This will serve as
both the ejb app and the client app.
Maven Issues:
- Would love to find a way to create an executable jar assembly,
but it doesn't seem possible.
- Having any assembly run with the build as in 'mvn install' it
causes everything to build twice
- Can't use m2 to execute the tests until the assembly-plugin issue
is fixed and available, going to use m1
OpenEJB Issues:
- The auto unpack of our logging config file doesn't work.
- Need to port over the client code that tries harder to make valid
provider URLs
If you had the code on my machine, these are the commands you'd need
to get as far as I get.
mingus:~/work/openejb3/openejb-assembly
$ (cd .. && mvn clean install) && ./assemble.sh
mingus:~/work/openejb3/openejb-assembly
$ (cd target/; tar xzvf openejb-3.0-SNAPSHOT-bin.tar.gz ; cp
openejb-3.0-SNAPSHOT-test.jar openejb-3.0-SNAPSHOT/beans/; )
mingus:~/work/openejb3/openejb-assembly 01:52:37
$ java -Dopenejb.home=target/openejb-3.0-SNAPSHOT -classpath target/
openejb-3.0-SNAPSHOT-test.jar org.openejb.test.Main remote
_________________________________________________
|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
Running EJB compliance tests on Remote Server
_________________________________________________
[] START SERVER
OPENEJB_HOME = /Users/dblevins/work/openejb3/openejb-assembly/target/
openejb-3.0-SNAPSHOT
SYSTEM_INFO = Java 1.5.0_05; Mac OS X/10.4.5
Failed to configure log4j. /Users/dblevins/work/openejb3/openejb-
assembly/conf/logging.conf (No such file or directory)
OpenEJB 3.0-SNAPSHOT build: 20060308-0148
http://www.openejb.org
log4j:WARN No appenders could be found for logger (OpenEJB.startup).
log4j:WARN Please initialize the log4j system properly.
resources 1
OpenEJB ready.
[init] OpenEJB Remote Server
** Starting Services **
NAME IP PORT
ejbd 0.0.0.0 4201
admin thread 0.0.0.0 4200
-------
Ready!
Cannot initialize the test environment:
java.lang.IllegalStateException Cannot create initial context:
javax.naming.ConfigurationException Invalid provider URL:
127.0.0.1:4201: host unkown: Illegal character in scheme name at
index 0: 127.0.0.1:4201
java.lang.IllegalStateException: Cannot create initial context:
javax.naming.ConfigurationException Invalid provider URL:
127.0.0.1:4201: host unkown: Illegal character in scheme name at
index 0: 127.0.0.1:4201
at org.openejb.test.InstantDbTestDatabase.start
(InstantDbTestDatabase.java:96)
at org.openejb.test.TestManager.start(TestManager.java:55)
at org.openejb.test.TestRunner.start(TestRunner.java:175)
at org.openejb.test.TestRunner.main(TestRunner.java:68)
at org.openejb.test.Main.main(Main.java:15)
Caused by: javax.naming.ConfigurationException: Invalid provider URL:
127.0.0.1:4201: host unkown: Illegal character in scheme name at
index 0: 127.0.0.1:4201
at org.openejb.client.JNDIContext.getInitialContext
(JNDIContext.java:95)
at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at org.openejb.test.InstantDbTestDatabase.start
(InstantDbTestDatabase.java:94)
... 4 more
Cannot create initial context: javax.naming.ConfigurationException
Invalid provider URL:127.0.0.1:4201: host unkown: Illegal character
in scheme name at index 0: 127.0.0.1:4201