A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Eclipse integration problem.

View: New views
5 Messages — Rating Filter:   Alert me  

Eclipse integration problem.

by Marc Hughes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to get the eclipse integration working but am having some problems.  I get to a point where I have 87 errors in my project and can't continue.  That seems to always happen after I do a "mvn war:inplace"

Here's the full steps I take:

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.agileagenda.server -DartifactId=agileagenda

cd agileagenda/

vi pom.xml  (I set the mysql username / password / port that I use)

mvn

mvn jetty:run-war
I browse to http://localhost:8080/, and I can see the site, log in, etc.  All seems good.

mvn install eclipse:eclipse

pwd
/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda

mvn -Declipse.workspace=/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda eclipse:add-maven-repo

I then launch Eclipse and import the project.  Eclipse sits there cranking away for a while and then comes back with a few errors, but those look like they are expected. (http://issues.appfuse.org/browse/APF-649)

Now, I exit eclipse.

mvn war:inplace

And reopen eclipse.  And I get 87 errors.  84 of them are of the form:
Web library project archive activation-1.1.jar conflicts with another archive also mapped to the WEB-INF/lib folder.
With a different jar listed for each.

If I do a mvn jetty:run-war, then everything works fine so I think it's just an eclipse config problem.

I've also done these steps, but placing the war:inplace before I generate the eclipse project, and still have the same problem.

Any ideas?

Thanks a lot,
-Marc

Re: Eclipse integration problem.

by Marc Hughes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah ha!  After paying more attention to this:

I noticed an extra step.
rm -r src/main/webapp/WEB-INF/lib/

That seems to have fixed my errors.  I can't wait to get started with all this :)

It might be a good idea to add that to the eclipse integration page? http://appfuse.org/display/APF/Eclipse

Thanks,
-Marc

On Thu, Jun 19, 2008 at 8:10 AM, Marc Hughes <marc.hughes@...> wrote:
Hello,

I'm trying to get the eclipse integration working but am having some problems.  I get to a point where I have 87 errors in my project and can't continue.  That seems to always happen after I do a "mvn war:inplace"

Here's the full steps I take:

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.agileagenda.server -DartifactId=agileagenda

cd agileagenda/

vi pom.xml  (I set the mysql username / password / port that I use)

mvn

mvn jetty:run-war
I browse to http://localhost:8080/, and I can see the site, log in, etc.  All seems good.

mvn install eclipse:eclipse

pwd
/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda

mvn -Declipse.workspace=/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda eclipse:add-maven-repo

I then launch Eclipse and import the project.  Eclipse sits there cranking away for a while and then comes back with a few errors, but those look like they are expected. (http://issues.appfuse.org/browse/APF-649)

Now, I exit eclipse.

mvn war:inplace

And reopen eclipse.  And I get 87 errors.  84 of them are of the form:
Web library project archive activation-1.1.jar conflicts with another archive also mapped to the WEB-INF/lib folder.
With a different jar listed for each.

If I do a mvn jetty:run-war, then everything works fine so I think it's just an eclipse config problem.

I've also done these steps, but placing the war:inplace before I generate the eclipse project, and still have the same problem.

Any ideas?

Thanks a lot,
-Marc


Re: Re: Eclipse integration problem.

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, Jun 19, 2008 at 8:58 AM, Marc Hughes <marc.hughes@...> wrote:
Ah ha!  After paying more attention to this:

I noticed an extra step.
rm -r src/main/webapp/WEB-INF/lib/

That seems to have fixed my errors.  I can't wait to get started with all this :)

It might be a good idea to add that to the eclipse integration page? http://appfuse.org/display/APF/Eclipse

Yes, it sounds like a good idea. You should be able to change the page yourself.

Matt
 

Thanks,
-Marc

On Thu, Jun 19, 2008 at 8:10 AM, Marc Hughes <marc.hughes@...> wrote:
Hello,

I'm trying to get the eclipse integration working but am having some problems.  I get to a point where I have 87 errors in my project and can't continue.  That seems to always happen after I do a "mvn war:inplace"

Here's the full steps I take:

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.agileagenda.server -DartifactId=agileagenda

cd agileagenda/

vi pom.xml  (I set the mysql username / password / port that I use)

mvn

mvn jetty:run-war
I browse to http://localhost:8080/, and I can see the site, log in, etc.  All seems good.

mvn install eclipse:eclipse

pwd
/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda

mvn -Declipse.workspace=/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda eclipse:add-maven-repo

I then launch Eclipse and import the project.  Eclipse sits there cranking away for a while and then comes back with a few errors, but those look like they are expected. (http://issues.appfuse.org/browse/APF-649)

Now, I exit eclipse.

mvn war:inplace

And reopen eclipse.  And I get 87 errors.  84 of them are of the form:
Web library project archive activation-1.1.jar conflicts with another archive also mapped to the WEB-INF/lib folder.
With a different jar listed for each.

If I do a mvn jetty:run-war, then everything works fine so I think it's just an eclipse config problem.

I've also done these steps, but placing the war:inplace before I generate the eclipse project, and still have the same problem.

Any ideas?

Thanks a lot,
-Marc



Re: Eclipse integration problem.

by stelios () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Unfortunately I still get these errors and have not lib folder in WEB-INF.
Are there any additional steps you took to resolve this?

Bear in mind that my project is integrated with WTP and in the org.eclipse.wst.common.component file the jars that give the errors are deployed to WEB-INF/lib,
although even after mvn clean the errors remain.

The errors appear once I do mvn install.

thanks
stelios


Marc Hughes-2 wrote:
Ah ha!  After paying more attention to this:
http://static.appfuse.org/movies/2.0/helloworld.mov

I noticed an extra step.
rm -r src/main/webapp/WEB-INF/lib/

That seems to have fixed my errors.  I can't wait to get started with all
this :)

It might be a good idea to add that to the eclipse integration page?
http://appfuse.org/display/APF/Eclipse

Thanks,
-Marc

On Thu, Jun 19, 2008 at 8:10 AM, Marc Hughes <marc.hughes@gmail.com> wrote:

> Hello,
>
> I'm trying to get the eclipse integration working but am having some
> problems.  I get to a point where I have 87 errors in my project and can't
> continue.  That seems to always happen after I do a "mvn war:inplace"
>
> Here's the full steps I take:
>
>
> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=
> http://static.appfuse.org/releases
>  -DarchetypeVersion=2.0.2 -DgroupId=com.agileagenda.server -DartifactId=agileagenda
>
> cd agileagenda/
>
> vi pom.xml  (I set the mysql username / password / port that I use)
>
> mvn
> mvn jetty:run-war
> I browse to http://localhost:8080/
> , and I can see the site, log in, etc.  All seems good.
>
> mvn install eclipse:eclipse
>
> pwd
> /Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda
>
> mvn -Declipse.workspace=/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda eclipse:add-maven-repo
>
>
> I then launch Eclipse and import the project.  Eclipse sits there cranking away for a while and then comes back with a few errors, but those look like they are expected. (
> http://issues.appfuse.org/browse/APF-649)
>
> Now, I exit eclipse.
>
> mvn war:inplace
>
> And reopen eclipse.  And I get 87 errors.  84 of them are of the form:
>
> Web library project archive activation-1.1.jar conflicts with another archive also mapped to the WEB-INF/lib folder.
> With a different jar listed for each.
>
> If I do a mvn jetty:run-war, then everything works fine so I think it's
> just an eclipse config problem.
>
> I've also done these steps, but placing the war:inplace before I generate
> the eclipse project, and still have the same problem.
>
> Any ideas?
>
> Thanks a lot,
> -Marc
>

Re: Eclipse integration problem.

by stelios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems the errors arise from the project.war being in the maven repository.
Once deleted from there the errors disappear.
Any idea of how to resolve this?
 

Hi,

Unfortunately I still get these errors and have not lib folder in WEB-INF.
Are there any additional steps you took to resolve this?

Bear in mind that my project is integrated with WTP and in the org.eclipse.wst.common.component file the jars that give the errors are deployed to WEB-INF/lib,
although even after mvn clean the errors remain.

The errors appear once I do mvn install.

thanks
stelios


Marc Hughes-2 wrote:
Ah ha!  After paying more attention to this:
http://static.appfuse.org/movies/2.0/helloworld.mov

I noticed an extra step.
rm -r src/main/webapp/WEB-INF/lib/

That seems to have fixed my errors.  I can't wait to get started with all
this :)

It might be a good idea to add that to the eclipse integration page?
http://appfuse.org/display/APF/Eclipse

Thanks,
-Marc

On Thu, Jun 19, 2008 at 8:10 AM, Marc Hughes <marc.hughes@gmail.com> wrote:

> Hello,
>
> I'm trying to get the eclipse integration working but am having some
> problems.  I get to a point where I have 87 errors in my project and can't
> continue.  That seems to always happen after I do a "mvn war:inplace"
>
> Here's the full steps I take:
>
>
> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=
> http://static.appfuse.org/releases
>  -DarchetypeVersion=2.0.2 -DgroupId=com.agileagenda.server -DartifactId=agileagenda
>
> cd agileagenda/
>
> vi pom.xml  (I set the mysql username / password / port that I use)
>
> mvn
> mvn jetty:run-war
> I browse to http://localhost:8080/
> , and I can see the site, log in, etc.  All seems good.
>
> mvn install eclipse:eclipse
>
> pwd
> /Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda
>
> mvn -Declipse.workspace=/Users/mhughes/projects/personal/AgileAgenda/WebServices2.0/agileagenda eclipse:add-maven-repo
>
>
> I then launch Eclipse and import the project.  Eclipse sits there cranking away for a while and then comes back with a few errors, but those look like they are expected. (
> http://issues.appfuse.org/browse/APF-649)
>
> Now, I exit eclipse.
>
> mvn war:inplace
>
> And reopen eclipse.  And I get 87 errors.  84 of them are of the form:
>
> Web library project archive activation-1.1.jar conflicts with another archive also mapped to the WEB-INF/lib folder.
> With a different jar listed for each.
>
> If I do a mvn jetty:run-war, then everything works fine so I think it's
> just an eclipse config problem.
>
> I've also done these steps, but placing the war:inplace before I generate
> the eclipse project, and still have the same problem.
>
> Any ideas?
>
> Thanks a lot,
> -Marc
>

LightInTheBox - Buy quality products at wholesale price