facebook

Cannot add WebCapabilitie when using multiple src folders

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #210961 Reply

    I have two java source folders (src and test) and when I try to add MyEclipse WebProject Capabilities nothing happens.
    In the log file (.log) I get the following message:

    !ENTRY com.genuitec.eclipse.j2eedt.core 1 1 Jul 27, 2004 16:13:26.959
    !MESSAGE WebProject Capabilities Error:
    !STACK 1
    Java Model Exception: Java Model Status [Source folder ‘test’ in project myuser cannot output to library ‘web/WEB-INF/classes’]
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2650)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2615)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.�(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.convert(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionWizard.performFinish(Unknown Source)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
    at org.eclipse.jface.window.Window.open(Window.java:648)
    at com.genuitec.eclipse.j2eedt.ui.action.WebProjectConversionActionDelegate.basicRun(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.action.WebProjectConversionActionDelegate.run(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:266)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
    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:324)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
    at org.eclipse.core.launcher.Main.run(Main.java:644)
    at org.eclipse.core.launcher.Main.main(Main.java:628)
    !SUBENTRY 1 org.eclipse.jdt.core 4 964 Jul 27, 2004 16:13:26.959
    !MESSAGE Source folder ‘test’ in project myuser cannot output to library ‘web/WEB-INF/classes’

    If I remove the “test” directory from the Java Build Path it works!

    #210964

    s isss misssing

    #210965

    Scott Anderson
    Participant

    Florian,

    Thank for posting this. I’ve entered it as a bug into our internal tracking system so that we can address it in the next release. As a workaround, I’d suggest configuring the project so that only src is a source project, then adding back all other source projects while setting their output directories to WEB-INF/classes. That should get you the multiple-source web project that you want in the short term.

    #212053

    Scott Anderson
    Participant

    This will be fixed in 3.8 GA.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Cannot add WebCapabilitie when using multiple src folders

You must be logged in to post in the forum log in