Hello Jacek,
thanx for your reply..
Hi Marco,
Can you tell me where the article can be found? I assume it's the
one by
Alex, but it might not be.
if it is the same Alex (Rupp), i guess we are talking about same
article
here is the link
http://www.theserverside.com/articles/article.tss?
l=ContainerDrivenTestingSeries&page=part2
You may be interested in http://docs.openejb.org/Creating+itests.
i'll have a look, thank you..
i am however unable to run tests with the 2.0 version, and i was
wondering if
someone could help.
Am I right that you're (trying to be) running EJB test scripts with
OpenEJB 2.0?
yes..but i guess i messed upt a little my environment, i tried first
with 2.0, then got errors and went back to 1.0 but didn't change
deployment descriptor (i am generating them with XDoclet)... so i'll
give it another try today..then i'll try to post more useful info..
TEsts are articulated so that there is no server running,but the
openEJB is embedded inside the JUnit test (i attach sample test
case).
Things are getting complicated here. I don't think OpenEJB 2.0-
SNAPSHOT
can do that.
really? mayb i expressed myself wrongly... the link to hte article
will give more info i suppose..
I am unable to run tests, and checking logs i found out following:
INFO :
*******************************************************************
*************
OpenEJB http://www.openejb.org
Startup: 13/07/05 18:24
Copyright 1999-2004 (C) OpenEJB Project, All Rights Reserved.
Version: 1.0-SNAPSHOT
Build date: 20040829
Build time: 0049
It can't be. You've just said you're running OpenEJB 2, but the
log is
from OpenEJB 1. You've said EJB tests run well with OpenEJB 1.
By the way, how did you get this version?
i don't know...i just downloaded the article and run it... then i
created my own project and copied maven files... (bad idea i suppose
:(
DEBUG: Instantiating assembler class
org.openejb.assembler.Assembler
FATAL: OpenEJB has encountered a fatal error and cannot be
started:
Assembler failed to initialize.
org.openejb.OpenEJBException: Cannot read the service-jar.xml at
resource2:/org/openejb/service-jar.xml. Received message: unknown
protocol: resource2
at org.openejb.config.ServiceUtils.handleException
(ServiceUtils.java:311)
at org.openejb.config.ServiceUtils.readServicesJar
(ServiceUtils.java:137)
at org.openejb.config.ServiceUtils.getServiceProvider
(ServiceUtils.java:100)
at org.openejb.config.ServiceUtils.getServiceProvider
(ServiceUtils.java:76)
at
org.openejb.config.ConfigurationFactory.initTransactionService
(ConfigurationFactory.java:308)
That confuses me even more. The class -
o.o.config.ConfigurationFactory
doesn't exist in OpenEJB 1 whereas it does in OpenEJB 2. It did in
OpenEJB 1, but in a slighly different package - o.o.config.alt. I
don't
follow - the version above says 1.0-SNAPSHOT while the stack
trace seems
to be from OpenEJB 2.
The javadoc of o.o.config.ServiceUtils.readServicesJar reads:
Opens the specified jar file, locates the service-jar.xml file,
unmarshals it to a java object and returns it. If there is no
service-jar.xml in the jar an exception will be thrown.
Somehow the resource2 URL provider wasn't set up properly.
attached is my sample test case, along with openejb.properties
(if that matter)
It does, but I can't find openejb.properties in your email.
i actually have no openejb.properties.... are you referring to
openejb.conf? well i
haven't configured that properties in openejb.conf
as i said, i give it another try this morning and let you know
results.....
thanx and regards
marco
Jacek
<project.xml>
<maven.xml>