- This topic has 12 replies, 3 voices, and was last updated 20 years, 3 months ago by Tulsi Rai.
-
AuthorPosts
-
Tulsi RaiMemberHi Folks,
I am a new to MyEclipse. I donwloaded its 3.x version as I had Eclipse 3.0, installed successfully and created a jsp page works fine. I wanted to try its debuggin features so i set a break point in java class that is accessed by the jsp page.when I try to step over the break poing, it gives me the following exceptionSource not found for JspServletWrapper.service(HttpServletRequest, HttpServletResponse, boolean) line: 348
any idea? do i need to configure anything there?
Also, there there’re two options:
Window/Preferences/MyEclipse/Editors/JSP/HTML Editor1) Compile JSPs
2) Don’t compile JSPsAlso, How can I enable “External Preview”?
I would appreciate if someone could help me with it asap.
thanks.
Scott AndersonParticipantCan 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.
Tulsi RaiMemberThanks for the quick reply:
Here’re what I have:Operating System: Windows XP
Eclipse zip : eclipse-SDK-3.0-win32
Plugins : tomcatPluginV3
MyEclipse Version : EnterpriseWorkbenchInstaller_030800Beta2
JDK Version : j2sdk1.4.2_05
When the exception occured: when i was doing the tutorial provided by eclipse-http://www.myeclipseide.com/images/tutorials/webprojectdemo.htmWhen i was towards the end of the tutorial following the debugging steps, using the break point in a java class
there’s no log file under (<workspace>/.metadata/.log)
i don’t have any application server in use right not.i hope this would help me to resolve my problem.
Also could you please tell me how do make “External Preview” enabled?
thanks.
Riyad KallaMembertulsirai,
You mention “tomcat plugin v3” above, is that what you are using to launch your application server? You need to launch Tomcat with MyEclipse (in debug mode) to get proper debugging working.Also if you set a breakpoint IN your jsp page, and run your app, is the breakpoint hit? I’m actually not surprised at all by the error message in your first message, if you step too much in your JSP page, you’ll eventually step back into the servlet container, in which case, its expected you wouldn’t have source code mounted for that (Tomcat) in your project.
Tulsi RaiMemberYes, I use that plugin to start Tomcat 5 from Eclipse. What i am doing here is that followin the tutorial
i have a java class “HelloWorld” with “getHelloWorld” method and a jsp file “helloWorld.jsp”. helloWorld.jsp accesses HelloWorld class. I have a break point inside getHelloWorld method and it does get hit when I run helloWorld.jsp and goes to the Debugger Perspective. In the debugger perspective, the controls of course stops at the break point and when i hit step over icon, it takes me to the “_jspService” tab and gives me the following message:Source not found for helloWorld_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 31
So any idea and help?
Alos, I have not been able to enable the “Extern Preview” in the ecplipse.
thanks.
Riyad KallaMemberYes, I use that plugin to start Tomcat 5 from Eclipse.
Can you start it with our server connector instead and give the same sequence of events a try? Maybe you have already, I just wasn’t clear from your message.
Source not found for helloWorld_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 31
Ahhh this is different. This can be related to you using another plugin to run Tomcat instead of ours. Make sure to setup your connector preferences correctly under Window > Preferences > MyEclipse > App Server > Tomcat, and make sure to set it to run in Debug mode (default). Also you will need to setup a JDK (not a JRE) to run the application server.
Alos, I have not been able to enable the “Extern Preview” in the ecplipse.
Sorry I missed this question in the first post, its under Window > Show Views > Other… > MyEclipse > Web Browser.
Tulsi RaiMember@support-rkalla wrote:
Yes, I use that plugin to start Tomcat 5 from Eclipse.
Can you start it with our server connector instead and give the same sequence of events a try? Maybe you have already, I just wasn’t clear from your message.
What’s your server connector? are you saying I should try your connector to run Tomcat instead of tomcat plugin? is it something i can download and replaced the tomcat plugin?
Source not found for helloWorld_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 31
Ahhh this is different. This can be related to you using another plugin to run Tomcat instead of ours. Make sure to setup your connector preferences correctly under Window > Preferences > MyEclipse > App Server > Tomcat, and make sure to set it to run in Debug mode (default). Also you will need to setup a JDK (not a JRE) to run the application server.
I do have the exact setting as you mentioned above, but the probme does not seem to go away.
Riyad KallaMembertulsirai,
When you listed this in your post above:Plugins : tomcatPluginV3
I got confused and thought you were using a 3rd party plugin to start/run Tomcat (like Sysdeo Tomcat Plugin or something), but now that you said this:
I do have the exact setting as you mentioned above, but the probme does not seem to go away.
I’m guessing that you are already using our start/stop server functionality, am I correct? When you run the server are you doing somthing like this:
I just tried your scenario and was able to reproduce the behavior, I will check with the team if this is expected behavior or not. As a worka round you can set breakpoints in your JSP page, and when the breakpoint in the Class file is hit, you can just hit “Continue” and it will break again inside of the JSP page, where you can step through the JSP page line by line.
Tulsi RaiMemberHi Riyad,
I’m guessing that you are already using our start/stop server functionality, am I correct? When you run the server are you doing somthing like this:
I just tried your scenario and was able to reproduce the behavior, I will check with the team if this is expected behavior or not. As a worka round you can set breakpoints in your JSP page, and when the breakpoint in the Class file is hit, you can just hit “Continue” and it will break again inside of the JSP page, where you can step through the JSP page line by line.
Yes, you’re right.That’s how I launch Tomcat. Please let me know if you figured this out. Also, do you have any tutorial or help for configuring Hibernate with Eclipse?
thanks.
Scott AndersonParticipanttulsirai,
You mention that you’re using JDK 1.4.2_05 above. Can you please verify that this is what is both configured in the Tomcat 5 connector at Window > Preferences > Application Servers > Tomcat 5 > JDK *and* is used to launch Eclipse by looking at Help > About Eclipse Platform > Configuration Details…
Tulsi RaiMemberScott,
@support-scott wrote:
tulsirai,
You mention that you’re using JDK 1.4.2_05 above. Can you please verify that this is what is both configured in the Tomcat 5 connector at Window > Preferences > Application Servers > Tomcat 5 > JDK *and* is used to launch Eclipse by looking at Help > About Eclipse Platform > Configuration Details…
Here’re what have:
*** Date: 7/29/04 3:35 PM *** Platform Details: *** System properties: awt.toolkit=sun.awt.windows.WToolkit eclipse.application=org.eclipse.ui.ide.workbench eclipse.buildId=I200406251208 eclipse.commands=-os win32 -ws win32 -arch x86 -showsplash C:\eclipse\eclipse.exe -showsplash 600 -exitdata C:\eclipse\eclipse.exe -exitdata fe0_38 -vm C:\WINDOWS\system32\javaw.exe eclipse.product=org.eclipse.platform.ide eclipse.startTime=1091130946286 eclipse.vm=C:\WINDOWS\system32\javaw.exe eclipse.vmargs=-cp C:\eclipse\startup.jar org.eclipse.core.launcher.Main eof=eof file.encoding=Cp1252 file.encoding.pkg=sun.io file.separator=\ java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.awt.printerjob=sun.awt.windows.WPrinterJob java.class.path=C:\eclipse\startup.jar java.class.version=48.0 java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\endorsed java.ext.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\ext java.home=C:\Program Files\Java\j2re1.4.2_05 java.io.tmpdir=C:\DOCUME~1\Mystique\LOCALS~1\Temp\ java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\System32;C:\WINDOWS;D:\oracle\ora9\bin;D:\oracle\ora9\Apache\Perl\5.00503\bin\mswin32-x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\apache2\bin;C:\apache2\perl\bin;C:\apache2\php\bin;C:\apache2\mysql\bin;C:\apache2\opssl\bin;C:\apache2\python\bin;C:\apache2\tcl\bin;C:\wsdk_v51\bin;C:\wsdk_v51\appserver\bin;C:\wsdk_v51\appserver\java\bin;\C:\wsdk_v51\appserver\java\jre\bin;C:\jakarta-tomcat-5.0.25\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version=1.4.2_05-b04 java.specification.name=Java Platform API Specification java.specification.vendor=Sun Microsystems Inc. java.specification.version=1.4 java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory java.vendor=Sun Microsystems Inc. java.vendor.url=http://java.sun.com/ java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi java.version=1.4.2_05 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) Client VM java.vm.specification.name=Java Virtual Machine Specification java.vm.specification.vendor=Sun Microsystems Inc. java.vm.specification.version=1.0 java.vm.vendor=Sun Microsystems Inc. java.vm.version=1.4.2_05-b04 line.separator= org.eclipse.jdt.debug.ui.debuggerActive=false org.eclipse.jdt.debug.ui.scrapbookActive=false org.osgi.framework.executionenvironment= org.osgi.framework.language=en org.osgi.framework.os.name=WindowsXP org.osgi.framework.os.version=5.1 org.osgi.framework.processor=x86 org.osgi.framework.vendor=Eclipse org.osgi.framework.version=1.2.0 org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl os.arch=x86 os.name=Windows XP os.version=5.1 osgi.arch=x86 osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start osgi.bundles.defaultStartLevel=4 osgi.bundlestore=c:\eclipse\configuration\org.eclipse.osgi\bundles osgi.configuration.area=file:/c:/eclipse/configuration/ osgi.framework=file:/c:/eclipse/plugins/org.eclipse.osgi_3.0.0/ osgi.framework.beginningstartlevel=1 osgi.framework.version=3.0.0 osgi.frameworkClassPath=core.jar, console.jar, osgi.jar, resolver.jar, defaultAdaptor.jar, eclipseAdaptor.jar osgi.install.area=file:/c:/eclipse/ osgi.instance.area=file:/D:/Eclipse3/eclipse/workspace/ osgi.logfile=D:\Eclipse3\eclipse\workspace\.metadata\.log osgi.manifest.cache=c:\eclipse\configuration\org.eclipse.osgi\manifests osgi.nl=en_US osgi.os=win32 osgi.splashLocation=c:\eclipse\plugins\org.eclipse.platform_3.0.0\splash.bmp osgi.splashPath=platform:/base/plugins/org.eclipse.platform osgi.ws=win32 path.separator=; sun.arch.data.model=32 sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_05\classes sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_05\bin sun.cpu.endian=little sun.cpu.isalist=pentium i486 i386 sun.io.unicode.encoding=UnicodeLittle sun.java2d.fontpath= sun.net.client.defaultConnectTimeout=60000 sun.net.client.defaultReadTimeout=60000 sun.os.patch.level=Service Pack 1 user.country=US user.dir=C:\eclipse user.home=C:\Documents and Settings\Mystique user.language=en user.name=Mystique user.timezone=America/Los_Angeles user.variant= vendor=Apache Software Foundation vendor-url=http://xml.apache.org/xalan-j version=2.4.1
Let me know if these information is helpful and if you need any other information.
thanks
Scott AndersonParticipantTulsurai,
We’re reimplementing the JSP debugging and source lookup functionality for release 3.8 GA which should resolve this issue.
Sorry for the inconvenience.
Tulsi RaiMember@support-scott wrote:
Tulsurai,
We’re reimplementing the JSP debugging and source lookup functionality for release 3.8 GA which should resolve this issue.
Sorry for the inconvenience.No problem and thanks for your help. Waiting for that release.
-
AuthorPosts