exception - on Fedora 15, start Lift app on Fedora getting org.h2.jdbc.JdbcSQLException -
on fedora 15, after doing mvn jetty:run, getting following excetion when it's trying initialize metamapper user
org.h2.jdbc.jdbcsqlexception: exception opening port "h2 tcp server (tcp:// 192.168.1.105:33463)" (port may in use), cause: "timeout" [90061-138] (full stack trace pasted last in mail)
the following how generated project
mvn archetype:generate \ -darchetypegroupid=net.liftweb \ -darchetypeartifactid=lift-archetype-basic_2.8.1 \ -darchetypeversion=2.3 \ -darchetyperepository=http://scala-tools.org/repo-releases \ -dremoterepositories=http://scala-tools.org/repo-releases \ -dgroupid=com.mytest \ -dartifactid=helloworld \ -dversion=2.0
i tried replacing openjdk sun jdk, still doesn't work. wrong h2? need reinstall h2? or lift issue?
if kill run , restart one, same exception, different tcp port, example
org.h2.jdbc.jdbcsqlexception: exception opening port "h2 tcp server (tcp://208.68.143.50:55325)" (port may in use), cause: "timeout" [90061-138]
maybe application still runs or ports haven't closed. verify using 'netstat'.
you may want read on so_reuseaddr.
i have server running on computer (its common lisp , not h2 doesn't matter):
xxx@fp:~$ netstat -tulpen (not processes identified, non-owned process info not shown, have root see all.) active internet connections (only servers) proto recv-q send-q local address foreign address state user inode pid/program name tcp 0 0 127.0.0.1:4005 0.0.0.0:* listen 1000 68449 7559/sbcl
i expect either process listening on 208.68.143.50:55325. if ip isn't computer, weird going on. can start application with
sudo strace -f mvn ... 2>&1 test.out
and afterwards investigate test.out file. 'strace' tool allows log system calls issued program. search listen in file test.out.
Comments
Post a Comment