Hi,

You started the Server tool, not the Console tool. See my original mail.

Regards,
Thomas



On Sat, Mar 23, 2013 at 11:03 AM, Cecil Westerhof <[email protected]>wrote:

> 2013/3/23 Thomas Mueller <[email protected]>:
> > Hm, it should work with 1.3.169 as well. Could you post the full stack
> > trace?
>
> It does not work on 1.3.171 also. :-(
>
> When executing:
>     java -cp h2-1.3.171.jar org.h2.tools.Server -?
> I get:
>     Starts the H2 Console (web-) server, TCP, and PG server.
>     Usage: java org.h2.tools.Server <options>
>     When running without options, -tcp, -web, -browser and -pg are started.
>     Options are case sensitive. Supported options are:
>     [-help] or [-?]         Print the list of options
>     [-web]                  Start the web server with the H2 Console
>     [-webAllowOthers]       Allow other computers to connect - see below
>     [-webDaemon]            Use a daemon thread
>     [-webPort <port>]       The port (default: 8082)
>     [-webSSL]               Use encrypted (HTTPS) connections
>     [-browser]              Start a browser connecting to the web server
>     [-tcp]                  Start the TCP server
>     [-tcpAllowOthers]       Allow other computers to connect - see below
>     [-tcpDaemon]            Use a daemon thread
>     [-tcpPort <port>]       The port (default: 9092)
>     [-tcpSSL]               Use encrypted (SSL) connections
>     [-tcpPassword <pwd>]    The password for shutting down a TCP server
>     [-tcpShutdown "<url>"]  Stop the TCP server; example: tcp://localhost
>     [-tcpShutdownForce]     Do not wait until all connections are closed
>     [-pg]                   Start the PG server
>     [-pgAllowOthers]        Allow other computers to connect - see below
>     [-pgDaemon]             Use a daemon thread
>     [-pgPort <port>]        The port (default: 5435)
>     [-properties "<dir>"]   Server properties (default: ~, disable: null)
>     [-baseDir <dir>]        The base directory for H2 databases (all
> servers)
>     [-ifExists]             Only existing databases may be opened (all
> servers)
>     [-trace]                Print additional trace information (all
> servers)
>     The options -xAllowOthers are potentially risky.
>     For details, see Advanced Topics / Protection against Remote Access.
>     See also http://h2database.com/javadoc/org/h2/tools/Server.html
>
> No -tool mentioned.
>
> The following seems to work;
>     java -cp h2-1.3.171.jar org.h2.tools.Server -tcp -web
>
> But when I execute:
>     java -cp h2-1.3.171.jar org.h2.tools.Server -tcp -tool -web
> I get:
>     Starts the H2 Console (web-) server, TCP, and PG server.
>     Usage: java org.h2.tools.Server <options>
>     When running without options, -tcp, -web, -browser and -pg are started.
>     Options are case sensitive. Supported options are:
>     [-help] or [-?]         Print the list of options
>     [-web]                  Start the web server with the H2 Console
>     [-webAllowOthers]       Allow other computers to connect - see below
>     [-webDaemon]            Use a daemon thread
>     [-webPort <port>]       The port (default: 8082)
>     [-webSSL]               Use encrypted (HTTPS) connections
>     [-browser]              Start a browser connecting to the web server
>     [-tcp]                  Start the TCP server
>     [-tcpAllowOthers]       Allow other computers to connect - see below
>     [-tcpDaemon]            Use a daemon thread
>     [-tcpPort <port>]       The port (default: 9092)
>     [-tcpSSL]               Use encrypted (SSL) connections
>     [-tcpPassword <pwd>]    The password for shutting down a TCP server
>     [-tcpShutdown "<url>"]  Stop the TCP server; example: tcp://localhost
>     [-tcpShutdownForce]     Do not wait until all connections are closed
>     [-pg]                   Start the PG server
>     [-pgAllowOthers]        Allow other computers to connect - see below
>     [-pgDaemon]             Use a daemon thread
>     [-pgPort <port>]        The port (default: 5435)
>     [-properties "<dir>"]   Server properties (default: ~, disable: null)
>     [-baseDir <dir>]        The base directory for H2 databases (all
> servers)
>     [-ifExists]             Only existing databases may be opened (all
> servers)
>     [-trace]                Print additional trace information (all
> servers)
>     The options -xAllowOthers are potentially risky.
>     For details, see Advanced Topics / Protection against Remote Access.
>     See also http://h2database.com/javadoc/org/h2/tools/Server.html
>     Exception in thread "main" org.h2.jdbc.JdbcSQLException: Feature
> not supported: "-tool" [50100-171]
>             at
> org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
>             at org.h2.message.DbException.get(DbException.java:169)
>             at org.h2.message.DbException.get(DbException.java:146)
>             at org.h2.util.Tool.throwUnsupportedOption(Tool.java:66)
>             at
> org.h2.util.Tool.showUsageAndThrowUnsupportedOption(Tool.java:56)
>             at org.h2.tools.Server.runTool(Server.java:288)
>             at org.h2.tools.Server.main(Server.java:117)
>
> This is on openSUSE 12.1 with kernel 3.1.10-1.19-desktop and java
> version "1.6.0_27", OpenJDK Runtime Environment (IcedTea6 1.12.4)
> (suse-32.1-i386) and OpenJDK Client VM (build 20.0-b12, mixed mode).
>
> By the way: do I need to take precautions with the upgrade, or should
> it just work?
>
> --
> Cecil Westerhof
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/h2-database?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to