当前位置: 代码迷 >> Java Web开发 >> 用Eclipse+MyEclipse+Tomcat 出现了一个我理解不了的怪现象
  详细解决方案

用Eclipse+MyEclipse+Tomcat 出现了一个我理解不了的怪现象

热度:366   发布时间:2006-06-29 07:37:04.0
用Eclipse+MyEclipse+Tomcat 出现了一个我理解不了的怪现象
就是下面的这个.jsp程序,我如果在MyEclipse里启动Tomcat服务,然后在Web Browser或者IE执行这个页面:http://localhost:8088/shop/reg.jsp;MyEclipse就会自动弹出一个消息框:This kind of launch is configured to open the Debug perspective when it suspends.Do you want to open the perspective now? 我选择Yes它就会打开Debug,但是页面始终停在一半,根本打不开。

接着,我将MyEclipse里的Tomcat服务Stop掉,然后开始-》程序-》Apache Tomcat 5.0 -》Start Tomcat ,然后在IE地址栏中:
http://localhost:8088/shop/reg.jsp;页面就能正常显示了,这是怎么回事呀??



因为我通常都是在在MyEclipse里启动Tomcat服务,来执行.jsp文件,所以如果总是出现这种现象,而又不清楚问题出现在哪儿,会很影响学习。

如果谁知道的说一下吧,不胜感激!!
搜索更多相关主题的帖子: Eclipse  Tomcat  现象  

----------------解决方案--------------------------------------------------------
没有遇到过,我都是用NETBEANS的
----------------解决方案--------------------------------------------------------
那你就用Eclipse+MyEclipse+Tomcat 试一下嘛,帮个忙!~

呵呵!

----------------解决方案--------------------------------------------------------

忘记把程序贴上来了:
<%@ page language="java" import="java.sql.*" %>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD><BODY bgColor=#ffffff leftMargin=0 topMargin=5 marginheight="5" marginwidth="5">
<table align="center" border="0" width="760" height="18" bgcolor="#3399FF" cellspacing="0">
<tr>
<td width="100%">
<p><a href="list_all_user.jsp">????</a> |
<a href="../book_store/index.jsp">????</a> |
<a href="../search/index.jsp">????</a> |
<a href="../book_store/all_category.jsp">????</a> |
<a href="../book_store/new_goods.jsp">????</a> |
<a href="../book_store/good_price.jsp">????</a> |
<a href="../book_store/short_goods.jsp">????</a> |
<a href="../book_store/shopcart.jsp" target="_blank">???</a> |
<a href="../book_store/order.jsp" target="_blank">??</a> |
<a href="forum/index.jsp" target="_blank">??</a> |
<a href="chat/index.jsp" target="_blank">???</a></td>
</tr>
</table>
<jsp:useBean id="clock" scope="page" class="hh.JspCalendar" type="hh.JspCalendar" /> <jsp:useBean id="workM" scope="page" class="hh.faq" />
<TABLE border=0 cellPadding=0 cellSpacing=0 width=760 align="center">
<TBODY>
<tr>
<td align="left" height=25>
<%if(session.getAttribute("username")!=null)
{
out.println(session.getAttribute("username"));
}
%> ?????<a href="../index.jsp">??</a> -&gt; ????
</td>
<td align="right"> <td align="right">
<font color="Red"><jsp:getProperty name="clock" property="year"/></font>?
<font color="Red"><jsp:getProperty name="clock" property="month"/></font>?
<font color="Red"><jsp:getProperty name="clock" property="dayOfMonth"/></font>?
??<font color="Blue"><b><jsp:getProperty name="clock" property="day"/></b></font>&nbsp;&nbsp;
</td>
<td>????? <jsp:getProperty name="clock" property="time"/>
</td></tr>
<TR bgColor=#3399ff>
<TD height=1 colspan="2"><IMG height=1 src="images/spacer.gif"
width=16></TD></TR>
<tr><td height=10 colspan="2"><IMG height=1 src="images/spacer.gif"
width=16></td></tr>
</TBODY></TABLE><table align="center" border="0" width="760" cellspacing="0" cellpadding="0" height="355">
<tr>
<td width="150" height="355" valign="top">
<table border="1" width="100%" cellspacing="0"cellpadding="0">
<tr>
<td width="100%" valign="top" style="border: 1 solid #3399FF">
<table border="0" width="100%" cellspacing="0">
<tr>
<td width="100%" bgcolor="#3399FF" height="18" align="center"><font color="#ffffff">????</font></td>
</tr>
<tr>
<td width="100%" height="23" align="center"><a href="login.jsp"><b>????</b></a> <a href="reg.jsp"><b>????</b></a></td>
</tr>
<tr>
<td width="100%" bgcolor="#3399FF" height="18" align="center"><font color="#ffffff">????</font></td>
</tr>
<tr>
<td width="100%">
<table border="0" width="98%" align="center" cellspacing="0">
<tr>
<td align="right" height="20" width="60%">?????</td>
<% int t_member;
t_member=0;
String strSQLmem="SELECT id FROM member";
ResultSet RSmem = workM.executeQuery(strSQLmem);
while(RSmem.next()){
t_member=t_member+1;
}
%>
<td align="left" width="40%"><%=t_member%></td>
</tr>
</table>
</td>
</tr>


</table> </td>
</tr>
</table>
</td>
<td width="10" height="100%"></td>
<td width="1" height="100%" bgcolor="#3399ff"></td>
<td width="10" height="100%"></td>
<td width="589" height="331" valign="top" background="images/bg1.gif">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="307">
<tr align=center>
<td width="100%" colspan="4" height="20" bgcolor="#3399ff">&nbsp;<font color="#ffffff">????????????????????</font>
</td>
</tr>

