[JBoss JIRA] Created: (JBIDE-1339) "Path for project must have only one segment" when EAR project set is in a subdirectory
by Marcus Adair (JIRA)
"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
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
16 years, 11 months
[JBoss JIRA] Created: (JBIDE-1199) WorkspaceChangeListern NPE's on resource delete
by Max Andersen (JIRA)
WorkspaceChangeListern NPE's on resource delete
-----------------------------------------------
Key: JBIDE-1199
URL: http://jira.jboss.com/jira/browse/JBIDE-1199
Project: JBoss Tools
Issue Type: Bug
Components: Archives
Affects Versions: 2.0.0.Beta4
Reporter: Max Andersen
Assigned To: Rob Stryker
Priority: Blocker
Fix For: 2.0.0.CR1
Create some projects/resources ...delete them and you get about a zillion of these:
java.lang.NullPointerException
at org.jboss.ide.eclipse.archives.core.WorkspaceChangeListener$1.visit(WorkspaceChangeListener.java:57)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
at org.jboss.ide.eclipse.archives.core.WorkspaceChangeListener.resourceChanged(WorkspaceChangeListener.java:55)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:282)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:276)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:311)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1018)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1806)
at org.eclipse.ui.ide.undo.AbstractWorkspaceOperation.execute(AbstractWorkspaceOperation.java:204)
at org.eclipse.ui.actions.DeleteResourceAction$4.run(DeleteResourceAction.java:533)
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
16 years, 11 months
[JBoss JIRA] Created: (JBIDE-1325) NullPointerException when trying to add new fileset to WAR package archive
by Rob Hasselbaum (JIRA)
NullPointerException when trying to add new fileset to WAR package archive
--------------------------------------------------------------------------
Key: JBIDE-1325
URL: http://jira.jboss.com/jira/browse/JBIDE-1325
Project: JBoss Tools
Issue Type: Bug
Components: Archives
Affects Versions: 2.0.0.CR1
Environment: Eclipse 3.3.0 on openSUSE 10.3 (Linux)
Reporter: Rob Hasselbaum
I'm trying to configure an Eclipse project for WAR deployment to JBoss AS. I go to the "Project Archives" view and create a new WAR configuration via the wizard. It shows up, no problem. Then I try to add a new fileset to the WAR by right-clicking on it and choosing "New Fileset". Nothing happens in the UI, and in the console, I can see a NullPointerException. Stack trace given below:
java.lang.NullPointerException
at org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.createDirectoryScanner(DirectoryScannerFactory.java:43)
at org.jboss.ide.eclipse.archives.core.model.ArchivesModelCore.findMatchingPaths(ArchivesModelCore.java:95)
at org.jboss.ide.eclipse.archives.ui.wizards.pages.FilesetInfoWizardPage.changePreview(FilesetInfoWizardPage.java:305)
at org.jboss.ide.eclipse.archives.ui.wizards.pages.FilesetInfoWizardPage.createControl(FilesetInfoWizardPage.java:86)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:543)
at org.eclipse.jface.window.Window.create(Window.java:426)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
at org.eclipse.jface.window.Window.open(Window.java:785)
at org.jboss.ide.eclipse.archives.ui.views.ArchivesMenuHandler.createFileset(ArchivesMenuHandler.java:327)
at org.jboss.ide.eclipse.archives.ui.views.ArchivesMenuHandler.access$11(ArchivesMenuHandler.java:322)
at org.jboss.ide.eclipse.archives.ui.views.ArchivesMenuHandler$3.run(ArchivesMenuHandler.java:168)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
--
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
16 years, 11 months
[JBoss JIRA] Created: (JBIDE-1345) Problems with Seam project imported from .WAR file
by Aliaksey Nis (JIRA)
Problems with Seam project imported from .WAR file
--------------------------------------------------
Key: JBIDE-1345
URL: http://jira.jboss.com/jira/browse/JBIDE-1345
Project: JBoss Tools
Issue Type: Bug
Affects Versions: 2.0.0.CR1
Environment: WindowsXP SP2
rhds-win32-1.0.0.CR1.jar
Red Hat Developer Studio
Version: 1.0.0 BETA2
Build: Cr1-20071115
JDK 1.5_08
Reporter: Aliaksey Nis
1. Create default Seam project.
2. Export it to .WAR file (using or Main menu > Export (With source option enabled) or Project Archives View (send to compressed folder)).
3. Delete seam project from workspace (w/o test part).
4. Import this seam project from .WAR file (Main menu > Import > Web > Import from .WAR file).
5. Select imported project - right click >Jboss tools > Add JSF capabilities, press Finish.
6. Ctrl+N > Seam > Create new seam action.
Try to select imported project. It is unavailable. Warning shows up about bad Seam project configuration.
Comparing imported project with basically created:
1. Lost hibernate properties file.
Project properties > Hibernate Settings > Enable Hibernate
Try to make Hibernate console configuration. No property file available(hibernate-console.properties).
2. Lost seam.
Project properties > Seam Settings > Enable Seam support (Seam 1.2AP).
Goto Project properties > Project Facets
At basic project there:
Web module - 2.5
Java - 5.0
JSF - 1.2
Seam - 1.2
At imported project:
Web Module 2.4
Java - 6.0
When i try to change settings warning shows up - "Cannot change version of project facet Dynamic Web vodule to 2.5".
So, imported Seam project broken.
In addition, during those operations tons of NPE's appears, related to validation of seam project. As i understand Alexey Kazakov , those NPE's can be related to JBIDE-1334.
P.S. Does Export to War file support Seam projects? Or it is "normal" beheviour.
--
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
16 years, 11 months