History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-1110
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Marc van Kempen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Errors when creating default appfuse project and importing it in Eclipse

Created: 14/Nov/08 02:32 PM   Updated: 12/Dec/08 01:53 AM
Component/s: None
Affects Version/s: 2.0.2
Fix Version/s: 2.1

Environment:
Eclipse 3.3.2
Mac OS X 10.5.5


 Description  « Hide
I was experimenting with AppFuse 2.0.2 and Eclipse (version 3.3.2 on Mac OS X 10.5.5) and got the problem with dataAccessFailure.jsp and login.xml (see also http://issues.appfuse.org/browse/APF-649, errors 1 and 3), my solution was to rewrite the exception throwing code from:

    Exception ex = (Exception) request.getAttribute("exception");
    ex.printStackTrace(new java.io.PrintWriter(out));

    to

    ((Exception) request.getAttribute("exception")).printStackTrace(new java.io.PrintWriter(out));

That solves the mistaken error message about the duplicate variable ex, I agree that it shouldn't happen, but now at least this error is resolved and the code is semantically equivalent. Maybe you can put this in your code repository?

The only way to solve the login.xml problem was to rename login.xml to login.xmlfragment (or anything else as long as it isn't .xml). This way Eclipse won't treat it as xml, which technically it isn't. See also http://www.w3.org/TR/REC-xml/#dt-wellformed.

Another solution might be to define the entity as an internal parameter entity.

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 12/Dec/08 01:53 AM
Fixed - thanks for the suggested patches.