Dear All,

i have a Java/JSP application that runs on Tomcat.
I start the application through the following batch file.

Java Code:
echo off
echo Starting rmiregistry...
start rmiregistry -J-Djava.rmi.server.hostname=192.168.0.167 -J-Djava.security.policy=java.policy
 
 
echo pause 2
C:\j2sdk1.4.2_05\bin\java -classpath .;lib;C:\webforce\webforce\lib\jconn2.jar;C:\webforce\webforce\lib\ojdbc14.jar;C:\webforce\webforce\lib\jTDS2.jar;C:\webforce\webforce\lib\ojdbc14.jar;C:\webforce\webforce\lib\sqljdbc.jar;C:\webforce\webforce\lib\sqljdbc4.jar;C:\webforce\webforce\lib\mail.jar;C:\webforce\webforce\lib\activation.jar;C:\webforce\webforce\lib\hasp-srm-api.jar webforce.utils.WebMultiThread
echo pause 3
i recently created a windows service to start the batch file automatically.
the service runs normally under windows server 2003/XP but under windows server 2008 R2 the JVM is crashing whenever i start the service.
although if i run the batch file manually, the application runs fine.

as you can see in the log file below, the crash is caused by the awt library...( i really don't know why)

your help is highly appreciated...thanks

Java Code:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x329B524
Function=Java_sun_java2d_loops_MaskFill_MaskFill+0x6DE4
Library=C:\j2sdk1.4.2_05\jre\bin\awt.dll
 
Current Java thread:
	at sun.java2d.loops.Blit.Blit(Native Method)
	at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:640)
	at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:346)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:66)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:50)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:736)
	at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:147)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2759)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2749)
	at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4797)
	at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
	at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
 
