OpenEJB 3, build and testing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenEJB 3, build and testing

dblevins
Administrator
So here is the latest building info:

$ cd openejb3
$ mvn clean install
...
[INFO]  
------------------------------------------------------------------------
----
[INFO] Reactor Summary:
[INFO]  
------------------------------------------------------------------------
----
[INFO] OpenEJB :: Project .....................................  
SUCCESS [2.554s]
[INFO] OpenEJB :: iTests ......................................  
SUCCESS [10.508s]
[INFO] OpenEJB :: Container ...................................  
SUCCESS [0.032s]
[INFO] OpenEJB :: Container :: Loader .........................  
SUCCESS [1.429s]
[INFO] OpenEJB :: Container :: Core ...........................  
SUCCESS [24.531s]
[INFO] OpenEJB :: Server ......................................  
SUCCESS [0.023s]
[INFO] OpenEJB :: Server :: Client ............................  
SUCCESS [2.008s]
[INFO] OpenEJB :: Server :: Core ..............................  
SUCCESS [1.614s]
[INFO] OpenEJB :: Server :: EJBd ..............................  
SUCCESS [15.501s]
[INFO] OpenEJB :: Server :: Admin .............................  
SUCCESS [1.355s]
[INFO] OpenEJB :: Server :: Http ..............................  
SUCCESS [11.824s]
[INFO] OpenEJB :: Server :: Telnet ............................  
SUCCESS [1.558s]
[INFO] OpenEJB :: Server :: XFire .............................  
SUCCESS [1.097s]
[INFO] OpenEJB :: Server :: Axis ..............................  
SUCCESS [2.145s]
[INFO] OpenEJB :: Server :: CORBA .............................  
SUCCESS [1.229s]
[INFO] OpenEJB :: Assembly ....................................  
SUCCESS [0.074s]
[INFO] OpenEJB :: Assembly :: Standalone ......................  
SUCCESS [3.167s]
[INFO] OpenEJB :: Assembly :: Tomcat ..........................  
SUCCESS [3.348s]
[INFO] OpenEJB :: Assembly :: iTest Webapp ....................  
SUCCESS [2.280s]
[INFO]  
------------------------------------------------------------------------
----
[INFO]  
------------------------------------------------------------------------
----
[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------
----


All the assembly modules are located under

$ ls -l openejb3/assembly
drwxr-xr-x    9 dblevins  dblevins  306 Mar 23 18:14 openejb-itests-
webapp
drwxr-xr-x   13 dblevins  dblevins  442 Mar 23 18:14 openejb-standalone
drwxr-xr-x   14 dblevins  dblevins  476 Mar 23 18:14 openejb-tomcat
-rw-r--r--    1 dblevins  dblevins  688 Mar 23 11:37 pom.xml

You can build/test any of them as such

$ cd assembly/openejb-standalone/
$ mvn assembly:assembly && maven itest
...
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2

DEPRECATED: the default goal should be specified in the <build>  
section of project.xml instead of maven.xml
build:start:

itest:
setup:openejb:
     [unjar] Expanding: /Users/dblevins/work/openejb3/assembly/
openejb-standalone/target/openejb-3.0-SNAPSHOT-bin.zip into /Users/
dblevins/work/openejb3/assembly/openejb-standalone/target
     [copy] Copying 1 file to /Users/dblevins/work/openejb3/assembly/
openejb-standalone/target/openejb-3.0-SNAPSHOT/beans

test:local:
     [java] _________________________________________________
     [java] |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
     [java]
     [java] Running EJB compliance tests on IntraVM Server
     [java] _________________________________________________
     [java] OpenEJB 3.0-SNAPSHOT    build: 20060323-1813
     [java] http://www.openejb.org
     [java] resources 1
     [java] OpenEJB ready.
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .......................
     [java] Time: 2.949
     [java]
     [java] OK (392 tests)
     [java]
     [java]
     [java] _________________________________________________
     [java] CLIENT JNDI PROPERTIES
     [java] java.naming.factory.initial =  
org.openejb.client.LocalInitialContextFactory
     [java] _________________________________________________

setup:openejb:

test:remote:
     [java] _________________________________________________
     [java] |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
     [java]
     [java] Running EJB compliance tests on Remote Server
     [java] _________________________________________________
     [java] [] START SERVER
     [java] OPENEJB_HOME = /Users/dblevins/work/openejb3/assembly/
openejb-standalone/target/openejb-3.0-SNAPSHOT
     [java] SYSTEM_INFO  = Java 1.5.0_05; Mac OS X/10.4.5
     [java] OpenEJB 3.0-SNAPSHOT    build: 20060323-1813
     [java] http://www.openejb.org
     [java] resources 1
     [java] OpenEJB ready.
     [java] [init] OpenEJB Remote Server
     [java]   ** Starting Services **
     [java]   NAME                 IP              PORT
     [java]   httpejbd             0.0.0.0         4204
     [java]   telnet               0.0.0.0         4202
     [java]   ejbd                 0.0.0.0         4201
     [java]   admin thread         0.0.0.0         4200
     [java] -------
     [java] Ready!
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .......................
     [java] Time: 7.451
     [java]
     [java] OK (392 tests)
     [java]
     [java] [] STOP SERVER
     [java] [] received stop signal
     [java] [] exiting vm
     [java]
     [java] _________________________________________________
     [java] CLIENT JNDI PROPERTIES
     [java] java.naming.provider.url = 127.0.0.1:4201
     [java] java.naming.factory.initial =  
org.openejb.client.RemoteInitialContextFactory
     [java] java.naming.security.principal = testuser
     [java] java.naming.security.credentials = testpassword
     [java] _________________________________________________

setup:openejb:

test:http:
     [java] _________________________________________________
     [java] |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
     [java]
     [java] Running EJB compliance tests on HTTP/Remote Server
     [java] _________________________________________________
     [java] [] START SERVER
     [java] OPENEJB_HOME = /Users/dblevins/work/openejb3/assembly/
openejb-standalone/target/openejb-3.0-SNAPSHOT
     [java] SYSTEM_INFO  = Java 1.5.0_05; Mac OS X/10.4.5
     [java] OpenEJB 3.0-SNAPSHOT    build: 20060323-1813
     [java] http://www.openejb.org
     [java] resources 1
     [java] OpenEJB ready.
     [java] [init] OpenEJB Remote Server
     [java]   ** Starting Services **
     [java]   NAME                 IP              PORT
     [java]   httpejbd             0.0.0.0         4204
     [java]   telnet               0.0.0.0         4202
     [java]   ejbd                 0.0.0.0         4201
     [java]   admin thread         0.0.0.0         4200
     [java] -------
     [java] Ready!
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .......................
     [java] Time: 9.668
     [java]
     [java] OK (392 tests)
     [java]
     [java] [] STOP SERVER
     [java] [] received stop signal
     [java] [] exiting vm
     [java]
     [java] _________________________________________________
     [java] CLIENT JNDI PROPERTIES
     [java] java.naming.provider.url = http://127.0.0.1:4204
     [java] java.naming.factory.initial =  
org.openejb.client.RemoteInitialContextFactory
     [java] java.naming.security.principal = testuser
     [java] java.naming.security.credentials = testpassword
     [java] _________________________________________________

BUILD SUCCESSFUL
Total time   : 46 seconds
Finished at  : Thursday, March 23, 2006 6:20:15 PM PST



Reply | Threaded
Open this post in threaded view
|

Re: OpenEJB 3, build and testing

Jacek Laskowski
On 3/24/06, David Blevins <[hidden email]> wrote:
> So here is the latest building info:
>
> $ cd openejb3
> $ mvn clean install

Hey Dave,

I must be missing something since it doesn't work for me. I remember
having seen this error before but thought it's due to in-progress
refactoring or so. I'd checked out the sources and can't build it.
Here is the error:

org.apache.maven.reactor.MavenExecutionException: Could not find the
model file 'c:\oss\openejb3\assembly\pom.xml'.
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

The file - assembly/pom.xml - isn't really there and I can't figure
out if it's me or some files hasn't appeared in the repo.

$ mvn -v
Maven version: 2.0.2

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl
Reply | Threaded
Open this post in threaded view
|

Re: OpenEJB 3, build and testing

Jacek Laskowski
On 3/31/06, Jacek Laskowski <[hidden email]> wrote:
> On 3/24/06, David Blevins <[hidden email]> wrote:
> > So here is the latest building info:
> >
> > $ cd openejb3
> > $ mvn clean install
>
> Hey Dave,
>
> I must be missing something since it doesn't work for me.

Hey Dave,

I hope you don't mind that I've added some files to get it working.
They're committed as revision 2590. The change is to add pom.xml to
assembly module.

It doesn't mean it works for me since itests fails because
commons/logging/LogFactory is missing. I don't yet know how to fix it,
but am looking into it.

[surefire] Running org.openejb.iTest
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:\oss\openejb3\container\openejb-core\target\test-classes\conf\logs\transaction.log
10 [main] WARN OpenEJB  - [1]
c:\oss\openejb3\container\openejb-core\target\test-classes\conf\logs\openejb.log
10 [main] WARN OpenEJB  - [2]
c:\oss\openejb3\container\openejb-core\target\test-classes\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.
OpenEJB 3.0-SNAPSHOT    build: 20060401-1858
http://www.openejb.org
110 [main] WARN OpenEJB  - Cannot find the configuration file
[conf/openejb.xml].  Creating one at
C:\oss\openejb3\container\openejb-core\target\test-classes\conf\openejb.x
ml
171 [main] FATAL OpenEJB.startup  - OpenEJB has encountered a fatal
error and cannot be started: The Assembler encountered an unexpected
error while attempting to initializ
e.
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at org.exolab.castor.util.Configuration.<clinit>(Configuration.java:100)
        at org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:270)
        at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:223)
        at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:210)
        at org.openejb.alt.config.Unmarshaller.unmarshalObject(Unmarshaller.java:154)
        at org.openejb.alt.config.Unmarshaller.unmarshalFromDirectory(Unmarshaller.java:114)
        at org.openejb.alt.config.Unmarshaller.unmarshal(Unmarshaller.java:69)
        at org.openejb.alt.config.Unmarshaller.unmarshal(Unmarshaller.java:63)
        at org.openejb.alt.config.ConfigUtils.readConfig(ConfigUtils.java:35)
        at org.openejb.alt.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:118)
        at org.openejb.assembler.classic.Assembler.init(Assembler.java:68)
        at org.openejb.OpenEJB$Instance.<init>(OpenEJB.java:111)
        at org.openejb.OpenEJB.init(OpenEJB.java:247)

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl
Reply | Threaded
Open this post in threaded view
|

