OK, looks like I can get the AppFuse bare-bones project to work under
Eclipse.  At least for an initial level.

Here, roughly, are the steps for Eclipse-3.2.x and WTP installed from the
Callisto upgrade site:

- Use the AppFuse archetypes to create the project.  I used the Struts-2
Modular version.
- Under "myproject", create a new dir called pom.  Copy myproject/pom.xml to
myproject/pom/pom.xml
- Modify myproject/pom.xml to change the artifactId to "myproject-pom"
- Modify core/pom.xml and web/pom.xml to change the parent pom artifactId to
"myproject-pom" and delete the relativePath element
- Modify myproject/pom.xml to add the "pom" module, in addition to core and
web in the modules section
- mvn install eclipse:eclipse
- edit myproject/web/.settings/org.eclipse.wst.common.component
    - add     <wb-resource deploy-path="/"
source-path="target/myproject-webapp-1.0-SNAPSHOT"/>
    - delete <wb-resource deploy-path="/WEB-INF/classes"
source-path="src/main/resources"/>
- edit  myproject/web/.classpath
    - delete <classpathentry kind="src" path="src/main/resources"
excluding="ApplicationResources_zh*.properties|ApplicationResources_de.properties|ApplicationResources_fr.properties|ApplicationResources_nl.properties|ApplicationResources_pt*.properties|**/*.java"/>
    - add <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache
Tomcat v5.5"/>
    - add <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
- Preferences->Java->Installed JREs: Make sure default JRE is actually the
JVM  and not the JRE
- Preferences->Server->Installed Runtimes: Pick an Apache->Tomcat 5.5
server, and point it to your local installation
- Import->Existing Projects into Workspace: Point to your AppFUse project
dir and import myproject-core and myproject-web
- Open J2EE perspective, then Run->Run On Server (when prompted, connect it
to the Tomcat server you configured previously)
- You may want to copy the launch configuration and then add all the
properties defined in myproject/pom.xml

That's it....hope this works for you!!!!


A few problems:

- core/src/main/java/Core.java are created in the default package, but have
a different package declaration
- common/header.jsp line 3.  'en' should be "en", and the outer "" can be
changed to ''
- common/messages.jsp needs <%@ include file="/common/taglibs.jsp"%>
- dwr.xml line 7 is a comment embedded in a comment
- WEB-INF/pages/activeUsers.jsp line 26,   tag doesn't have styleClass
attribute (style?)

- Somehow Eclipse doesn't validate the "<content>" tag, and expects
"<label>" tag to be closed.  No biggies.
- Eclipse shows validation errors in some of the target/* temp dirs, wish
there was a way in Eclipse to turn off validation in certain dirs.  Looks
like it is either a global turn off, or validation on all dirs!

Shash



-- 
View this message in context: 
http://www.nabble.com/Appfuse-M3-and-Eclipse-help-tf3245072s2369.html#a9036024
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to