- This topic has 9 replies, 4 voices, and was last updated 19 years, 7 months ago by
Riyad Kalla.
-
AuthorPosts
-
MikeScagMemberI’m a newb, please excuse if I’m asking a question that’s been answered a thousand times. I’m trying do debug a basic jsp ( the one that’s created by default when you create a new jsp file). The environment is :
Windows XP SP2
Eclipse 3.1.0 Build id: I20050627-1435
MyEclipse installed from : EnterpriseWorkbenchInstaller_4.0GA_E3.1.exe
Tomcat 5.5.9
Java : build 1.5.0_02-b09I can create the MyExlipse web project, and I can start / stop tomcat properly. Running the jsp goes off without a hitch. If I debug with no breakpoints, everything is also fine. However, when I set a breakpoint in the jsp and debug, I get an error message :
Unable to create this part due to an internal error. Reason for the failure: Platform issue: this file cannot be opened in its current context. The text editor will be used instead.
Another window is opened at this point with a more or less non-interactive view of the jsp file. I’m unable to view any valiable values, but I can click the ‘continue’ button and allow the program to continue execution normally.
Context settings in the server.xml file appear to be getting set by myexlipse properly.
So, to put it bluntly, WTF? Or (a bit more respectfully) , what have I missed?
I’ve read a couple of threads that indicate this is some kind of fringe issue, and won’t be fixed any time soon. Please please please don’t make me go back to jdeveloper where I can actually debug a jsp without issues.
Riyad KallaMemberMike,
This error is indicative usually of an install problem, but your list above looks kosher. When you right click on your JSP page and go to Open With, what is checked? Try and select MYEclipse JSP Designer and then open the page, did it open OK? The problem is not the debugging, the problem is when your breakpoint is hit, ME is trying to open your editor for you and is barfing for some reason, so we’ll figure out why.
liushanlinMemberwhen I right click on JSP page, the MyEclipse JSP Designer is checked.
in _jspService tab:
Source not found for itemSelection.jsp line: 29
thanks in advance
Riyad KallaMemberliushanlin,
If you are having trouble with something please provide as much information as Mike did, simply highjacking his thread won’t get your question answered any faster.
swamiatedaptiveMemberI am getting the same exception when trying to debug JSPs.
Any resolution for this issue?
The break point is hit but the text editor opens up.
But I could open the JSP files using JSP designer.
I am using Eclipse
Version: 3.1.1
Build id: M20050929-0840
MyEclipse
Version: 4.0.1
Build id: 20050930-4.0.1-GAMyEclipse config details:
** Date: Tue Oct 18 15:05:24 EDT 2005*** System properties:
OS=Windows2000
OS version=5.0
Java version=1.4.2_07*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.2 GA
Build id: 20051010-4.0.2-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.1
Build id: M20050929-0840Eclipse Platform
Version: 3.1.1
Build id: M20050929-0840Eclipse RCP
Version: 3.1.1
Build id: M20050929-0840Eclipse Java Development Tools
Version: 3.1.1
Build id: M20050929-0840Eclipse Plug-in Development Environment
Version: 3.1.1
Build id: M20050929-0840Eclipse Project SDK
Version: 3.1.1
Build id: M20050929-0840Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Eclipse3.1.1\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
538_4c
-vm
C:\j2sdk1.4.2_07\jre\bin\javaw.exeThanks in advance for any help.
Swami.org.eclipse.ui.PartInitException: Platform issue: this file cannot be opened in its current context. The text editor will be used instead.
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.isAcceptableInput(HTMLMultiPageEditorPart.java:967)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.init(HTMLMultiPageEditorPart.java:879)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2362)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:228
Riyad KallaMemberSwami,
What kind of project are you working with? A Java Project, Simple Project, Web Project? If it’s a web project, please tell me what settings you have fro the Project Properties > MyEclipse-Web settings, also tell me where the JSP is that you are trying to debug (give the project path)
swamiatedaptiveMemberHi,
Project is a Java project.
I have deployed my application in the exploded ear format in weblogic and
remotely attach to it. I do not use MyEclipse’s web project.
Swami.
Riyad KallaMemberSwami,
That is likely the problem, what directory are your treating as your webroot? Where is your WEB-INF directory in respect to your project root? Where are your JSP pages? We don’t garuntee full functionality of our tools in non-MyEclipse Project projects, however we have spent quite a bit of time trying to make them work for the most part for folks maintaining legacy apps that cannot change the structure.
swamiatedaptiveMemberHi,
I would appreciate if you can provide any guidelines how to go about doing that?
Thanks,
Swami.
Riyad KallaMemberSwami,
Doing what? You didn’t answer any of my questions. -
AuthorPosts