[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9228) Bad static constructor code in WebtoolsProjectJBossClasspathContainerInitializer

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Wed Jun 22 12:28:23 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610410#comment-12610410 ] 

Xavier Coulon commented on JBIDE-9228:
--------------------------------------

Here are the features I add at that time:

Context and Dependency Injection Tools	1.2.0.v20110618-0231-H1-M2
    EclEmma Java Code Coverage	1.5.3
    Eclipse Checkstyle Plug-in	5.3.0.201012121300
    Eclipse Faceted Project Framework	3.3.0.v201102150115-377DF8s7355397B4B9B
    Eclipse Faceted Project Framework JDT Enablement	3.3.0.v201102200555-377DF8s73543E5I5768
    Eclipse for RCP and RAP Developers	1.4.0.20110526-1025
    Eclipse Java EE Developer Tools	3.3.0.v201102200555-7b7II1GFSK2WH9RM7NtDsHY9Rz0Tn
    Eclipse Java Web Developer Tools	3.3.0.v201103310009-7F7AFO-C25TohFunnht_0yz0s92kZCb4ufuz0TLG
    Eclipse JDT Plug-in Developer Resources	3.7.0.v20110520-0800-7z8gFchFMTdFYKuJsMLpUla9B15B
    Eclipse PDE Plug-in Developer Resources	3.7.0.v20110504-0800-7b7qFVpFEx2XnmYpokAUkS9
    Eclipse Web Developer Tools	3.3.0.v201102200555-7O7IFhJEMiB5vNMYta56_GonLeahqrwnYjv2mBz-
    FindBugs Feature	1.3.9.20090821
    Forge Tools	1.0.0.v20110618-0133-H2-M2
    JBossAS Tools	2.3.0.v20110618-0158-H1-M2
    M2E - Extensions Development Support (Incubation, Optional)	0.13.0.201105260005
    M2E - Maven Integration for Eclipse (Incubation)	0.13.0.201105261543
    M2E - slf4j over logback logging (Incubation, Optional)	0.13.0.201105261543
    Maven Integration for WTP (Optional)	0.13.0.201105121337
    SWTBot for Eclipse Forms Testing (incubation)	2.0.4.20110304_0338-e5aff47-dev-e36
    SWTBot for Eclipse Testing (incubation)	2.0.4.20110304_0338-e5aff47-dev-e36
    SWTBot for SWT Testing (incubation)	2.0.4.20110304_0338-e5aff47-dev-e36
    SWTBot IDE Features (incubation)	2.0.4.20110304_0338-e5aff47-dev-e36
    SWTBot JUnit 4.x Headless launchers for Eclipse (incubation)	2.0.4.20110304_0338-e5aff47-dev-e36
    WST Server UI	3.3.0.v201102200555-7B77FGMAtJcexENNgECGJAP775
    WST Server User Documentation	3.3.0.v20110512-20DF7w312215222664
    WST Web Core	3.3.0.v201102200555-7E7EFMRAJun8Zsu50NSIthQz0YNBBGnk
    WST Web Services Core	3.3.0.v201102200555-7L7RFi7FGtGd-thnz0ysWug2766
    WST Web Services UI	3.3.0.v201102200555-7I7AFeREtEoVEjj76K0kpf98puxOLDNv169v6_A3
    WST Web Services User Documentation	3.1.300.v201102200555-44FR79oB5855Q8IBD7G

> Bad static constructor code in WebtoolsProjectJBossClasspathContainerInitializer
> --------------------------------------------------------------------------------
>
>                 Key: JBIDE-9228
>                 URL: https://issues.jboss.org/browse/JBIDE-9228
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>    Affects Versions: 3.3.0.M2
>            Reporter: Max Rydahl Andersen
>            Assignee: Rob Stryker
>            Priority: Critical
>             Fix For: 3.3.0.M3
>
>
> xcoulon got the following exception when running with the plugins installed that AS requires
> Problem is most likely that the class constructor code in (the static blocks) contains:
> public static final IProjectFacet WEB_FACET = ProjectFacetsManager.getProjectFacet(FACET_WEB);
>         public static final IProjectFacet EJB_FACET = ProjectFacetsManager.getProjectFacet(FACET_EJB);
>         public static final IProjectFacet EAR_FACET = ProjectFacetsManager.getProjectFacet(FACET_EAR);
>         public static final IProjectFacet UTILITY_FACET = ProjectFacetsManager.getProjectFacet(FACET_UTILITY);
>         public static final IProjectFacet CONNECTOR_FACET = ProjectFacetsManager.getProjectFacet(FACET_CONNECTOR);
>         public static final IProjectFacet APP_CLIENT_FACET = ProjectFacetsManager.getProjectFacet(FACET_APP_CLIENT);
>         public static final IProjectFacet JSF_FACET = ProjectFacetsManager.getProjectFacet(FACET_JSF);
>         public static final IProjectFacet JPA_FACET = ProjectFacetsManager.getProjectFacet(FACET_JPA);
> which my guess says will fail if those facet's are not declared/available.
> These facets should be declared as dependencies or the code fixed to handle them not being available.
>  
> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.ide.eclipse.as.classpath.core.runtime.WebtoolsProjectJBossClasspathContainerInitializer
> 	at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage.performOk(FacetsPropertyPage.java:289)
> 	at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:964)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> 	at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
> 	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:447)
> 	at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
> 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4163)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> 	at org.eclipse.jface.window.Window.open(Window.java:801)
> 	at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
> 	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
> 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4163)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
> 	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.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.NoClassDefFoundError: Could not initialize class org.jboss.ide.eclipse.as.classpath.core.runtime.WebtoolsProjectJBossClasspathContainerInitializer
> 	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.common.project.facet.core.ClasspathHelper.addClasspathEntries(ClasspathHelper.java:131)
> 	at org.eclipse.jst.j2ee.web.project.facet.WebFacetInstallDelegate.execute(WebFacetInstallDelegate.java:169)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
> 	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
> 	at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$4.run(FacetsPropertyPage.java:232)
> 	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> 	at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$5.run(FacetsPropertyPage.java:246)
> 	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

--
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