[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1339) "Path for project must have only one segment" when EAR project set is in a subdirectory

Rob Stryker (JIRA) jira-events at lists.jboss.org
Tue Nov 20 12:08:12 EST 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1339?page=comments#action_12388490 ] 
            
Rob Stryker commented on JBIDE-1339:
------------------------------------

will look into this use-case.  For now, I'd suggest using working sets as a workaround. 

> "Path for project must have only one segment" when EAR project set is in a subdirectory
> ---------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1339
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1339
>             Project: JBoss Tools
>          Issue Type: Bug
>    Affects Versions: 2.0.0.CR1
>         Environment: Windows XP, Seam 2.0, RHDS 1.0 CR1
>            Reporter: Marcus Adair
>         Assigned To: Rob Stryker
>             Fix For: 2.0.0.GA
>
>
> It appears that if I group the project directories for an EAR-style Seam project under a subdirectory of my workspace, Eclipse gives the error below.
> So, my workspace is C:\proj
> I generated a new Seam 2.0 project, creating:
> C:\proj\newproj
> C:\proj\newproj-ear
> C:\proj\newproj-ejb
> C:\proj\newproj-test
> I then put them in another dir (I've got a lot of projects):
> C:\proj\newproj\newproj
> C:\proj\newproj\newproj-ear
> C:\proj\newproj\newproj-ejb
> C:\proj\newproj\newproj-test
> Then I imported them and got the error that follows. Note however that the code/debug cycle and deployment to the application server does work. Presumably the impact occurs at time of packing (unconfirmed). 
> Putting the project back into C:\proj resolves this issue, however importing from other directories without copying the files into the workspace is a pretty common way to work AFAIK.
> Warning
> Mon Nov 19 14:05:50 MST 2007
> Path for project must have only one segment.
> java.lang.IllegalArgumentException: Path for project must have only one segment.
> 	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
> 	at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:165)
> 	at org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspacePreferenceManager.getResource(WorkspacePreferenceManager.java:54)
> 	at org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspacePreferenceManager.isBuilderEnabled(WorkspacePreferenceManager.java:62)
> 	at org.jboss.ide.eclipse.archives.core.project.ArchivesBuilder.build(ArchivesBuilder.java:66)
> 	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
> 	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
> 	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
> 	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
> 	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list