Just tried to start headless server by using information in
http://www.mec-community.com/node/176
I changed started start-up script to launch class
de.mendelson.comm.as2.server.AS2Server
but I get the following error
[user@localhost mec-as2]$./mec_as2_start.sh
Exception in thread "main" java.lang.NoSuchMethodError: main
[user@localhost mec-as2]$
just had a quick look at the src (via jad) and it looks like everything is in the constructor with no Main method in the class :-(
Amir,
I had a look into the source history, the class AS2Server never had a main method, there has nothing been removed.
If you want to start the server/client each by itself please add a wrapper class/script or something, these are the classes to start
I ment in the refered thread that it is required to write wrapper classes if you are in need of this functionality.
Regards
Heller
AHA... sorry I thought the functionality was already there from b21. Sorry i misunderstood the post. The benefit of having a main method there from you is that it works "out of the box". I could write one but some other people might not feel comfortable setting up Java environment.
Actually, rather than a wrapper class, perhaps a better way would be a start-up flag called "nogui" that works like the "nohttp" flag?. that way the "startgui()" isn't called if nogui flag is present?, much simpler/cleaner way to deal with the problem?.