1

I am creating windows service using below command for H2 database :-

sc create mySer_H2DB binpath= "C:\Program Files\H2\bin\h2w.bat" ( tried h2.bat also)

but when i start the service from services.msc , error 1053 pops up showing message

" Windows could not start the service on local computer, Error-1053 The service did not respond to the start or control request in timely fashion"

Please let me know how to fix this issue. Infact when i run bat file from out side it works well.

Thanks.

ammu
  • 864
  • 2
  • 13
  • 27
  • 2
    [Run as windows service](http://www.h2database.com/html/advanced.html#windows_service) in h2 database documentation. – MC ND Sep 15 '14 at 10:30
  • I tried and it worked in windows 7 machine but when i did the same for windows server machine, even the service is started , the DB is not started, localhost:8082 doesn't worked.. – ammu Sep 18 '14 at 00:33
  • If `netstat -noa` shows the port associated to the process and listening it should be the firewall or some kind of access rule. If the port is not present, then it is a problem with service start. – MC ND Sep 18 '14 at 05:49
  • netstat -noa shows the associated port, by doing below entries in wrapper.conf file i am able to login via browser console.
    # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=org.h2.tools.Server wrapper.app.parameter.2=-tcp wrapper.app.parameter.3=-tcpAllowOthers wrapper.app.parameter.4=-web wrapper.app.parameter.5=-webAllowOthers wrapper.app.parameter.6=-browser
    – ammu Sep 28 '14 at 02:28
  • But now there is one another issue, i cant see my TABLES which i have created when i have started DB as command line, My H2 db version is 1.4.179 – ammu Sep 28 '14 at 02:30

0 Answers0