For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 21 years ago by
Riyad Kalla.
-
AuthorPosts
-
mmannion_edjMemberI have an existing project created in another IDE that I’ve ported to MyEclipse. It has a WEB-INF/struts-config.xml, but the editor complains it was not a Struts app. When I Choose MyEclipse > Add Struts Capabilities the config window never shows. Is there another way to sync this into MyEclipse?
May 26, 2005 at 12:34 pm #230232
Riyad KallaMemberYou are doing the right thing (by adding Struts capabilities) but I something is going on. Check your log file for exceptions (<workspace dir>\.metadata\.log) also can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
AND please tell me the layout of your project, be sure to wrap it in code or quote blocks (using buttons below) so the indentation is maintained.
May 26, 2005 at 3:27 pm #230251
mmannion_edjMemberWinXP sp1
Eclipse Version: 3.1.0 Build id: 200412162000
MyEclipse Version: 3.8.4
Eclipse was freshly install for MyEclipse. Also includes Magic Draw plug-in.
(7) org.eclipse.pde.*
JDK for both Eclipse and app server: JDK 1.4.2_03
BEA Weblogic App Server 8.1 sp3Project layout:
Presentation .myeclipse classes diagrams dist jsp lib properties com [company] [application] src com [company] [application] tlds WEB-INF1) Copied existing project directory (originally built in JBuilder) into c:\Program Files\eclipse\workspace\{project}
2) File > New Project > Java > Java Project
3) tried to open WEB-INF\struts-config.xml
4) Error: “Cannot open default editor on struts-config.xml. Project ‘Presentation’ is not configured as a MyEclipse Web-Struts Project…”
5) Right-click on project > MyEclipse > Add Struts Capabilities…
6) window does not launch, error in log:!MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 2005-05-26 15:15:54.645 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at com.genuitec.eclipse.struts.wizards.NewStrutsSupportWizardPage.initWebAppControl(Unknown Source) at com.genuitec.eclipse.struts.wizards.NewStrutsSupportWizardPage.createWebappControls(Unknown Source) at com.genuitec.eclipse.struts.wizards.NewStrutsSupportWizardPage.createControl(Unknown Source) at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:179) at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:605) at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:496) at org.eclipse.jface.window.Window.create(Window.java:375) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:983) at org.eclipse.jface.window.Window.open(Window.java:685) at com.genuitec.eclipse.struts.action.AddStrutsCapabilitiesActionDelegate.basicRun(Unknown Source) at com.genuitec.eclipse.struts.action.AddStrutsCapabilitiesActionDelegate.run(Unknown Source) at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:234) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:555) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:505) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:419) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2803) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2448) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1569) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1540) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:285) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:220) 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:185) at org.eclipse.core.launcher.Main.run(Main.java:710) at org.eclipse.core.launcher.Main.main(Main.java:694)May 26, 2005 at 4:02 pm #230255
Riyad KallaMemberOk few things:
Eclipse Version: 3.1.0 Build id: 200412162000
What M-build of Eclipse is this? I’m going to go out on a limb here and say it was M2 or M3 which is not compatiable with our last 2 releases of Beta MyEclipse.
MyEclipse Version: 3.8.4
Please tell me the version off of the Window > Prefernces > MyEclipse menu.
Project layout:
This project is not in the necessary layout for MyEclipse to process it correctly, this is problem #1. I would highly suggest you reorganize this project as follows (and this isn’t just for MyEclipse, but just for better general project organization)
Presentation
.myeclipse
diagrams
dist
properties (SOURCE FOLDER)
com
[company]
[application]
src (SOURCE FOLDER)
com
[company]
[application]
jsp (WEBROOT FOLDER)
WEB-INF
classes (OUTPUT FOLDER)
lib
tldsWhat you could do is simply create a new WebProject (File > New > Project > J2EE > Web Project) and then add Struts Capabilities to it. THEN you can drag-and-drop (copy) the resources from your current project, into that new project in the order and layout I mentioned above until you have the project all assembled.
-
AuthorPosts
