java.lang.IllegalArgumentException: Path for project must have only one segment.

JBoss Issue Tracker | Marcus Adair | 9 years ago
  1. 0

    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)

    JBoss Issue Tracker | 9 years ago | Marcus Adair
    java.lang.IllegalArgumentException: Path for project must have only one segment.
  2. 0

    [JUnit] exception opening launch dialog on junit config

    Eclipse Bugzilla | 10 years ago | Michael_Rennie
    java.lang.IllegalArgumentException: Path for project must have only one segment.
  3. 0

    Wrap JAR as OSGi Bundle Project fails on junit-dep-4.10.jar

    GitHub | 4 years ago | BryanHunt
    java.lang.IllegalArgumentException: Path for project must have only one segment.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ubuntu: Configuring Xdebug (PHP) for Eclipse 3.2

    Stack Overflow | 7 years ago | Pavan
    java.lang.IllegalArgumentException: Path for project must have only one segment.

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Path for project must have only one segment.

      at org.eclipse.core.runtime.Assert.isLegal()
    2. Eclipse Core
      Assert.isLegal
      1. org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
      1 frame
    3. Core Resource Management
      WorkspaceRoot.getProject
      1. org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:165)
      1 frame
    4. org.jboss.ide
      ArchivesBuilder.build
      1. org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspacePreferenceManager.getResource(WorkspacePreferenceManager.java:54)
      2. org.jboss.ide.eclipse.archives.core.model.other.internal.WorkspacePreferenceManager.isBuilderEnabled(WorkspacePreferenceManager.java:62)
      3. org.jboss.ide.eclipse.archives.core.project.ArchivesBuilder.build(ArchivesBuilder.java:66)
      3 frames
    5. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
      1 frame
    6. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      1 frame
    7. Core Resource Management
      BuildManager$1.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
      3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
      3 frames
    8. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      1 frame
    9. Core Resource Management
      AutoBuildJob.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
      2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
      3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
      4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
      5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
      5 frames
    10. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame