I have identified what is causing the exception. It is in the help processing. I was not passing a command to tomee.sh, so it was trying to invoke the help text, and failing.
I notice also in the openejb.apache.org/startup.html that it refers to an openejb.sh command. There would not appear to be such a comand, but there is a tomee.sh command, which I guess is the same thing (it seems to do the same thing). David On Saturday 04 April 2015 10:51:13 David Goodenough wrote: > On Saturday 04 April 2015 00:52:13 Romain Manni-Bucau wrote: > > Hi > > > > this is fixed https://issues.apache.org/jira/browse/TOMEE-1540 > > and if I specify JAVA_HOME I get the same exception. > > David > > > thanks for the report > > > > > > Romain Manni-Bucau > > @rmannibucau <https://twitter.com/rmannibucau> | Blog > > <http://rmannibucau.wordpress.com> | Github > > <https://github.com/rmannibucau>> > > | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > > > > <http://www.tomitribe.com> > > > > 2015-04-03 18:51 GMT+02:00 David Goodenough < > > > > [email protected]>: > > > I am trying to run tomee on a debian sid system (amd64) using openjdk-8. > > > I am running a snapshot from 20150319. > > > > > > Running tomee.sh without setting JAVA_HOME I get an error complaining > > > that /bin/java does not exist. > > > > > > So I set JAVA_HOME either to /usr or to > > > /usr/lib/jvm/java-8-openjdk-amd64/ > > > I get:- > > > > > > Exception in thread "main" java.lang.IllegalArgumentException: opt > > > contains > > > illegal character value '-' > > > > > > at > > > > > > org.apache.commons.cli.OptionValidator.validateOption(OptionValidator.ja > > > va > > > > > > :73)> > > > : > > > at org.apache.commons.cli.Option.<init>(Option.java:123) > > > at org.apache.commons.cli.Options.addOption(Options.java:131) > > > at org.apache.commons.cli.Options.addOption(Options.java:114) > > > at org.apache.openejb.cli.MainImpl.help(MainImpl.java:230) > > > at org.apache.openejb.cli.MainImpl.help(MainImpl.java:212) > > > at org.apache.openejb.cli.MainImpl.main(MainImpl.java:102) > > > at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:106) > > > > > > Any idea how to fix this? > > > > > > David
