On Apr 13, 2007, at 12:55 PM, Jacek Laskowski wrote:
On 4/3/07, David Blevins <[EMAIL PROTECTED]> wrote:
Here's where you ask: http://www.nabble.com/Any-objection-against-
removing-M1-files--tf2402078s2756.html
The response was basically to read this post which has instructions
on how to use those files...
http://marc.info/?l=openejb-development&m=114198611531430&w=2
.. and as before if you can find a way to do the same in maven2, +1
to deleting them.
It took me longer than I'd anticipated, but read the books, how-tos
and such and am still unable to figure out whether or not it works at
all. I don't think so.
I know what maven.xml does for us and how to migrate it to pom.xml,
but am not sure anyone's using it.
Keeping in mind that there're some changes to the directory structure
I attempted to follow what it's described in the email referenced
above.
$ cd /oss/openejb3
$ mvn clean install
$ cd assembly
$ mvn assembly:assembly
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] OpenEJB :: Assembly
[INFO] OpenEJB :: Assembly :: Tomcat
[INFO] OpenEJB :: Assembly :: iTest Webapp
[INFO] OpenEJB :: Assembly :: Standalone
...
[INFO] [jar:jar]
[INFO] Building jar:
c:\oss\openejb3\assembly\openejb-standalone\target\openejb-
standalone-3.0-incubating-SNAPSHOT.jar
[INFO] [assembly:attached {execution: default}]
[INFO] Building tar :
c:\oss\openejb3\assembly\openejb-standalone\target\openejb-3.0-
incubating-SNAPSHOT-bin.tar.gz
[INFO] Building zip:
c:\oss\openejb3\assembly\openejb-standalone\target\openejb-3.0-
incubating-SNAPSHOT-bin.zip
[INFO] Building jar:
c:\oss\openejb3\assembly\openejb-standalone\target\openejb-3.0-
incubating-SNAPSHOT-test.jar
[INFO] [assembly:assembly]
[INFO]
----------------------------------------------------------------------
--
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------
--
[INFO] No assembly descriptors found.
[INFO]
----------------------------------------------------------------------
--
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------
--
[INFO] Total time: 40 seconds
[INFO] Finished at: Fri Apr 13 21:52:22 CEST 2007
[INFO] Final Memory: 31M/254M
[INFO]
----------------------------------------------------------------------
--
(even though there's BUILD FAILURE some files did build)
$ cd openejb-standalone/
$ maven test:local
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
build:start:
setup:openejb:
[unjar] Expanding:
C:\oss\openejb3\assembly\openejb-standalone\target\openejb-3.0-
incubating-SNAPSHOT-bin.zip
into C:\oss\openejb3\assembly\openejb-standalone\target
[copy] Copying 1 file to
C:\oss\openejb3\assembly\openejb-standalone\target\openejb-3.0-
incubating-SNAPSHOT\beans
test:local:
[java] java.lang.NoClassDefFoundError: org/apache/openejb/test/Main
[java] Exception in thread "main"
[java] [ERROR] Java Result: 1
BUILD SUCCESSFUL
Total time: 6 seconds
Finished at: Fri Apr 13 21:47:45 CEST 2007
(trying again...)
$ maven test:local
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
build:start:
setup:openejb:
test:local:
[java] _________________________________________________
[java] |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
[java]
[java] Running EJB compliance tests on IntraVM Server
[java] _________________________________________________
[java] Apache OpenEJB 3.0-incubating-SNAPSHOT build:
20070413-11:29
[java] http://incubator.apache.org/openejb
[java] OpenEJB ready.
[java] java.lang.IllegalStateException: Cannot find
'client/tools/DatabaseHome': javax.naming.NameNotFoundException Name
"client/tools/DatabaseHome" not found.
[java] at
org.apache.openejb.test.InstantDbTestDatabase.start
(InstantDbTestDatabase.java:137)
[java] Cannot initialize the test environment:
java.lang.IllegalStateException Cannot find
'client/tools/DatabaseHome': javax.naming.NameNotFoundException Name
"client/tools/Da
tabaseHome" not found.
[java] at
org.apache.openejb.test.TestManager.start(TestManager.java:79)
[java] at org.apache.openejb.test.TestRunner.start
(TestRunner.java:194)
[java] at org.apache.openejb.test.TestRunner.main
(TestRunner.java:84)
[java] at org.apache.openejb.test.Main.main(Main.java:31)
[java] Cannot find 'client/tools/DatabaseHome':
javax.naming.NameNotFoundException Name "client/tools/DatabaseHome"
not found.
[java] [ERROR] Java Result: 2
BUILD SUCCESSFUL
Total time: 12 seconds
Finished at: Fri Apr 13 21:53:43 CEST 2007
We don't need the file, do we?
Am I the one who don't know what the file is for and how to use it
appropriately? I'm completely stuck and desparately looking forward to
reading anyone's response for the issue. Please...
As stated they are essentially ant/jelly scripts for running the
itests in openejb-standalone, openejb-tomcat, or openejb-tomcat
webapp-style. We could maybe convert them to groovy or perhaps just
plain ant and then run them from maven using the groovy plugin or the
ant plugin.
As far as deleting them, I don't know what benefit there would be in
that. They used to run -- it was how we did all the testing for the
nice matrix at the top of our OpenEJB 1.0 download page: http://
incubator.apache.org/openejb/openejb-10.html. And they were updated
to work with OpenEJB 3, though they haven't been run for months as we
don't have an automated way to run them so they aren't really "in
people's faces" and therefore don't get updated/maintained.
But I did usee the openejb-tomcat one yesterday to see if OpenEJB 3
still ran in Tomcat 5.5 and to check if it ran in Tomcat 6. It had
to be updated to work as we've added some requirements to our itests
client code like we now need the xbean-finder and the asm to do the
injection stuff, and we need activemq (plus its dependencies) and the
jms api to run the MDB tests.
Thoughts?
-David