I have developed some java code which will generate kml files using the JAK library. This code worked perfectly when deployed on a tomcat environment. However I have migrated to IIS aspx which has a java backend and am running into issues. It seems when I call KML.marshall(file) the file is generated however the size is 0.
final Kml __balloonKML = new Kml();
final de.micromata.opengis.kml.v_2_2_0.Document baloonDocument =__balloonKML.createAndSetDocument();
__balloonKML.marshal(new File(kmlLoc+"//kml//baloonLayer"+msgId+".kml"));
If i perform a baloonDocument.getFeature().size(); it returns the correct number of placemarks. Which kind of shows the problem lies within the marshal method. I am able to write .txt files to this location from the same code no problem so its not a permissions issue.
does anyone have recommendations?