- This topic has 11 replies, 2 voices, and was last updated 19 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
sbarlowMemberHi,
After purchasing and installing the MyEclipse plugin, anytime I try to open a JSP file which contains references to taglibs, my IDE hangs indefinitely. JSP files without taglib declarations open just fine.
<%@ 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://struts.apache.org/tags-logic" prefix="logic" %>
I thought it might have something to do with validation so I switched off all validation in the preferences section but the problem persists. It’s fairly awkward having to edit these files in another editor. MyEclipse seems to have taken valuable functionality away rather than help! Any suggestions on how to fix this?
Thanks a million,
Stuart.
Riyad KallaMemberStuart,
Something funky is going on, clearly we wouldn’t have much of a J2EE IDE if it couldn’t edit these pages 😉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.
TIP: Your log file is located at <worksapce dir>\.metadata\.log
sbarlowMemberWhat operating system and version are you running?
Microsoft Windows 2000
5.00.2195
Service Pack 3What Eclipse version and build id are you using?
Version: 3.1.0
Build id: I20050627-1435
The problem was also occuring with version 3.0.xWas Eclipse freshly installed for MyEclipse?
YesAre any other external plugins installed?
HTML Tidy
Omondo UML
IBM Rational ClearcaseHow many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
There are 4 directories (build_3.1.0, doc.user_3.1.0, junit.runtime_3.1.0, source_3.1.0) and 4 jars (core_3.1.0, runtime_3.1.0, ui_3.1.0, pde_3.1.0) that match.What MyEclipse version are you using?
3.9.211 depending on the feature list. Some features are listed as 3.9.210, and even 3.8. I thought I downloaded and installed v4.0 though. I have a myeclipse4.0 directory in my program files folder.What JDK version are you using to run Eclipse?
1.4.2_05What JDK version are you using to launch your application server?
1.4.2_05What steps did you take that resulted in the issue?
Nothing unusual. Fresh install of Eclipse 3.1 and plugins mentioned aboveWhat application server are you using?
Tomcat 5 and Jboss 3.2.7Are there any exceptions in the Eclipse log file?
No Exceptions. Messages though…!ENTRY org.eclipse.core.resources 2 10035 2005-08-02 12:52:14.35 !MESSAGE A workspace crash was detected. The previous session did not exit normally. !SESSION 2005-08-02 13:08:11.75 ------------------------------------------------ eclipse.buildId=I20050627-1435 java.version=1.4.2_05 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -clean -data C:\workspace !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.780 !MESSAGE Could not install bundle plugins/org.eclipse.draw2d_3.1.0.jar Bundle "org.eclipse.draw2d" version "3.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.draw2d_3.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.790 !MESSAGE Could not install bundle plugins/org.eclipse.emf.codegen.ecore_2.1.0.jar Bundle "org.eclipse.emf.codegen.ecore" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.codegen.ecore_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.800 !MESSAGE Could not install bundle plugins/org.eclipse.emf.codegen_2.1.0.jar Bundle "org.eclipse.emf.codegen" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.codegen_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.810 !MESSAGE Could not install bundle plugins/org.eclipse.emf.common_2.1.0.jar Bundle "org.eclipse.emf.common" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.common_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.830 !MESSAGE Could not install bundle plugins/org.eclipse.emf.ecore.xmi_2.1.0.jar Bundle "org.eclipse.emf.ecore.xmi" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.ecore.xmi_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.830 !MESSAGE Could not install bundle plugins/org.eclipse.emf.ecore_2.1.0.jar Bundle "org.eclipse.emf.ecore" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.ecore_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.830 !MESSAGE Could not install bundle plugins/org.eclipse.emf.edit.ui_2.1.0.jar Bundle "org.eclipse.emf.edit.ui" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.edit.ui_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.840 !MESSAGE Could not install bundle plugins/org.eclipse.emf.edit_2.1.0.jar Bundle "org.eclipse.emf.edit" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.edit_2.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:14.890 !MESSAGE Could not install bundle plugins/org.eclipse.gef_3.1.0.jar Bundle "org.eclipse.gef" version "3.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.gef_3.1.0/ !ENTRY org.eclipse.update.configurator 2005-08-02 13:08:15.121 !MESSAGE Could not install bundle plugins/org.eclipse.xsd_2.1.0.jar Bundle "org.eclipse.xsd" version "2.1.0" has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.xsd_2.1.0/
Riyad KallaMemberStuart,
I’d like to rule out a few things right off the bat, then if necessary have you send me this project to see what might be going on.What command line args do you use to run MyEclipse? We suggest using:
-vmargs -Xmx256mTry and open a problomatic JSP page, then comment out all the @taglib lines at the top, save it and reopen it with the JSP editor, did it work? Now close it and edit it again and add 1 JSP line, save reopen with the JSP editor. Did that work?
When the workbench freezes up, do you see any messages anywhere? Maybe down in the status bar? Do you see “Building workspace…” anywhere? If you fire up task manager, does the Eclipse java process take up any processor time? Is it pegging your CPU or just sitting there idle?
sbarlowMemberWhen running eclipse I specify the vm to use and also the location of the workspace:
“C:\Program Files\eclipse\eclipse.exe” -data C:\workspace -vm C:\bea\jdk142_05\jre\bin\javaw
eclipse.ini file looks like:
-vmargs -Xms256m -Xmx768m
I tried opening the file as suggested. It hangs with the @taglib lines in the file and opens OK with them gone. Not sure what you mean by “add 1 JSP line”. I tried to add a random bit of JSP (<% … %>) and reopened in Eclipse OK. But when I add in a single @taglib line and try to reopen, it hangs again.
When the workbench freezes, I see the windows busy hourglass icon and no new information messages in the status bar. What ever was in the status bar when I try to open the file, remains. I checked the processes and there’s no unusual increase in the CPU level for the two processes running (java.exe and javaw.exe). CPU time and mem usage remain static. If I switch applications away from Eclipse and try to go back again, it doesn’t appear.
Riyad KallaMemberOk 2 more suggestions just for sanity sake.
1) Download JDK 1.5_04 from Sun’s site, install it and use it as your -vm target in your shortcut for Eclipse.
2) Move your eclipse.ini file to your desktop, and temporarily add
-vmargs -Xms128m -Xmx256m
to the end of your MyEclipse shortcut, so the whole thing would look like:
"C:\Program Files\eclipse\eclipse.exe" -data C:\workspace -vm C:\jdk1.5.0_04\bin\javaw.exe -vmargs -Xms128m -Xmx256m
NOTE: For path-safety sake (no spaces) I am assuming you installed the JDK to C:\ instead of the new default of C:\Program Files that the installer suggests. If you do use Program Files please quote the path.
NOTE: I’d really like it if you could make your shortcut look identical to the one above (sans the path issue if you choose), same memory values, same javaw.exe and note I”m using the jdk\bin dir, not the jdk\jre\bin dir as your shortcut did.
I’d like to get you setup exactly as I am here, rule out every possibility. The fact that you are using the JDK that ships with your app server is in question, you are never sure if they are customized the JDK in any way. IBM is well known for doing thsi with their JDKs they ship with WebSphere; in that they are heavily engineered to work with the app server a certain way. So I tend to prefer “vanilla” installs of JDKs to run the IDE to rule out any weirdness… even soemthing as small as custom XML parsing libraries.
sbarlowMemberHi, I bet you thought I’d gone away!! I was away and busy with another project but I eventually found time today to get back to this issue and test the things you suggested. After making the changes you described, the problem still occurs. I tried to open a largish JSP file over five minutes ago but I still see the busy hourglass cursor when I swap back to Eclipse.
Riyad KallaMemberCan you send us the JSP or a small project that exhibits the problem so we have an exact replica to test against?
Also please check your log file: <Workspace dir>\.metadata\.log, see any exceptions near the bottom that might help us figure out what is going on?
sbarlowMemberHere’s the tail end of the .log file
!SESSION 2005-09-13 15:42:44.916 ———————————————–
eclipse.buildId=I20050627-1435
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_IE
Command-line arguments: -os win32 -ws win32 -arch x86 -data C:\workspace!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.95
!MESSAGE Could not install bundle plugins/org.eclipse.draw2d_3.1.0.jar Bundle “org.eclipse.draw2d” version “3.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.draw2d_3.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.105
!MESSAGE Could not install bundle plugins/org.eclipse.emf.codegen.ecore_2.1.0.jar Bundle “org.eclipse.emf.codegen.ecore” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.codegen.ecore_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.105
!MESSAGE Could not install bundle plugins/org.eclipse.emf.codegen_2.1.0.jar Bundle “org.eclipse.emf.codegen” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.codegen_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.115
!MESSAGE Could not install bundle plugins/org.eclipse.emf.common_2.1.0.jar Bundle “org.eclipse.emf.common” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.common_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.125
!MESSAGE Could not install bundle plugins/org.eclipse.emf.ecore.xmi_2.1.0.jar Bundle “org.eclipse.emf.ecore.xmi” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.ecore.xmi_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.125
!MESSAGE Could not install bundle plugins/org.eclipse.emf.ecore_2.1.0.jar Bundle “org.eclipse.emf.ecore” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.ecore_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.125
!MESSAGE Could not install bundle plugins/org.eclipse.emf.edit.ui_2.1.0.jar Bundle “org.eclipse.emf.edit.ui” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.edit.ui_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.135
!MESSAGE Could not install bundle plugins/org.eclipse.emf.edit_2.1.0.jar Bundle “org.eclipse.emf.edit” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.emf.edit_2.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.135
!MESSAGE Could not install bundle plugins/org.eclipse.gef_3.1.0.jar Bundle “org.eclipse.gef” version “3.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.gef_3.1.0/!ENTRY org.eclipse.update.configurator 2005-09-13 15:43:28.145
!MESSAGE Could not install bundle plugins/org.eclipse.xsd_2.1.0.jar Bundle “org.eclipse.xsd” version “2.1.0” has already been installed from: update@../MyEclipse4.0/eclipse/plugins/org.eclipse.xsd_2.1.0/!ENTRY org.eclipse.core.resources 2 10035 2005-09-13 15:43:30.719
!MESSAGE A workspace crash was detected. The previous session did not exit normally.
!SESSION 2005-09-13 15:56:31.237 ———————————————–
eclipse.buildId=I20050627-1435
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_IE
Command-line arguments: -os win32 -ws win32 -arch x86 -data C:\workspace!ENTRY org.eclipse.core.resources 2 10035 2005-09-13 15:56:40.479
!MESSAGE A workspace crash was detected. The previous session did not exit normally.!ENTRY com.rational.clearcase 4 0 2005-09-13 15:58:22.158
!MESSAGE Update Log file has XML formatting errors:SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found
!STACK 0
java.lang.ClassNotFoundException: org.apache.crimson.parser.XMLReaderImpl
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:189)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:150)
at com.rational.resourcemanagement.cmutil.UpdateViewFileReader.readUpdateViewLog(UpdateViewFileReader.java:35)
at com.rational.resourcemanagement.cmscc.SccImplementor.get(SccImplementor.java:563)
at com.rational.resourcemanagement.cmframework.CMOperations.get(CMOperations.java:264)
at com.rational.resourcemanagement.cmcommands.GetCommand$3.run(GetCommand.java:124)
at java.lang.Thread.run(Thread.java:595)Here’s the contents of a JSP file I tried to open and resulted in Eclipse hanging indefinitely:
<%@ page language="java"%> <%@ 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" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><bean:message key="abortRetryResPage.title" /></title> </head> <body> <DIV class="margin1"> <H1><bean:message key="abortRetryResPage.header" /></H1> <TABLE> <logic:present name="abortOrderIds"> <logic:notEmpty name="abortOrderIds"> <TR> <TD class="successmessage" colspan="2"><bean:message key="abortRetryResPage.abortSucessMsg" /></TD> </TR> <logic:iterate id="orderIds" name="abortOrderIds"> <TR><TD colspan="4"> <bean:write name="orderIds" /></TD></TR> </logic:iterate> </logic:notEmpty> </logic:present> <TR> <TD colspan="2"><BR></TD> </TR> <logic:present name="retryOrderIds"> <logic:notEmpty name="retryOrderIds"> <TR> <TD class="successmessage" colspan="2"><bean:message key="abortRetryResPage.retrySucessMsg" /></TD> </TR> <logic:iterate id="orderIds" name="retryOrderIds"> <TR><TD colspan="4"> <bean:write name="orderIds" /></TD></TR> </logic:iterate> </logic:notEmpty> </logic:present> <logic:present name="failedAbortOrderIds"> <logic:notEmpty name="failedAbortOrderIds"> <TR> <TD class="successmessage" colspan="2"><bean:message key="abortRetryResPage.abortFailureMsg" /></TD> </TR> <logic:iterate id="orderIds" name="failedAbortOrderIds"> <TR><TD colspan="4"> <bean:write name="orderIds" /></TD></TR> </logic:iterate> </logic:notEmpty> </logic:present> <TR> <TD colspan="2"><BR></TD> </TR> <logic:present name="failedRetryOrderIds"> <logic:notEmpty name="failedRetryOrderIds"> <TR> <TD class="successmessage" colspan="2"><bean:message key="abortRetryResPage.retryFailureMsg" /></TD> </TR> <logic:iterate id="orderIds" name="failedRetryOrderIds"> <TR><TD colspan="4"> <bean:write name="orderIds" /></TD></TR> </logic:iterate> </logic:notEmpty> </logic:present> </TABLE> </DIV> </body> </html>
Riyad KallaMemberThank you for the snippet, I pasted it into a new JSP file in a new Struts project and was able to open/design it fine. I would mention that I noticed some EFM/GEF (maybe JEM) conflicts in your log file, MyEclipse ships all these libs so you are encountering conflicts by having them installed separatly. I would also note that your ration plugin was throwing some exceptions as well, I’m going to estimate that there is some setup issue here that is causing the behavior. I would suggest a clean install of Eclipse 3.1 SDK (redownloaded) and MyEclipse 4.0 GA along side your current install, create a new workspace and use File > Import to pull in your projects, then try editing the file again, did it work?
sbarlowMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
-
AuthorPosts