- This topic has 33 replies, 4 voices, and was last updated 16 years, 9 months ago by
Loyal Water.
-
AuthorPosts
-
chitian5057MemberHi Nipun,
Thanks you very much for giving me the steps. I followed it and now bumped it another probelm.
I tried to access the index.jsp page, but got the following error500 Servlet Exception
C:\resin-3.0.25\webapps\SimpleJSPExample\WEB-INF\work\_jsp\_index__jsp.java:10:
cannot access com.myeclipseide.examples.jsp.MyJavaClass
bad class file: C:\resin-3.0.25\webapps\SimpleJSPExample\WEB-INF\classes\com\myeclipseide\examples\jsp\MyJavaClass.class
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import com.myeclipseide.examples.jsp.MyJavaClass;
^
1 errorResin-3.0.25 (built Wed, 05 Dec 2007 08:19:34 PST)
Do I need to recomplie the java file or somehting? If yes, how do I recompile the java file?
thanks for all your precious time,
-Tian
chitian5057MemberHi Nipun,
I can debug the SimpleJSPxample/index.jsp now and also found the difference between my porject and this example.
Basically the way I enu my application is different. Not I use the same way to run it, I bumped into another error. It says
There are no configured servers that support the application’s deployment type.
Anyhow I created a new ‘Web Porject’ for this again and tried to use
right click on thr project -> MyEclipse -> Add and Remove Project Deployments -> Add
to add a server. Probelm is Resin is not in the server list. It’s certain Resin is ‘Enabled’.
The server list for SimpleJSPExample shows ‘Resin 2.x, Resin 3.x’ but in new web project i created, Resin is not in the list. It’s the same MyEclipse and both both project opened at the same time. Do you know why the Resin is not in the server list so i can add it as deployments?thank you,
-Tian
I tried to
Loyal WaterMemberTian,
When you switch to a new workspace, you will have to reconfigure the server. Just switch to a brand new workspace and not configure the Resin server. Don’t add any other server or plugin to MyEclipse. Now try restarting the server after configuring it. Are you able to open LocalHost ?If you still can see the Resin server in the list, I would suggest you go to http://www.poweredbypulse.com, grab the pulse launcher and use that to launch Eclipse. Now add the MyEclipse profile to it and try the same steps here.
chitian5057MemberHi Nipun,
My MyEclipse fianlly stops at the breakpoints in my JSP files. Basically the settings for the web project was different from the standard way. The Location, Context root URL, root folder etc. Because I have an existing source branch, the settings for those values are different. After I changed them based on the SimpleJSPExample, MyEclipse finally stop at my JSP breakpoints.
Thank soooooo much for your help and yout time.
But I still have one last question about this (hope so :)). At the breakpoint, how do I check my variables in the JSP file? I noticed ‘Watch and ‘Inspect’ are not avaialble in the JSP debuigging. I looked into the ‘Variables’ in the Debug View, there are only three variables ‘This’, ‘arg0’ and ‘arg1’. Can’t find any my varibles in the JSP at all.
Even the demo JSP, ‘SimpleJSPExample’, has the same issue. I added one variable to the ‘SimpeJSPExample.jsp’ and tried to check its value in the ‘Variables’ in the Debug View but couldn’t find it.
Do you know what I might be missing?
thanks again,
-Tian
Loyal WaterMemberTian,
You should get to see you variable in the variable window. What variable have you placed the break point at? If you try stopping at the line after the breakpoint does the variable show up in the variable window?
chitian5057MemberHi Nipun,
I just added fewsimple statements in index.jsp in SimpleJSPExample project.
Somehting like
<h2>
Use this simple JSP page to
<%
String a = “Test “;
String b = “this!”;
String c = a + b;
System.out.println(” c=” + c);
%>
</h2>I set the breakpoint at the “String a” and then stepped down but couldn’t find any a, b or c values in the ‘Variables’ view.
-Tian
Loyal WaterMemberQuestion : Are you able to see the variables when you debug our project using MyEclipse Tomcat?
Loyal WaterMemberI just tried the scenario on resin and it looks like the debug information coming back from the resin vm isn’t providing more detail to our debugger. I have filed it for investigation. I’ll let you know when this gets rectified.
chitian5057MemberThanks so much, Nipun.
I tried Tomcat 5.5 and the variable values showed up correctly.But no luck for Resin 3.0.35 and Resin 3.1.6 (latest stable version), both are not showing variable values in MyEclips :(.
I was using the SimpleJSPExample project.
Again, thanks for your time. I really really appreciate it.
-Tian
Loyal WaterMemberYour welcome. I’ll keep you updated on this.
chitian5057MemberI’ll look forward to hearing from you.
-Tian
chitian5057MemberHi Nipun,
Any luck on this issue yet?
Everytime when I have to write print messages to debug my JSP files,
I come back to check if there’s any solution yet. My apology if I bother you too much.-Tian
Loyal WaterMemberTian,
I filed this issue for my dev team. I guess the team is tied up with the 6.5 GA release (scheduled to the released this month) so they might look at this after the release. I’ll let you know as soon as I get an update from them.
chitian5057MemberI undertsand and won’t ask again untill hearing from you.
Thanks,
-Tian
Loyal WaterMemberYour welcome.
-
AuthorPosts