jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes Struts - xml to generate pdf - error with IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Struts - xml to generate pdf - error with IE" Watch "Struts - xml to generate pdf - error with IE" New topic

Struts - xml to generate pdf - error with IE

Ruchi Kumar

Joined: Feb 16, 2005
Posts: 7

We are creating a J2EE application, working with the struts framework, generating a pdf file using XML, XSLT, fop.

� While opening the file from the local box (using Weblogic server 8, OS: Windows 2000), the file is opening and also getting saved properly.
� While opening the file from the development server(Weblogic server 8, OS: unix box):
  • On the IE browser, the file is not opening. It opens the Adobe Acrobat reader, appears as if it will open the file, but gives the following error message: "There was an error opening this document. The file does not exist." The strange part is that it is successfully saving the same file.
  • On the Netscape browser, the same file from coming from the server hosted on the unix box, is opening properly. Hence, the issue is not related to case of the path etc.

  • Has anybody come across this issue. Can you please suggest what could be done to fix the same. Thanks in advance.

    Senthil B Kumar
    Ranch Hand

    Joined: Feb 09, 2004
    Posts: 160
    When the Acrobat Reader says such an error, try saving that file (you have mentioned that saving works) to the local machine and open the file seperately instead of opening it via IE.

    I suppose that there ad been some exception while generating the pdf and hence this file is opening before.

    Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
    Currently I Reside Here WEBlog
    I agree. Here's the link: http://aspose.com/file-tools
    subject: Struts - xml to generate pdf - error with IE
    It's not a secret anymore!