This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How to run OpenEJB Examples?  RSS feed

 
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded the stuff at http://openejb.apache.org/download.html and started the openejb standalone server.

I then tried following the instructions at http://openejb.apache.org/3.0/simple-stateless-example.html

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!
Siegfried

 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem fixed by renaming the local maven repository to save.m2. Thanks!
Siegfried
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!