Urgent : Windows Service

269 views
Skip to first unread message

adamta...@gmail.com

unread,
Mar 10, 2015, 10:53:08 PM3/10/15
to idem...@googlegroups.com
Hi ALL,

I am using %IDEMPIERE%\utils\windows\idempiere_Service_Install.bat
to install the windows service.

first, it got error systemExit not recognize, then i removed -stop -method systemExit and it install.

but when i run the service, the running progress just keep progressing and the starting never finish.

i got the error message that "... response not in timely manner".

Can anyone share me the successful script for windows service installer on idempiere?

Thanks.

Adam.

adamta...@gmail.com

unread,
Mar 10, 2015, 11:47:49 PM3/10/15
to idem...@googlegroups.com
I am using

Windows Server 2008 64bit
Oracle Jdk 1.7 x86

Please help me up. Urgent.

Adam.

Hiep Lq

unread,
Mar 11, 2015, 1:04:52 AM3/11/15
to idem...@googlegroups.com
64bit is root cause. for quick please switch to 32bit or switch to linux.

Hiep Lq

unread,
Mar 11, 2015, 1:20:08 AM3/11/15
to idem...@googlegroups.com

current service wrapper don't support 64bit.
last tonight i try other (procrun) but not success.

procrun request your program has a start, stop function with parameter as String [] args.
i write a mini java program, procrun call mini program, mini program call idempiere.
everything seem good, but when idempiere run, it only allocate about 300M ram and litter plug-in loaded.
it's same as when you run idempiere from other folder: example cmd at c:/other_folder and type %IDEMPIERE_HOME%idempiere.exe
note: i also set working folder to Runtime.exec and also increase heap size to 2g but issue don't change.

i hear about "java bootstrap class loader" but i has no time to try more, i stop here, because window just my backup server.
please share your solution when you find it out


On Wednesday, March 11, 2015 at 10:47:49 AM UTC+7, adamta...@gmail.com wrote:

adamta...@gmail.com

unread,
Mar 11, 2015, 2:57:41 AM3/11/15
to idem...@googlegroups.com
Hi Hiep Lq,

Thanks alot. I appreciate your sharing.

I am thinking why tomcat7x86 can start using windows service in windows x64.

Is it because service wrapper "idempiereService.exe" cannot work in windows x64? But the .bat file is using idempiereService.exe to install the service. Kind of weird. :D

Anyway, the only choice i think i can use is Log in as Administrator, run the idempiere.exe and lock the windows...

If anyone able to run idempiere 2.1 as windows 64 service with autostart, please share to me.

Adam.

Hiep Lq

unread,
Mar 11, 2015, 3:06:37 AM3/11/15
to idem...@googlegroups.com
idempiereService.exe is http://javaservice.objectweb.org, rename for friendly
.bat file is call idempiereService.exe to registry service.
after registry, idempiereService.exe become a service, it wrapper to call idempiere
in document (download with binary) of javaservice it said idempiereService only call a 32bit program, because idempiere 64bit is can't run with this method.
in case you need < 4g ram, it's ok to use idempiere 32bit

adamta...@gmail.com

unread,
Mar 11, 2015, 4:02:24 PM3/11/15
to idem...@googlegroups.com
My development jdk is.x86 1.7, when i use buckminster to create product.zip, i select win32. I am using eclipse kepler x86. My server has jdk 1.7 x86. When i run install .bat, it failed because not recognize exitSystem keyword, i removed -stop -method exitSystem then can install, but when i run the service, it never end after starting. "... Not respond to start control in timely manner..."
Reply all
Reply to author
Forward
0 new messages