File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes How to run OpenEJB Examples? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to run OpenEJB Examples?" Watch "How to run OpenEJB Examples?" New topic

How to run OpenEJB Examples?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 397
I downloaded the stuff at and started the openejb standalone server.

I then tried following the instructions at

I cannot get anything to run. I have maven 2.1 installed. I cannot find any instructions that say I have to define symbols like OPENEJB_HOME.

I'm using cygwin on XP. Adding the openejb directory to the classpath did not seem to help.

I saw a build.xml file and tried ant but that did not work either! I believe I have the latest Java 1.6 SDK.

Can someone kindly tell me how to make these examples run! Thanks!

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
CLASSPATH=..\\..\\..\\standalone-server\\openejb-3.1\\openejb-3.1\\lib/\*.jar mvn clean install

This line looks highly suspect. First off, in the classpath you can't use wildcards - you need to list each and every jar file individually. And secondly, you don't need to set the classpath for running Maven - it does all that by itself.

What happens if you just type "mvn clean install"? I just downloaded the examples, typed that line, and -after downloading a large number of artifacts- it did exactly what the instructions said it'd do (build and install the example, that is).
Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 397
Problem fixed by renaming the local maven repository to save.m2. Thanks!
I agree. Here's the link:
subject: How to run OpenEJB Examples?
jQuery in Action, 3rd edition