<tr>
<td width="100%" align="center" colspan="4" height="36"> ???????? </td>
</tr>
<form name="form1" method="post" action="reg_ok.jsp">
<tr>
<td align="right" ><b>?????</b></td>
<td >&nbsp;</td>
<td colspan="2" >
<input type="text" name="logname" value="wangxining">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="realname" value="wangwang">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="password" name="passwd1" value="blueriver">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="password" name="passwd2" value="blueriver">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="email" value="wangxining@263.net">
</td>
</tr>
<tr>
<td align="right"><b>?&nbsp;&nbsp;&nbsp;&nbsp;??</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="radio" name="Gender" value="0" checked>
?
<input type="radio" name="Gender" value="1">
? </td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="phone" value="">
</td>
</tr>
<tr>
<td align="right">???????</td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="problem" value="">
</td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="answer" value="">
</td>
</tr>
<tr>
<td align="right">???</td>
<td>&nbsp;</td>
<td colspan="2">
<select name="Province" size="1">
<option value="null" >???</option>
<option value="Beijing" >??</option>
<option value="Tianjin" >??</option>
<option value="Shanghai" >??</option>
<option value="Chongqing" >??</option>
<option value="Hebei" >??</option>
<option value="Henan" >??</option>
<option value="Heilongjiang">???</option>
<option value="Jinlin" >??</option>
<option value="Shenyang" >??</option>
<option value="Neimenggu" >???</option>
<option value="Hainan" >??</option>
<option value="Shanxi" >??</option>
<option value="Shanxi3" >??</option>
<option value="Shandong" >??</option>
<option value="Jiangsu" >??</option>
<option value="Zhejiang" >??</option>
<option value="Anhui" >??</option>
<option value="Jiangxi" >??</option>
<option value="Fujian" >??</option>
<option value="Gansu" >??</option>
<option value="Ningxia" >??</option>
<option value="Qinghai" >??</option>
<option value="Xinjiang" >??</option>
<option value="Hubei" >??</option>
<option value="Hunan" >??</option>
<option value="Guangxi" >??</option>
<option value="Sichuan" >??</option>
<option value="Guizhou" >??</option>
<option value="Yunnan" >??</option>
<option value="Xizang" >??</option>
<option value="Hongkong" >??</option>
<option value="Aomen" >??</option>
<option value="Taiwan" >??</option>
</select>
</td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<select name=education size=1>
<option value="null" selected>?? ...</option>
<option value="Below high school">??????</option>
<option value="high school/5-year college">??/??</option>
<option value="College/University">??/??</option>
<option value="Graduate and above">?????</option>
</select>
</td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="1@">
?????/???
&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="2@">
????? </td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="3@">
???????
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="4@">
???????</td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="5,">
??/??/??
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="6,">
???? </td>
</tr><tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="7,">
????
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="8,">
???? </td>
</tr><tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="9,">
????
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="10,">
???? </td>
</tr>
<tr>
<td align="right" valign="top">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<textarea name="selfintro" cols="40" rows="5">selddddddddd</textarea>
</td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td align="left" colspan="2">
<input type="button" value="???" onclick="sub()">
<input type="reset" value="??">
<script language="javascript">
function sub()
{
if(document.form1.logname.value=="")
{
window.alert("?????????");
window.form1.logname.focus();
return false;
}
if(document.form1.realname.value=="")
{
window.alert("????????");
window.form1.realname.focus();
return false;
}
if(document.form1.passwd1.value=="")
{
window.alert("??????");
window.form1.passwd1.focus();
return false;
}
if(document.form1.passwd1.value!=document.form1.passwd2.value)
{
window.alert("??????");
window.form1.passwd2.focus();
return false;
}
if(document.form1.email.value=="")
{
window.alert("?????E_mail?");
window.form1.email.focus();
return false;
}
document.form1.submit();
}
</script>
</td>
</tr>
</form>

</table>


</td>
</tr>
</table><hr align="center" color="#3399ff" width="760" >
<table align="center" border="0" width="760">
<tr><td width="100%" height="18" align="center"><P class="foot">&copy; 2001 ???<a href="Bluerivermailto:blueriver_cn@sina.com">Blueriver</a>
</P>
<P class="foot">?????JSP?????????
</P>
</td>
</tr>
<tr><td>

</tr>

</table>
</body>
</html>


----------------解决方案--------------------------------------------------------
哭死我了....
以后想让人帮你,最好把所有可能需要的东西都提供给要帮助你的人。
因为需要帮助的人实在太多,如果每个人都像这样先让你“帮助”我们理解程序,然后在让我们帮助你,那是不可能的啦

当然啦,eclipse myeclipse这种大家都有的东西就不用你提供了。

----------------解决方案--------------------------------------------------------

那。。。那你到底是帮不帮我 呢?


----------------解决方案--------------------------------------------------------

把那个Tomcat 重装试试
大胆假设小心求证
我讲师教我们的经验


----------------解决方案--------------------------------------------------------
以下是引用Grace_TT在2006-6-29 10:46:00的发言:

那。。。那你到底是帮不帮我 呢?

我又不是这里的斑竹,打死我也不帮
----------------解决方案--------------------------------------------------------
你不是吗?
----------------解决方案--------------------------------------------------------

以下是引用神vLinux飘飘在2006-6-29 7:43:41的发言:
没有遇到过,我都是用NETBEANS的

我现在就在用netbeans,你觉得netbeans好用么?


----------------解决方案--------------------------------------------------------
  相关解决方案