2 Replies Latest reply on Mar 31, 2011 10:00 AM by Snjezana Peco

    Error after enabling m2eclipse

    Leandro Iriarte Newbie

      I got the following error in JBoss Studio 3.0.1.GA after enabling m2eclipse dependency management in all the projects.

       

      An internal error occurred during: "Initializing Java Tooling".

      org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to org.eclipse.jst.javaee.application.Application

       

      In the log file I find the following:

       

      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

      !STACK 0

      java.lang.ClassCastException: org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to org.eclipse.jst.javaee.application.Application

          at org.eclipse.jst.j2ee.project.EarUtilities.getEARLibDir(EarUtilities.java:372)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.getBaseEARLibRefs(J2EEComponentClasspathContainer.java:321)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.update(J2EEComponentClasspathContainer.java:211)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.install(J2EEComponentClasspathContainer.java:351)

          at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathInitializer.initialize(J2EEComponentClasspathInitializer.java:47)

          at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2642)

          at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1813)

          at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2652)

          at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2578)

          at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2679)

          at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1899)

          at org.jboss.tools.common.model.util.EclipseResourceUtil.getClassPath(EclipseResourceUtil.java:676)

          at org.jboss.tools.seam.internal.core.scanner.lib.ClassPath.update(ClassPath.java:95)

          at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:95)

          at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)

          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)

          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)

          at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)

          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)

          at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)

          at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)

          at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)

          at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)

          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)