[
http://mifosforge.jira.com/browse/MIFOS-3925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Vorburger reassigned MIFOS-3925:
----------------------------------------
Assignee: Adam Monsen (was: Michael Vorburger)
Adam, the NoClassDefFoundError is because your
application\target\mifos-webapp\WEB-INF\lib is empty/non-existent. As
http://mifosforge.jira.com/wiki/display/MIFOS/Eclipse+WTP says, run "mvn
war:war" in the application/ directory, may be your forgot / Git purged it
while you were merging?
I have just re-tested that an Eclipse Project > Clean... with my
http://github.com/vorburger/mifos-head/compare/MIFOS-3925__BetterEclipseBuildPath
does NOT wipe out application\target\mifos-webapp\WEB-INF\lib (assuming that
it has been present with *.jar inside before), and it does seem to work. If on
your workstation this doesn't work (i.e. if you have *.jar in
application\target\mifos-webapp\WEB-INF\lib and then an Eclipse Project > Clean
wipes them), then something is different between your workspace and mine.
Eclipse version?
Personally I don't like it at all that one needs an initial mvn war in
application, but that's how the MIFOS workspace/IDE experience currently
works... ;) this patch is only an incremental, and does not address that
"problem", yet - I'm hoping to be able to go further, in MIFOS-4071 (which I'll
base of this feature branch).
Re. Summary, yes I confirm your understanding is correct. We could change
title and formulate it slightly more generally by saying that this is about a
"Fix development experience in Eclipse/Tomcat/WTP by ensuring that web
resources in userInterface/questionaire/cashflow modules are taken into
account, and updated, in the IDE (without having to re-run mvn war:war in
application/)".
> userInterface/src/main/webapp/ not configured in WTP
> ----------------------------------------------------
>
> Key: MIFOS-3925
> URL: http://mifosforge.jira.com/browse/MIFOS-3925
> Project: mifos
> Issue Type: Bug
> Components: Build and Testing
> Reporter: Michael Vorburger
> Assignee: Adam Monsen
> Priority: Major
> Fix For: Gazelle Backlog
>
> Attachments: MIFOS-3925_review.patch.gz, wtp_startup_errors.txt
>
>
> Resources in userInterface/src/main/webapp, e.g.
> /userInterface/src/main/webapp/pages/css/maincss.css do not seem to be
> available in the recommended WTP-based set-up, because they are not copied to
> application/target/mifos-webapp (where WTP looks for the "WAR").
> It may work for some people after CLI mvn. This is very cumbersome of
> course, as it would mean that you have to do CLI mvn after each change in
> userInterface/src/main/webapp - not acceptable.
> I've tried simply adding a new Eclipse Project Properties Java Build Path
> Source folder userInterface/src/main/webapp ->
> application/target/mifos-webapp, but that doesn't work due to an error
> message "Cannot nest output folder
> 'vorburger-mifos-head/application/target/mifos-webapp/WEB-INF/freemarker'
> inside output folder 'vorburger-mifos-head/application/target/mifos-webapp'"
> -- which doesn't really make sense to me - may be it's obvious what Eclipse
> is trying to say and I'm just too tired, but I don't yet get it.
> PS: Personally I would set-up the entire workspace differently, via a fully
> Classpath-based embedded Jetty container. (Happy to illustrate on a branch,
> if there is interest in re-integrating - doesn't seem to meet much interest
> though?)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues