- This topic has 5 replies, 5 voices, and was last updated 18 years, 3 months ago by jklcom99.
-
AuthorPosts
-
snpeMemberHello,
Raible’s appfuse (an application for starting your web applications) have link
for use with myeclipse :http://www.jroller.com/page/RickHigh/20040119#integrating_appfuse_with_eclipse_2
and
http://www.jroller.com/page/RickHigh/20040120#getting_myeclipse_to_work_withregards
Riyad KallaMemberThanks for the link!
browngMemberI’m having a few problems importing AppFuse projects. Through trial and error, I think I’m getting pretty close to a solution. Maybe you can resolve the outstanding issues at the bottom of this post. I think it would be a major coup for MyEclipse if you could announce to the world that you can provide a RAD environment for Spring development.
Here’s my process for integrating MyEclipse and Appfuse.
Download and extract the AppFuse source to your work directory. I simply renamed the appfuse-1.5-src folder to appfuse_1.5_mysql_staging since I prefer to work with mysql. Within the appfuse folder I modified the configuration files to agree with my mysql, tomcat, and mail environment. Be cautious with you changes because you will be using the appfuse project to generate all your other projects. In the appfuse folder run
ant new –Dapp.name=MyAppFuse –Ddb.name=MyAppFuse
After ant finishs, you will notice the new MyAppFuse folder at the same level as the appfuse folder.In the MyAppFuse folder, run
ant setup
ant test-all
ant test-reportsIf all goes well you will have no errors. Otherwise, there’s probably something wrong with your database, mail, or app server settings.
Now we will import MyAppFuse into a MyEclipse workspace.
Create a new Eclipse java project (NOT a web project) named MyAppFuse. Import the [staging_folder]\MyAppFuse folder into your MyAppFuse Eclipse project using “Import File System”. Don’t try to use
Elcipse’s “Import Existing Project into Workspace” method
because you’ll get a lot of JSP taglib errors.
During the import you will get an error dialog saying
An internal error occurred during: “Update JSP Index”.
Then you will see this msg in Eclipse’s Problems view:
“unbound classpath variable “J2EE_HOME/lib/j2ee.jar”.
Ignore the error for now.
Add Web Project capabilities to MyAppFuse
In the dialog unselect the “Create web.xml” checkbox.
You can now safely remove the unbound classpath variable
“J2EE_HOME/lib/j2ee.jar”.If you get a lot of xml validation problems, then turn off MyEclipse’s XML Validation in Project properties – MyEclipse Validation.
Now your only Eclipse Prolems will be import warnings.
Fix those by right-clicking the project and selecting
Source – Organize Imports.It’s here that I usually get stuck on errors:
On one project I got this error:
Severity Description Resource In Folder Location Creation Time
“IWAE0035W IWAD3000I: Some messages may be missing because the maximum number of messages has been reported.
Increase the maximum number of messages and try again.”On another project, I got rid of all the Eclipse problems but when I ran build.xml’s all-tests target within Eclipse, I got this error:
BUILD FAILED: C:\dev\java\myjava\eclipse3_workspaces\MyEclipse_Tutorials\MyAppFuse\build.xml:876: Following error occured while executing this line
C:\dev\java\myjava\eclipse3_workspaces\MyEclipse_Tutorials\MyAppFuse\build.xml:862: Following error occured while executing this line
java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormatI tried running it from the command line and got this:
C:\dev\java\myjava\eclipse3_workspaces\MyEclipse_Tutorials\MyAppFuse\build.xml:876: The following error occurred while executing this line:
C:\dev\java\myjava\eclipse3_workspaces\MyEclipse_Tutorials\MyAppFuse\build.xml:862: The following error occurred while executing this line:
C:\dev\java\myjava\eclipse3_workspaces\MyEclipse_Tutorials\MyAppFuse\test\web\weTest step verifytitle named “we should see the login title” failed with message
“Wrong document title found! Expected “${webapp.prefix}${login.title}” but got “AppFuse ~ Login””
yeecnMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
jklcom99MemberHi,
I’ve been trying to get Appfuse to work in MyEclipse but getting too far. Has anyone gotten this to work?
Thank you
-
AuthorPosts