[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8676) org.jboss.ide.eclipse.as.test unnecessarily requires org.eclipse.jpt.core
Snjezana Peco (JIRA)
jira-events at lists.jboss.org
Tue Apr 19 09:43:33 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-8676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596514#comment-12596514 ]
Snjezana Peco commented on JBIDE-8676:
--------------------------------------
This issue is similar to JBIDE-8137
The ProjectRuntimeTest.testProjectRuntime requires the jpt.jpa facet and, indirectly, the org.eclipse.jpt.jpa.core dependency.
I haven't added this plugin as a requirement. It already existed. I have removed it because it was renamed. Since the AS test requires it, I have reverted it. As to the jsf plugin, I haven't changed it.
If you start this test without the org.eclipse.jpt.jpa.core dependency in the following way:
- deselect all plugins
- select the o.j.i.as.test plugin
- click Add Required Plugins
you will get the following exception:
java.lang.ExceptionInInitializerError
at org.jboss.ide.eclipse.as.classpath.core.runtime.ProjectRuntimeClasspathProvider.isPrimaryFacet(ProjectRuntimeClasspathProvider.java:86)
at org.jboss.ide.eclipse.as.classpath.core.runtime.ProjectRuntimeClasspathProvider.getClasspathEntries(ProjectRuntimeClasspathProvider.java:70)
at org.eclipse.jst.common.project.facet.core.internal.RuntimeClasspathProvider.getClasspathEntries(RuntimeClasspathProvider.java:51)
at org.eclipse.jst.j2ee.project.facet.J2EEFacetRuntimeChangedDelegate.removeOnlyCPEntries(J2EEFacetRuntimeChangedDelegate.java:187)
at org.eclipse.jst.j2ee.project.facet.J2EEFacetRuntimeChangedDelegate.removeClasspathEntries(J2EEFacetRuntimeChangedDelegate.java:126)
at org.eclipse.jst.j2ee.project.facet.J2EEFacetRuntimeChangedDelegate.execute(J2EEFacetRuntimeChangedDelegate.java:76)
at org.eclipse.wst.common.project.facet.core.events.internal.LegacyEventHandlerAdapter.handleEvent(LegacyEventHandlerAdapter.java:100)
at org.eclipse.wst.common.project.facet.core.events.internal.ProjectListenerRegistry.notifyListeners(ProjectListenerRegistry.java:76)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.notifyListeners(FacetedProject.java:1328)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.setTargetedRuntimesInternal(FacetedProject.java:751)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$4(FacetedProject.java:664)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$3.run(FacetedProject.java:646)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2310)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.setTargetedRuntimes(FacetedProject.java:656)
at org.jboss.ide.eclipse.as.test.util.ProjectRuntimeUtil.setTargetRuntime(ProjectRuntimeUtil.java:60)
at org.jboss.ide.eclipse.as.test.classpath.ProjectRuntimeTest.testProjectRuntime(ProjectRuntimeTest.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)
at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:56)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3742)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:43)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:44)
at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:37)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.IllegalArgumentException: Project facet jpt.jpa has not been defined.
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectFrameworkImpl.getProjectFacet(FacetedProjectFrameworkImpl.java:234)
at org.eclipse.wst.common.project.facet.core.ProjectFacetsManager.getProjectFacet(ProjectFacetsManager.java:75)
at org.jboss.ide.eclipse.as.classpath.core.runtime.WebtoolsProjectJBossClasspathContainerInitializer.<clinit>(WebtoolsProjectJBossClasspathContainerInitializer.java:60)
... 66 more
> org.jboss.ide.eclipse.as.test unnecessarily requires org.eclipse.jpt.core
> -------------------------------------------------------------------------
>
> Key: JBIDE-8676
> URL: https://issues.jboss.org/browse/JBIDE-8676
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JBossAS
> Affects Versions: 3.3.0.M1
> Reporter: Snjezana Peco
> Assignee: Snjezana Peco
> Fix For: 3.3.0.M1
>
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list