- This topic has 5 replies, 2 voices, and was last updated 21 years, 2 months ago by caron.
-
AuthorPosts
-
caronMemberI’m trying myEclipse 2.61 with eclipse 2.11 and tomcat 4.1.24 undeer jdk 1.4.1_02. The only other plug-in is the clearcase plug-in from rational.
To try jsp debugging, I’ve created a web project and created a unique page as follow :
<%@ page language=”java” import=”java.lang.*,java.util.*” %><%
String path = request.getContextPath();
String basePath = “http://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<base href=”<%=basePath%>”><title>My JSP ‘MyJsp.jsp’ starting page</title>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″><meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”><!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
</head><body>
<%= new Date().toString() %>
</body>
</html>and put a breakpoint on line :
<%= new Date().toString() %>compile, deploy an use IE to access tomcat.
on breakpoint reach, eclipse open a new editor window with the following :
Source not found for MyJsp_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 29Any idea ?
support-michaelKeymasterThe issue is that Tomcat 4.1.x does not support JSR045 which the spec that defines how appservers support debugging of translated sources such as JSPs. Thus Tomcat4 does not support line number mapping information between MyJsp.jsp and its MyJSP_jsp.jspService java file. Consider using Tomcat5 for this purpose. We have had good luck with it.
Michael
MyEclipse Support
caronMemberFollowing your advice, I’ve downloaded tomcat 5 (engine 5.0.9) and configure connector for tomcat 5.
deploy and run server : I saw every tomcat thread running in debug view but nothing more. Trying to access the application via IE as usual doens-t work, as if tomcat wasn’t started (or as if I try to access it by a wrong port).
Did I miss something to start tomcat 5 from myEclipse ?
support-michaelKeymaster1) You mention that you can not access Tomcat. Assuming that you are using the default Tomcat port can you view Tomcat default application with your browser when Tomcat is running, i.e., http://localhost:8080/ or http://127.0.0.1:8080/?
2) Are there any exceptions or warnings in the Eclipse console when Tomcat is started up?
3) If #1 is yes, please inspect your <tomcat home>/webapp directory for the deployed form of your project. Does it exist as expected (packaged or exploded)? If not try undeploying and redeploying and repeat step-3.
Michael
MyEclipse Support
caronMemberNo, tomcat’s default application can not be accessed. Tomcat seems to be no fully initialized. And no messages are printed on console.
The web ppas is deployed because if I start tomcat manually (with the statup.bat) everythings works (i.e:can accessed though a browser).
Here is what thread are started (eclipse debug view) :
System Thread[finalizer]
System Thread [Reference [Handler]
Thread [main]
System Thread [Signal dispatcher]
Thread [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
25 x Thraed [Http8080-Processor]
Thread [Http8080-Monitor]
4 x Thread [TP-Processor]
Thread [TP-Monitor]All are marked as running
caronMemberIt works now.
It seems some environment variables where conflicting or something like that.
Thanks for help.
-
AuthorPosts