I am generating Excel file using Apache XSSFWorkbook API. The code is working fine when I test using Standalone client (using main method).
But, when I deploy this code in Web-logic server and try to generate the excel file. The file is generated. But, it is not opened properly. I got message like "Excel file cannot open the file because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file".
Please let me know if anyone has solution for this problem.