Can't start standalone Server (no gui) in b25

You are here

Can't start standalone Server (no gui) in b25

3 posts / 0 new
Last post
amir
amir's picture
Can't start standalone Server (no gui) in b25

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 :-(

heller
heller's picture

Amir,

I had a look into the source history, the class AS2Server never had a main method, there has nothing been removed.

Quote:

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

amir
amir's picture

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?.