Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Problems with WTP

Even with a fresh install on my desktop I get this exception. These machines are identical: same os, same jvm, same eclipse setup, etc...  Any pointers on what might be causing this error?

On Fri, Jul 22, 2011 at 9:35 AM, Collin Peters <cpeters@xxxxxxxxxxxxxxxxxxxxx> wrote:
Grrrr... I get an exception on my webapp project on my desktop. I guess I will trying to install a fresh copy of all this stuff there. My test involved rsync'ing my eclipse install and workspace over which should work but I guess isn't a good test

I got this error in my .log
!ENTRY org.eclipse.core.resources 4 2 2011-07-22 09:33:56.714
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.resources.VirtualComponent.setReferences(VirtualComponent.java:499)
at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.setModuleDependencies(WebProjectConfiguratorDelegate.java:280)
at org.maven.ide.eclipse.wtp.WTPProjectConfigurator.mavenProjectChanged(WTPProjectConfigurator.java:76)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.mavenProjectChanged(ProjectConfigurationManager.java:753)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.notifyProjectChangeListeners(ProjectRegistryManager.java:724)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.applyMutableProjectRegistry(ProjectRegistryManager.java:847)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:280)
at org.eclipse.m2e.core.internal.project.registry.MavenProjectManager.refresh(MavenProjectManager.java:58)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:120)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 75 2011-07-22 09:33:56.715
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.m2e.core 4 75 2011-07-22 09:33:56.715
!MESSAGE Errors running builder 'Maven Project Builder' on project 'intouch-webapp'.
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.resources.VirtualComponent.setReferences(VirtualComponent.java:499)
at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.setModuleDependencies(WebProjectConfiguratorDelegate.java:280)
at org.maven.ide.eclipse.wtp.WTPProjectConfigurator.mavenProjectChanged(WTPProjectConfigurator.java:76)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.mavenProjectChanged(ProjectConfigurationManager.java:753)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.notifyProjectChangeListeners(ProjectRegistryManager.java:724)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.applyMutableProjectRegistry(ProjectRegistryManager.java:847)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:280)
at org.eclipse.m2e.core.internal.project.registry.MavenProjectManager.refresh(MavenProjectManager.java:58)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:120)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 368 2011-07-22 09:33:57.412



On Fri, Jul 22, 2011 at 9:24 AM, Collin Peters <cpeters@xxxxxxxxxxxxxxxxxxxxx> wrote:
Uhhh.... weird.  I just re-installed (Helios/1.0/0.13.0.20110623-0455 BTW) m2e-wtp as I had un-installed it to test Webby (I wasn't sure if they conflicted). Now things are working. The Tomcat wtpwebapps folder has all the correct jars and I didn't have to do anything else. This was quite surprising as I had numerous other weird issues that also seem to have vanished.

Not sure what to say right now :O  I'm going to try to migrate my setup to my desktop. Currently it is working on my laptop and I'll see if I have any issues

Collin


On Fri, Jul 22, 2011 at 1:31 AM, Fred Bricon <fbricon@xxxxxxxxx> wrote:
Stefan, I suspect the provided dependencies are deployed because you manually added the Maven Libraries to the deployment assembly. But I'm not sure.

If you guys can try to reproduce the issue using a sample project, that'd be helpful. You can try by trimming down your app (remove any code), remove references to any proprietary plugins / dependencies, obfuscate some names or whatever you don't wanna see publicized.

I'd be happy to help but really, I need you guys.

regards,

Fred Bricon


2011/7/22 Stefan Thurnherr <st.mailinglists@xxxxxxxxx>
Hi
 
I completely agree with you - I've also tried to move to Eclipse Indigo with m2e 1.0 and m2e-wtp 0.13.1 - but gave up after some time.
 
The problem you see can be solved by adding the Maven Dependencies to the Deployment Assembly: Right-click on your web project > Properties > Deployment Assembly > Add > Java Build Path Entries > Maven Dependencies.
 
The problem that then remains (at least for me) is this bug:
 
HTH,
 stefan.

On Fri, Jul 22, 2011 at 1:50 AM, Collin Peters <cpeters@xxxxxxxxxxxxxxxxxxxxx> wrote:
I am having a real tough time trying to migrate our existing app which consists of about 10 java projects with 1 java webapp project. Installing eclipse and just m2e is fine but as soon as I install m2e-wtp I either get errors or things generally aren't working. I'll start with my current issue but I may have some follow-ups.

Before the migration I deleted all my existing Eclipse project files (.classpath, .project, .settings/) and then used the 'Import Existing Maven Projects' option. After the import I had a number of errors which I have all now fixed. I had to restructure a number of things but ultimately I am happy with all those modifications.

When I create a new (Tomcat) Server I select the option 'Use Tomcat Installation'. When I look in the <tomcat>/wtpwebapps/intouch-webapp/WEB-INF/lib folder I only see my internal project dependencies (i.e. the 10 jars from the 10 projects). I don't see any of my external dependancies such as Spring, commons*, ehcache, joda, etc...  In previous versions of m2eclipse I always saw all the project dependencies.

Any ideas?

Collin Peters

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




--
"Have you tried turning it off and on again" - The IT Crowd

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users





Back to the top