and one ting to notice is that non java files don't get compiled and will not be added to WEB-INF/classes.
like propertie files and the language files.

take care of that!

tibi

upstreamnet wrote:
One final observation here:
in order to have your java code changes picked up and loaded by jetty as you
save you not only have to do this >>>

    rm -r src/main/webapp/WEB-INF/lib

You also need to do this >> rm -r src/main/webapp/WEB-INF/classes/com/YOURCOMPANY This assumes that all of your extension code lives under the package com.YOURCOMPANY.YOURAPP

The trick to understanding why you must do this is to look at the INFO msg
that jetty dumps out about its classpath.

You will see a line like this >>
[INFO] Classpath =
    [
file:/C:/devel/projects/appfuse/jumpstart/src/main/webapp/WEB-INF/classes/, file:/C:/devel/projects/appfuse/jumpstart/target/classes/, file:/C:/devel/maven.repository/.m2/repository/org/appfuse/appfuse-data-common/2.0-m4/appfuse-data-common-2.0-m4.jar, etc etc since WEB-INF/classes/ comes before <project>/target/classes/, you have to whack the compiled versions of your extension classes in WEB-INF/classes/. Then the versions of those classes that are picked up are those in <project>/target/classes/.
Since <project>/target/classes/ is where eclipse is writing its compilation
output that is exactly what you want !

works great.

Hope this is useful for other eclipse + appfuse users.

/chris







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to