- This topic has 18 replies, 5 voices, and was last updated 18 years, 4 months ago by Cameron Lauseng.
-
AuthorPosts
-
Edward J. NewtonMemberAs the subject states I can’t create a working web app that uses the JDK1.4/Servlet 2.4/Struts 1.1 specs. I can, however, create one that uses JDK1.3/Servlet 2.3/Struts 1.1.
I can create one of each but only the 1.3/2.3/1.1 app will run ‘out-of-the-box’. The 1.4/2.4/1.1 app will fail with this error message:
Cannot find ActionMappings or ActionFormBeans collection
I googled the heck out of it and found many possible problems and solutions but none of them worked for me. Is there an inherent problem with the 1.4/2.4/1.1 combination under MyEclipse 3.8.1/Eclipse 3.0.1?
I made no hand edits. I added one form with six fields (3 text; 1 password; 2 select) by using the context menues available by right clicking on the struts-config.xml object in the ‘Outline’ window in the MyEclipes perspective. Here are the struts-config and web.xml files as generated:
struts-config.xml:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.1//EN” “http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”>
<struts-config>
<data-sources />
<form-beans >
<form-bean name=”barForm” type=”com.acme.foo.struts.form.BarForm” /></form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute=”barForm”
input=”/bar.jsp”
name=”barForm”
path=”/bar”
scope=”request”
type=”com.acme.foo.struts.action.BarAction”>
<forward name=”success” path=”/barSuccess.jsp” />
</action></action-mappings>
<controller bufferSize=”4096″ debug=”0″ />
<message-resources parameter=”com.acme.foo.struts.ApplicationResources” />
</struts-config>web.xml:
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>Here’s the stacktrace I receive when I browse http://myserver:port/X/Foo/bar.jsp:
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at jrun__bar2ejsp8._jspService(jrun__bar2ejsp8.java:57)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /bar.jsp:11
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:384)
at jrun__bar2ejsp8._jspService(jrun__bar2ejsp8.java:360)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)Again, when I select JDK1.3/Servlet 2.3 and Struts 1.1, this very application runs immediately. Any ideas about this problem would be appreciated. Thanks.
Riyad KallaMemberIs there an inherent problem with the 1.4/2.4/1.1 combination under MyEclipse 3.8.1/Eclipse 3.0.1?
Not that we are aware of, the Struts tutorial we just completed actually uses this combination.
Can you export this project to a zip file and email it to support@genuitec.com with a reference to this thread and ATTN: Riyad so I can look at it?
Riyad KallaMemberOk got the project, here are a few notes:
1) I imported it and immediately deployed it to Tomcat 5.0.28
2) I went to http://localhost:8080/Foo, and got a dir listing, so I clicked bar.jsp
3) I got an exception about the reset/validate methods, this is default MyEclipse impl for form beans to throw exceptions until you implement them (or tell the wizard not to generate them at all)
4) I removed the validate/reset methods from the BarForm.java file so I don’t have to mess with them
5) I restated the app server (Tomcat doesn’t implement the ‘delete method’ feature of hotswap, so hotswap fails)
6) I hit refresh, the page full of form values popup, I leave everything blank and hit submit
7) I get an exception because, again, of the default generate execute method in the action throws an exception until you implement it, so I am going to go change the implementation of BarAction.java’s execute method to look like this:public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { BarForm barForm = (BarForm) form; return mapping.findForward("success"); }
8) I hit save and restart the app server just to make sure everything is kosher (normall you can just let Tomcat reload the class)
9) I go back to the bar.jsp page, leave everything blank and hit Submit
10) And I correctly end up at barSuccess.jsp:This a struts page.
So the bottom line is that your project is fine, you just need to implement those methods, you might try a brand new install of Tomcat 5.0.28 to minimize any app server polution that could have taken place. Also when you originally posted:
Here’s the stacktrace I receive when I browse http://myserver:port/X/Foo/bar.jsp:
That confused me because I have no idea what “/X” is here… it should just be: “http://localhost:8080/Foo/bar.jsp”, but I figured it was a mistype so I ignored it, but you might want to double check that.
Ronald van KuijkMemberRiyad,
I’ve seen this once on systems where a commons-*.jar (don’t know which) was missing. maybe that could be the cause of his problem.
Riyad KallaMemberRonald excellent point, ejnewto are all the libs where they should be? (commons-collections)
Edward J. NewtonMemberSorry for the late reply. rkalla, reference your reply posted Oct 26, 2004 – 05:24 AM:
When I create a JDK1.3/Servlet 2.3 and Struts 1.1 web app, and browse to bar.jsp, I get the unimplemented methods exception as expected, but I don’t get that far with a JDK1.4/Servlet2.4/Struts1.1 app.
Re your reply posted Oct 26, 2004 – 01:38 PM:
Yes the commons-*.jar files are all present.
I’m using jrun instead of tomcat, though.
Riyad KallaMemberDid you follow all the steps in my post? It took me a while to put that together, and it was not reproducable on my end.
Edward J. NewtonMemberI’ll have to install tomcat, but using jrun, I could only get to step 2 before it broke.
Riyad KallaMemberIf you don’t mind just grabbing the Tomcat zip and unzipping it then setting it up, then walking throuhg those steps.
This might be a JRun configuration issue, in which case I can’t help.
umberspMemberI have the same problem.
Well, actually, the first problem is the fact that when I create a JSP with Struts 1.1 capabilities the taglib definitions reference TLD’s which (a) exist outside my project and (b) don’t exist at all:
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean” prefix=”bean” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-html” prefix=”html” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-logic” prefix=”logic” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-tiles” prefix=”tiles” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-template” prefix=”template” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-nested” prefix=”nested” %>when they should (I think) be:
<%@ taglib uri=”/WEB-INF/struts-bean.tld” prefix=”bean” %>
<%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html” %>
<%@ taglib uri=”/WEB-INF/struts-logic.tld” prefix=”logic” %>
<%@ taglib uri=”/WEB-INF/struts-tiles.tld” prefix=”tiles” %>
<%@ taglib uri=”/WEB-INF/struts-template.tld” prefix=”template” %>
<%@ taglib uri=”/WEB-INF/struts-nested.tld” prefix=”nested” %>Since this is something I (apparently) can’t change it makes the wizard-driven creation of JSP’s almost useless – or at the very least I have to go back in and change these tag defs by hand every time.
Also, the xmlns attributes in the web.xml and application.xml files are not recognised by either Oracle 9iAS or Tomcat so the EAR file will not deploy correctly. Oh, and the application.xml editor fails completely with “unable to create part:”.
That aside, I’ve checked over my Struts app as rigorously as I know how and still can’t see why I’m getting the “Cannot find ActionMappings or ActionFormBeans collection” error. On the other hand, if I create a struts app by hand, all works fine in the same environments.
I am using eclipse 3.01 and myEclipse 3.8.4 (downloaded today for evaluation). I love eclipse, I’ve been using it for some time, but not impressed with myEclipse at all because of the above.
Riyad KallaMemberWell, actually, the first problem is the fact that when I create a JSP with Struts 1.1 capabilities the taglib definitions reference TLD’s which (a) exist outside my project and (b) don’t exist at all:
They are correct, please read this: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251
Also, the xmlns attributes in the web.xml and application.xml files are not recognised by either Oracle 9iAS or Tomcat
Please post the contents of web.xml you are getting, they work fine for other users.
Oh, and the application.xml editor fails completely with “unable to create part:”.
Make sure you are running the correct version of MyEclipse with your Eclipse distro (sometimes we have two releases for different Eclipse platforms, like now with 3.0 and 3.1)
Also restart Eclipse with the -clean option to let it rebuild the plugin cache, this can help AND make sure you aren’t using the Eclipse RCP/JDT or Platform install, but instead the entire SDK download from Eclipse. This will also cause the ‘cannot create part’ problem. If all this fails, please paste the contents of your log file here for me (workspace dir\.metadata\.log)
“Cannot find ActionMappings or ActionFormBeans collection” error.
What is giving you this error? The designer? The editor? Is your struts.jar file in your Java Build Path under Libraries? Does it contain the ActionMappings class?
but not impressed with myEclipse at all because of the above.
Shipping a plugin ontop of a platform can be tricky in that sometimes the out-of-box experience requires some massaging, but once it is setup I promise you it is smooth sailing with lots of nice features. Hang in there with us and we’ll get it fixed up for you.
umberspMemberThanks, I’ll take a look at the taglibs issue this morning and see if I can resolve it.
These problems show up when I: create a new Enterprise Application and associated web project, add Struts capabilities to the web project, then add a form, action & jsp using the struts config editor. (in other words, a basic strust app created as much as possible with the wizards). The web.xml I get is:
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>I’ll check over the server config today and see what may be causing the problem here.
I’m using eclipse 3.0.1 build 200409161125 along with MyEclipse 3.8.4 (for Eclipse 3.0). AFAIK it’s the full SDK build but I’ll double-check that as well today.
The error in the log related to the “Cannot create part” error is:
!ENTRY org.eclipse.core.runtime 4 2 Jan 31, 2005 08:30:34.692
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
!STACK 0
java.lang.NullPointerException
at com.objectlearn.jdt.j2ee.ear.editor.EarEditor.createPage0(EarEditor.java:139)
at com.objectlearn.jdt.j2ee.ear.editor.EarEditor.createPages(EarEditor.java:167)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:187)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:133)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:205)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:939)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)
at org.eclipse.ui.internal.EditorStack.setSelection(EditorStack.java:196)
at org.eclipse.ui.internal.EditorStack.setVisibleEditor(EditorStack.java:200)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:338)
at org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAreaHelper.java:268)
at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:694)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:683)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:779)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:582)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:570)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2244)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2177)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2169)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2156)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2151)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:299)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:137)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:110)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:150)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:212)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:188)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:289)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:490)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:429)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:427)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:635)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:731)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:211)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:206)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:238)
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:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)And finally, the ActionMappings/ActionFormBeans error is what comes back in the browser when I try to go to the form jsp created in the test project. In full, it is:
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
void org.apache.struts.taglib.html.FormTag.lookup()
FormTag.java:798
int org.apache.struts.taglib.html.FormTag.doStartTag()
FormTag.java:506
void _form._test._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
[/form/test.jsp]
_test.java:57
[SRC:/form/test.jsp:11]
void com.orionserver[Oracle9iAS (9.0.2.1.0) Containers for J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
OrionHttpJspPage.java:56
void oracle.jsp.runtimev2.JspPageTable.compileAndServe(oracle.jsp.runtimev2.JspPageInfo, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspPageTable.java:508
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:255
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:407
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:328
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpServlet.java:336
void com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:696
void com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:281
boolean com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:766
void com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:259
void com.evermind[Oracle9iAS (9.0.2.1.0) Containers for J2EE].server.http.HttpRequestHandler.run()
HttpRequestHandler.java:107
void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
PooledExecutor.java:802
void java.lang.Thread.run()
Thread.java:484I’ve checked around the groups and made sure that the struts.jar & commons jars are in place, the struts config file is correct, etc as specified at http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html (and a few other places). And all seems OK.
You’re right about plugins being highly dependant on their environment and I appreciate the help in getting this sorted. I’m evaluating MyEclipse for a project at work and, if it proves useful, it could well become a corporate standard along with Eclipse. But, I have to prove its usefulness and ease-of-use to a sekptical development manager who believes all code should be edited with an ascii editor and compiled from the command line 😯
Riyad KallaMember!ENTRY org.eclipse.core.runtime 4 2 Jan 31, 2005 08:30:34.692
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
!STACK 0
java.lang.NullPointerException
at com.objectlearn.jdt.j2ee.ear.editor.EarEditor.createPage0(EarEditor.java:139)
at com.objectlearn.jdt.j2ee.ear.editor.EarEditor.createPages(EarEditor.java:167)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:187)This cannot create part issue seems not to be our editor, it looks like you have Lomboz installed as well and it is the default JSP editor. Make sure you are opening the JSP files with our editor: Right Click on File > Open With > MyEclipse JSP Editor.
And finally, the ActionMappings/ActionFormBeans error is what comes back in the browser when I try to go to the form jsp created in the test project. In full, it is:
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
void org.apache.struts.taglib.html.FormTag.lookup()
FormTag.java:798
int org.apache.struts.taglib.html.FormTag.doStartTag()
FormTag.java:506
void _form._test._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
[/form/test.jsp]
_test.java:57Hmm, very strange. It looks like it might be a classpath issue. If this problem persists (After your investigation into the other things) please zip this web proejct up, and email it to support@genuitec.com with a reference to this thread and ATTN Riyad and I’ll have a look at it and see what is going on.
umberspMemberThis cannot create part issue seems not to be our editor, it looks like you have Lomboz installed as well and it is the default JSP editor. Make sure you are opening the JSP files with our editor: Right Click on File > Open With > MyEclipse JSP Editor.
Slight misunderstanding here, it’s the application.xml file I’m trying to edit, not a JSP. Does myEclipse have an EAR editor? Hmm, now you mention it, maybe not – my mistake 😕 . I do have Lomboz installed (or did until about 5 mins ago).
I’ll follow up the missing classes issue and if I can’t resolve it by the end of the day I’ll zip the projects up and send them to you.
Many thanks.
Riyad KallaMemberSlight misunderstanding here, it’s the application.xml file I’m trying to edit, not a JSP. Does myEclipse have an EAR editor?
If you are double clicking the XMl file, make sure it is opening with the “MyEclipse XML Editor”. If you have created a new Enterprise Project, I believe by using the add/remove modules dialog it will edit the application.xml file for you.
I’ll follow up the missing classes issue and if I can’t resolve it by the end of the day I’ll zip the projects up and send them to you.
Good deal, I hope you are able to nail it down.
-
AuthorPosts