|
Hello
I found a workaround for my problem. Below is the workaround. But I still like to report this as a bug since obvsiosly openejb.home nor openejb.base does not function properly when openejb is embedded in another application. The workaroud: In transaction configuration files (global_tx_database.xml, local_tx_database.xml) use absolute file path. This solves the problem except for logging.conf Hi Nader,
If you want to attach a small sample eclipse project that we could try, we'd be happy to workout these issue and get this running smoothly for you. Even better if you'd be ok donating small sample, we could check it in under our examples directory so others could see how it's done. Thanks! David I have created a small demo eclipse project which was used under JavaZone, September, Norway.
This demo compares POJO and EJB development. It uses Apache Derby database as backend and XStream for automizing input data. See index.html under docs directory for information about how to configure and use the demo in the attached file javazone.zip What is the value of these two .classpath entries?
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/hsqldb"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/DerbyClient"/> Never mind... I wasn't reading directions, "See index.html under docs directory...."
Hi Nader,
Ok, I found what was going on with the system properties and fixed it. I've put together a new set of binaries for you to try. http://openejb.org/unstable/v1.0-20050920/openejb-1.0-20050920.zip http://openejb.org/Latest+Unstable Also, the property handling in 1.0-x is way better than in 0.9.2. You *should* be able to get by with just the following System properties: -Djava.naming.factory.initial=org.openejb.client.LocalInitialContextFactory -Dopenejb.home=/home/et4045/java/openejb/openejb-1.0-20050920 We have also noticed that Castor sometimes has an issue finding the mapping.xml file listed in the local and global database.xml files. If you run into this, just delete any directory prefixes from the mapping file path and Castor will assume that the mapping file is right next to the database.xml file and locate it safely. In other words, this: - <mapping href="conf/default.cmp_mapping.xml" /> + <mapping href="default.cmp_mapping.xml" /> Let us know if you have more issues. We'll keep this Jira Item open till you are fully running again. Hi David
Thanks for fixing the problem. This demo applies to openejb-1.0-20050920 and higher. Updated with the most recent configuration file. The documentation is updated. Only the following arguments are needed: -Djava.naming.factory.initial=org.openejb.client.LocalInitialContextFactory -Dopenejb.home=/home/et4045/java/openejb/openejb-1.0-20050920 And there is no need to provide absolute path in the configuration files anymore. The problem has been fixed as of openejb-1.0-20050920 build.
Jeff Turner made changes - 25/Sep/06 12:13 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sorry, for mispelled path:
In OpenEJB 1.0Beta, of course, I use the following path:
-Djava.naming.factory.initial=org.openejb.client.LocalInitialContextFactory
-Djava.naming.provider.url=ormi://localhost:4201
-Dopenejb.home=/home/et4045/java/openejb/openejb-1.0-beta1
-Dopenejb.configuration=/home/et4045/java/openejb/openejb-1.0-beta1/conf/openejb.conf
-Dopenejb.loader=embed
-Dopenejb.localcopy=true