facebook

autocomplete for custom taglib not working.

💡
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 IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #217038 Reply

    jus
    Member

    I just upgraded to 3.8.2 and the autocomplete for tablib does not work anymore.

    Our directory structure is as follows:

    project_root
    + src
    + applicationEar
    + webApp

    our web.xml which is in /src/applicationEar/webApp/WEB-INF has the following entry:

    <taglib>
    <taglib-uri>ui</taglib-uri>
    <taglib-location>
    /WEB-INF/tld/com-ui.tld
    </taglib-location>
    </taglib>

    autocomplete does not work in the JSP when I use this:

    <%@ taglib uri=”ui” prefix=”ui” %>

    but works when I change it to:
    <%@ taglib uri=”/src/applicationEar/webApp/WEB-INF/tld/com-ui.tld” prefix=”ui” %>

    this used to work in version 2. Any ideas?

    #217042

    Riyad Kalla
    Member

    What is your webroot set to?

    #217142

    jus
    Member

    There is no webroot set. This project is not set up as a web project — nor is the WebProject capability added to it. However this same directory structure worked fine in the previous version. Does autocomplete of taglibs not work anymore without creating a web project? I have also attempted to add WebProject capability to the project by setting the webroot to /src/applicationEar/webApp. That did not seem to work at all. Maybe MyEclipse does not like the fact that we have subfolders under /src/applicationEar set as a source folder?

    #217146

    Riyad Kalla
    Member

    1) Taglibs still work in Java projects, but its VERY picky about how you have your app setup, in your case, it won’t work.
    2) Please add Web Caps again, your webroot should be fine, what is your Java /src set to?

    #217151

    jus
    Member

    1) Adding Web Caps does not seem to work for me. MyEclipse doesn’t seem to like having /src/applicationEar/webApp set as the web root. I set the web root to the above path. Web Context Root is “/” Create Web.xml unchecked. Then when I click finish, the workspace gets rebuilt, META-INF gets created in the webApp folder BUT, the Add MyEclipse Web Capabilities dialog box is still on top and did not close. Something tells me an exception occured, was caught and ignored by MyEclipse. The only way for me to get rid of the dialog box is to “X out” or hit cancel. When I check the properties of the project there is no WebProject — so it would seem that the process did not complete properly. NOTE, when I retry (the workspace does not get rebuilt) I just see a quick UI repaint, I think the progress dialog box showed and then hid itself in a blink of an eye, but the Add MyEclipse Web Capabilities still hangs around.

    2) we have several java sources, i.e.
    /src/applicationEar/ejb
    /src/applicationEar/common
    /src/applicationEar/junit
    /src/applicationEar/webApp/WEB-INF/src
    /src/applicationEar/webApp/WEB-INF/classes
    /src/applicationEar/webApp/WEB-INF/lib
    etc…

    #217155

    Riyad Kalla
    Member

    1) Can you check your log file when this happens? (workspace dir)\.metadata\.log and paste the exception here for us to analyze?

    2) those should all be fine… lets figure out what the exception is and see if we can’t get this fixed up for you.

    #217161

    jus
    Member

    Here is the stack trace:

    !ENTRY com.genuitec.eclipse.j2eedt.core 1 1 Oct 07, 2004 11:31:01.513
    !MESSAGE WebProject Capabilities Error:
    !STACK 1
    Java Model Exception: Java Model Status [Source folder ‘src/planningEar/ejb’ in project planning6.0 cannot output to library ‘src/planningEar/webApp/WEB-INF/classes’]
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2658)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2623)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.basicConvert(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.convert(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:397)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)
    !SUBENTRY 1 org.eclipse.jdt.core 4 964 Oct 07, 2004 11:31:01.523
    !MESSAGE Source folder ‘src/planningEar/ejb’ in project planning6.0 cannot output to library ‘src/planningEar/webApp/WEB-INF/classes’

    !ENTRY com.genuitec.eclipse.j2eedt.core 1 1 Oct 07, 2004 11:31:01.553
    !MESSAGE Error
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:397)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)
    Caused by: Java Model Exception: Java Model Status [Source folder ‘src/planningEar/ejb’ in project planning6.0 cannot output to library ‘src/planningEar/webApp/WEB-INF/classes’]
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2658)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2623)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.basicConvert(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.convert(Unknown Source)
    … 41 more
    Root exception:
    Java Model Exception: Java Model Status [Source folder ‘src/planningEar/ejb’ in project planning6.0 cannot output to library ‘src/planningEar/webApp/WEB-INF/classes’]
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2658)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2623)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.basicConvert(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.builder.WebProjectConverter.convert(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:397)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)

    #217162

    Riyad Kalla
    Member

    Why is this the case?

    Source folder ‘src/planningEar/ejb’ in project planning6.0 cannot output to library ‘src/planningEar/webApp/WEB-INF/classes’

    Is this project under funky source control? On a network drive? Do you have read access? What happens when you clean/rebuild the project without adding web caps? Can you open the navigator and see class files generated in the src/planningEar/webApp/WEB-INF/classes directory? Should you set a different output dir for that source directory? Does it not exist?

    #217172

    jus
    Member

    we are using CVS. Local C drive. Full access. When I clean/rebuild the project without adding web caps, there are no class files generated in src/planningEar/webApp/WEB-INF/classes. I expect to see that since the output path is set to build/eclipse.

    MyEclipse seem to override this setting? This folder exists, we have files in there that is under CVS.

    #217179

    Riyad Kalla
    Member

    Navigate to Project Properties > Java Build Path > “Source” tab.

    At the bottom of this panel do you have “Allow output folders for source folders” checked? If so, uncheck it. Also, what is your output dir set to? MyEclipse will try and make your output dir: WebRoot/WEB-INF/classes which is inline with web spec, but I believe making it something else should still work fine.

    #217182

    jus
    Member

    “Allow output folders for source folders” has always been unchecked.
    output dir is set to build/eclipse.

    but MyEclipse still outputs to webApp/WEB-INF/classes.

    #217186

    Riyad Kalla
    Member

    Just to clarify (I’m asking someone else to look into this with me) you have never gotten the Web Caps dialog to properly disappear because of this issue, right?

    #217188

    jus
    Member

    That is correct. I have never gotten Web Caps to work if I specify src/planningEar/webApp as the web root. It seem to cause the exception that I posted.

    #217191

    Scott Anderson
    Participant

    Source folder ‘src/planningEar/ejb’ in project planning6.0 cannot output to library ‘src/planningEar/webApp/WEB-INF/classes’

    Compiling one source folder is trying to place it’s output under another source folder and this simply isn’t going to work. As a result, placing the web root under the Java source tree simply isn’t supported because the output directory that needs to be specified for all the source folders is <webroot>/WEB-INF/classes in order for deployment and packaging to function properly and that directory can’t be anywhere under a source root or it creates a circular dependency.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: autocomplete for custom taglib not working.

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