Bars with shadows are quite complex objects. The shadow adds additional polygons and is slightly moved in respect to the main bar rectangle. Therefore, it is important the accuracy of the result obtained in JavaView.
Image obtained in MuPAD.
The same model in JavaView. It matches perfectly the original image created in MuPAD.