Re: OpenEJB 3, build and testing

dblevins
Administrator

On Apr 1, 2006, at 8:59 AM, Jacek Laskowski wrote:

> On 3/31/06, Jacek Laskowski <[hidden email]> wrote:
>> On 3/24/06, David Blevins <[hidden email]> wrote:
>>> So here is the latest building info:
>>>
>>> $ cd openejb3
>>> $ mvn clean install
>>
>> Hey Dave,
>>
>> I must be missing something since it doesn't work for me.
>
> Hey Dave,
>
> I hope you don't mind that I've added some files to get it working.
> They're committed as revision 2590. The change is to add pom.xml to
> assembly module.
>

Thanks for catching that!

> It doesn't mean it works for me since itests fails because
> commons/logging/LogFactory is missing. I don't yet know how to fix it,
> but am looking into it.

This is strange as I just did a fresh checkout into /tmp and built  
from there with no problems.


-David

> [surefire] Running org.openejb.iTest
> 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:\oss\openejb3\container\openejb-core\target\test-classes\conf\logs
> \transaction.log
> 10 [main] WARN OpenEJB  - [1]
> c:\oss\openejb3\container\openejb-core\target\test-classes\conf\logs
> \openejb.log
> 10 [main] WARN OpenEJB  - [2]
> c:\oss\openejb3\container\openejb-core\target\test-classes\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.
> OpenEJB 3.0-SNAPSHOT    build: 20060401-1858
> http://www.openejb.org
> 110 [main] WARN OpenEJB  - Cannot find the configuration file
> [conf/openejb.xml].  Creating one at
> C:\oss\openejb3\container\openejb-core\target\test-classes\conf
> \openejb.x
> ml
> 171 [main] FATAL OpenEJB.startup  - OpenEJB has encountered a fatal
> error and cannot be started: The Assembler encountered an unexpected
> error while attempting to initializ
> e.
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>         at org.exolab.castor.util.Configuration.<clinit>
> (Configuration.java:100)
>         at org.exolab.castor.xml.Unmarshaller.initConfig
> (Unmarshaller.java:270)
>         at org.exolab.castor.xml.Unmarshaller.<init>
> (Unmarshaller.java:223)
>         at org.exolab.castor.xml.Unmarshaller.<init>
> (Unmarshaller.java:210)
>         at org.openejb.alt.config.Unmarshaller.unmarshalObject
> (Unmarshaller.java:154)
>         at  
> org.openejb.alt.config.Unmarshaller.unmarshalFromDirectory
> (Unmarshaller.java:114)
>         at org.openejb.alt.config.Unmarshaller.unmarshal
> (Unmarshaller.java:69)
>         at org.openejb.alt.config.Unmarshaller.unmarshal
> (Unmarshaller.java:63)
>         at org.openejb.alt.config.ConfigUtils.readConfig
> (ConfigUtils.java:35)
>         at  
> org.openejb.alt.config.ConfigurationFactory.getOpenEjbConfiguration
> (ConfigurationFactory.java:118)
>         at org.openejb.assembler.classic.Assembler.init
> (Assembler.java:68)
>         at org.openejb.OpenEJB$Instance.<init>(OpenEJB.java:111)
>         at org.openejb.OpenEJB.init(OpenEJB.java:247)
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.laskowski.org.pl
>