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   Resolved: 12/Dec/08 01:53 AM
Component/s: None
Affects Version/s: 2.0.2
Fix Version/s: 2.1.0-M1

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.

Matt Raible made changes - 16/Nov/08 09:50 PM
Field Original Value New Value
Fix Version/s 2.1 [ 10031 ]
3188 by  Matt Raible (26 files)
12/Dec/08 01:53 AM (20 months, 9 days ago)
APF-1110: Fixed Eclipse issues 1) Exception scriplet in dataAccessFailure.jsp and 2) renamed login.xml and config.xml to login.xmlf and config.xmlf.
appfuse: trunk/web/struts/src/test/resources/config.xmlf 3188 history download (+5) new
appfuse: trunk/web/jsf/src/test/resources/config.xmlf 3188 history download (+5) new
appfuse: trunk/web/jsf/src/test/resources/config.xml 3188 history deleted
appfuse: trunk/web/spring/src/test/resources/web-tests.xml 3188 history download (+2 -2) diffs
appfuse: trunk/web/struts/src/test/resources/web-tests.xml 3188 history download (+2 -2) diffs
appfuse: trunk/archetypes/appfuse-basic-jsf/src/main/resources/META-INF/archetype.xml 3188 history download (+2 -2) diffs
appfuse: trunk/web/spring/src/test/resources/login.xmlf 3188 history download (+6) new
appfuse: trunk/web/tapestry/src/test/resources/login.xmlf 3188 history download (+6) new
appfuse: trunk/web/spring/src/test/resources/config.xmlf 3188 history download (+5) new
appfuse: trunk/web/struts/src/test/resources/config.xml 3188 history deleted
appfuse: trunk/web/tapestry/src/test/resources/config.xml 3188 history deleted
appfuse: trunk/web/spring/src/main/webapp/WEB-INF/pages/dataAccessFailure.jsp 3188 history download (+1 -2) diffs
appfuse: trunk/archetypes/appfuse-basic-struts/src/main/resources/META-INF/archetype.xml 3188 history download (+2 -2) diffs
appfuse: trunk/web/jsf/src/test/resources/login.xmlf 3188 history download (+6) new
appfuse: trunk/archetypes/appfuse-basic-tapestry/src/main/resources/META-INF/archetype.xml 3188 history download (+2 -2) diffs
appfuse: trunk/web/struts/src/test/resources/login.xml 3188 history deleted
appfuse: trunk/web/jsf/src/test/resources/login.xml 3188 history deleted
appfuse: trunk/web/jsf/src/test/resources/web-tests.xml 3188 history download (+2 -2) diffs
appfuse: trunk/archetypes/appfuse-basic-spring/src/main/resources/META-INF/archetype.xml 3188 history download (+2 -2) diffs
appfuse: trunk/web/struts/src/test/resources/login.xmlf 3188 history download (+6) new
appfuse: trunk/web/struts/src/main/webapp/WEB-INF/pages/dataAccessFailure.jsp 3188 history download (+1 -2) diffs
appfuse: trunk/web/tapestry/src/test/resources/web-tests.xml 3188 history download (+2 -2) diffs
appfuse: trunk/web/spring/src/test/resources/config.xml 3188 history deleted
appfuse: trunk/web/tapestry/src/test/resources/login.xml 3188 history deleted
appfuse: trunk/web/spring/src/test/resources/login.xml 3188 history deleted
appfuse: trunk/web/tapestry/src/test/resources/config.xmlf 3188 history download (+6) new

Matt Raible added a comment - 12/Dec/08 01:53 AM
Fixed - thanks for the suggested patches.

Matt Raible made changes - 12/Dec/08 01:53 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]