[jbosstools-issues] [JBoss JIRA] (JBIDE-13929) Cannot install m2 facet when jst.seam facet is missing

Rastislav Wagner (JIRA) jira-events at lists.jboss.org
Mon Apr 15 09:44:53 EDT 2013


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

Rastislav Wagner edited comment on JBIDE-13929 at 4/15/13 9:43 AM:
-------------------------------------------------------------------

Thanks for the steps, Fred.

However if I do as you wrote I still get can't enable M2 Facet.

Here's the exception

{code}
java.lang.IllegalArgumentException: Project facet jst.seam 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.tools.maven.core.internal.project.facet.MavenFacetInstallDelegate.execute(MavenFacetInstallDelegate.java:115)
	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:2345)
	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:2345)
	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)
{code}

                
      was (Author: rawagner):
    Thanks for the steps, Fred.

However if I do as you wrote I still get can't enable M2 Facet.

Here's the exception

                  
> Cannot install m2 facet when jst.seam facet is missing
> ------------------------------------------------------
>
>                 Key: JBIDE-13929
>                 URL: https://issues.jboss.org/browse/JBIDE-13929
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: maven
>    Affects Versions: 4.0.0.Final
>            Reporter: Rob Cernich
>            Assignee: Fred Bricon
>             Fix For: 4.1.0.Alpha2
>
>
> An IllegalArgumentException is produced when loading MavenFacetInstallPage when the jst.seam facet is missing.  One should be able to install the m2 facet regardless of whether or not seam tooling is installed.
> This is the line where the exception is thrown:
> public static final IProjectFacet SEAM_FACET = ProjectFacetsManager.getProjectFacet(SEAM_FACET_ID);
> This should be moved to a static init block to either catch the exception or check to see if the facet is defined first.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list