Dynamic libraries:
0x00400000 - 0x0040B000 	C:\j2sdk1.4.2_05\bin\java.exe
0x77E20000 - 0x77FA0000 	C:\Windows\SysWOW64\ntdll.dll
0x771D0000 - 0x772D0000 	C:\Windows\syswow64\kernel32.dll
0x76DE0000 - 0x76E26000 	C:\Windows\syswow64\KERNELBASE.dll
0x767F0000 - 0x76890000 	C:\Windows\syswow64\ADVAPI32.dll
0x774E0000 - 0x7758C000 	C:\Windows\syswow64\msvcrt.dll
0x774B0000 - 0x774C9000 	C:\Windows\SysWOW64\sechost.dll
0x75A30000 - 0x75B20000 	C:\Windows\syswow64\RPCRT4.dll
0x75990000 - 0x759F0000 	C:\Windows\syswow64\SspiCli.dll
0x75980000 - 0x7598C000 	C:\Windows\syswow64\CRYPTBASE.dll
0x08000000 - 0x08139000 	C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
0x76CE0000 - 0x76DE0000 	C:\Windows\syswow64\USER32.dll
0x76B90000 - 0x76C20000 	C:\Windows\syswow64\GDI32.dll
0x759F0000 - 0x759FA000 	C:\Windows\syswow64\LPK.dll
0x777C0000 - 0x7785D000 	C:\Windows\syswow64\USP10.dll
0x750C0000 - 0x750F2000 	C:\Windows\system32\WINMM.dll
0x76C20000 - 0x76C80000 	C:\Windows\system32\IMM32.DLL
0x76FB0000 - 0x7707C000 	C:\Windows\syswow64\MSCTF.dll
0x75500000 - 0x7554B000 	C:\Windows\system32\apphelp.dll
0x10000000 - 0x10007000 	C:\j2sdk1.4.2_05\jre\bin\hpi.dll
0x00230000 - 0x0023E000 	C:\j2sdk1.4.2_05\jre\bin\verify.dll
0x00240000 - 0x00259000 	C:\j2sdk1.4.2_05\jre\bin\java.dll
0x00270000 - 0x0027D000 	C:\j2sdk1.4.2_05\jre\bin\zip.dll
0x75B90000 - 0x767D9000 	C:\Windows\syswow64\SHELL32.DLL
0x77760000 - 0x777B7000 	C:\Windows\syswow64\SHLWAPI.dll
0x77350000 - 0x774AC000 	C:\Windows\syswow64\ole32.dll
0x03290000 - 0x033A2000 	C:\j2sdk1.4.2_05\jre\bin\awt.dll
0x72B90000 - 0x72BE1000 	C:\Windows\system32\WINSPOOL.DRV
0x033B0000 - 0x03401000 	C:\j2sdk1.4.2_05\jre\bin\fontmanager.dll
0x74FD0000 - 0x750B7000 	C:\Windows\system32\ddraw.dll
0x75560000 - 0x75566000 	C:\Windows\system32\DCIMAN32.dll
0x77860000 - 0x779FD000 	C:\Windows\syswow64\SETUPAPI.dll
0x771A0000 - 0x771C7000 	C:\Windows\syswow64\CFGMGR32.dll
0x77590000 - 0x7761F000 	C:\Windows\syswow64\OLEAUT32.dll
0x77A00000 - 0x77A12000 	C:\Windows\syswow64\DEVOBJ.dll
0x751B0000 - 0x751C3000 	C:\Windows\system32\dwmapi.dll
0x75B20000 - 0x75B4D000 	C:\Windows\syswow64\WINTRUST.dll
0x77080000 - 0x7719C000 	C:\Windows\syswow64\CRYPT32.dll
0x767E0000 - 0x767EC000 	C:\Windows\syswow64\MSASN1.dll
0x74C20000 - 0x74CEC000 	C:\Windows\system32\D3DIM700.DLL
0x75A00000 - 0x75A2A000 	C:\Windows\syswow64\imagehlp.dll
0x75720000 - 0x7580B000 	C:\Windows\syswow64\dbghelp.dll
0x03450000 - 0x0345F000 	C:\j2sdk1.4.2_05\jre\bin\net.dll
0x75B50000 - 0x75B85000 	C:\Windows\syswow64\WS2_32.dll
0x76E80000 - 0x76E86000 	C:\Windows\syswow64\NSI.dll
0x75860000 - 0x75870000 	C:\Windows\system32\NLAapi.dll
0x75870000 - 0x758AC000 	C:\Windows\System32\mswsock.dll
0x75810000 - 0x75854000 	C:\Windows\system32\DNSAPI.dll
0x75710000 - 0x75718000 	C:\Windows\System32\winrnr.dll
0x75700000 - 0x75710000 	C:\Windows\system32\napinsp.dll
0x756C0000 - 0x756DC000 	C:\Windows\system32\IPHLPAPI.DLL
0x756B0000 - 0x756B7000 	C:\Windows\system32\WINNSI.DLL
0x75670000 - 0x756A8000 	C:\Windows\System32\fwpuclnt.dll
0x756F0000 - 0x756F6000 	C:\Windows\system32\rasadhlp.dll
0x77DF0000 - 0x77DF5000 	C:\Windows\syswow64\PSAPI.DLL
 
Heap at VM Abort:
Heap
 def new generation   total 576K, used 576K [0x10010000, 0x100b0000, 0x104f0000)
  eden space 512K, 100% used [0x10010000, 0x10090000, 0x10090000)
  from space 64K, 100% used [0x100a0000, 0x100b0000, 0x100b0000)
  to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
 tenured generation   total 1408K, used 534K [0x104f0000, 0x10650000, 0x14010000)
   the space 1408K,  37% used [0x104f0000, 0x105759c8, 0x10575a00, 0x10650000)
 compacting perm gen  total 5632K, used 5507K [0x14010000, 0x14590000, 0x18010000)
   the space 5632K,  97% used [0x14010000, 0x14571000, 0x14571000, 0x14590000)
 
Local Time = Mon Jul 12 11:56:20 2010
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
P.S.i couldn't find a forum for JVM so i posted here. tx