On Nov 28, 2007, at 2:56 AM, Dean Hallman wrote:

Frank,

If you are still hitting this problem, I think I can help... I was getting the exact problem you described in Eclipse (MyEclipse) and this is what I did to resolve:

The main problem is, "mvn eclipse:eclipse" sets "bin" as the output directory. However, "target" is really the output directory that the mvn archetype set up, and this is causing all the confusion. (In fact, mvn eclipse:eclipse actually sets target up as a source directory.)

Because target is not designated as an output directory, it is actually trying to compile the target directory and giving you all these errors as it tries to compile it! I mean, Tomcat container is in there, and Eclipse is trying to compile that and put the output in the bin directory! Hence 500+ illegal characters (hitting binary).

Because mvn eclipse:eclipse is setting things up this way by default, I'm surprised this issue isn't effecting more people.

Anyway, to resolve, I did this:

Make sure target is a source directory which will be compiled.
  1. Select target directory and right mouse click
  2.  Select Build Path -> Don't use as source folder

Now, designate target as default output folder:
1. Select toplevel project in package explorer and right mouse click.
  2. Pick Build Path -> Configure Build Path
3. Under "default output folder", replace <project>/bin with <project>/target

That eliminated all errors (except 1) for me.

The only remaining error I see is in login.xml, where the error complains of improper XML. And in fact, the XML has no root node:

<invoke description="get Login Page" url="/"/>
<verifytitle description="we should see the login title" text=".*$ { login.title}.*" regex="true"/> <setinputfield description="set user name" name="j_username" value="admin"/> <setinputfield description="set password" name="j_password" value="admin"/> <clickbutton label="${button.login}" description="Click the submit button"/> <verifytitle description="Home Page follows if login ok" text=".*$ {mainMenu.title}.*" regex="true"/>

Because there is no root node in this file, this error seems to be legit. Still puzzling over this one at the moment. Anyone else know?

I don't know if there's an issue in JIRA for this or not, but it *is* a known issue. We've been thinking about renaming it to login.xmlf to solve this problem. You might try that in your project.

Matt

Dean



On Nov 18, 2007 4:13 AM, Frank Lawlor < [EMAIL PROTECTED]> wrote:

I am trying to set up AppFuse 2.
I followed the instructions at
http://appfuse.org/display/APF/AppFuse+QuickStart.
Seemed to go ok (but it set up my project in my documents dir w/o even
asking me where I REALLY want it!)

I need to use it with MyEclipse so I followed the link to to
http://appfuse.org/display/APF/Development+Environment

Here I find (incomplete) AppFuse installation instructions (again) and
(finally) instructions for the development environment setup.

Unfortunately they it tells me to set up a directory structure which is
totally contradictory to where I had just set up all the tools (MySQL,
Maven, jdk, etc).  This structure is totally contrary to the typlical
Windows structure (e.g. tools are usually in the Program Files dir) and specifically expects Maven and MySQL to be in a common "tools" dir, which
they aren't using their normal installers.

But then it points me to another link which points me to an Eclipse line
!!!!!!

I COULD SCREAM!!!

These sets of instructions are contradictory (even tho they seem to be
written by the same person) and expect a structure which is totally contray
to the first instructions and the normal Windows conventions.

The instructions at http://appfuse.org/display/APF/Eclipse tell me to
install Eclipse in the toos dir.  Sorry, its already install WHERE ITS
SUPPOSED TO BE!  Ditto MySQL, Mavewn, etc.

The path setup have me specifying mavin one way in the first instructions
and diffetently in the second!

I'm feeling very frustrated.  This really shouldn't be this hard.

I set up windows paths to try to point to everything and and followed the
instructions for the Eclipse setup.

After starting Eclipse and importing the app, the application shows 477
errors.
Some, for example, are:
- many taglib erros in jsps - may be due to fact that I don't see any web
directory in the project (target???)
 - "Clickstream cannot be resolved to a type" - ????
 - many "illegal character" errors in calendar-he-utf8.js
 - "Cookie cannot be rsolved to a type" in logout.jsp
 - etc.

WIndows shows a bunch of subdirs not visible in MyEclispe. E.g. Eclipse
shows only src/main which Windows shows a bunch of dirs below main.

This is a mess!
--
View this message in context: http://www.nabble.com/AppFuse-2- Development-Environment-Setup-tf4829541s2369.html#a13817350
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