Patrick_DK(疾风摩郎) ( ) : 错误信息为:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__hi_45_bean.java:87: cannot resolve symbol probably occurred due to an error in /hi-bean.jsp line 6: <jsp:useBean id="helloBean" scope="session" class="helloWorld" />
如果我把CLASS路径设置为:helloWorld 那么错误信息为:错误信息为:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__hi_45_bean.java:87: cannot resolve symbol probably occurred due to an error in /hi-bean.jsp line 6: <jsp:useBean id="helloBean" scope="session" class="helloWorld" />如果我设为:test.helloworld 干脆就是:Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.5.1 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.
路徑錯誤
應該是
E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\test\helloWorld.class
樓上是筆誤
probably occurred due to an error in /hi-bean.jsp line 6:
<jsp:useBean id="helloBean" scope="session" class="helloWorld" />
E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes\test\下
应该是路径错误。把报错贴出来看看。
ps:jsp文件中title标签后半部分左边那“<”有错。
我是把JSP文件存在却省的路径下:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp然后呢,在 这个却省的路径下的WIN-INF下建了classes/test 把JAVABEAN存在这个目录下了,环境变量我也加进去了,用JAVAC编译也通过了,也就是不行!!谁有做好的程序给我看一下吧,我真是没辙了,看来这分工作保不住了。哎
那么错误信息为:错误信息为:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__hi_45_bean.java:87: cannot resolve symbol
probably occurred due to an error in /hi-bean.jsp line 6:
<jsp:useBean id="helloBean" scope="session" class="helloWorld" />如果我设为:test.helloworld 干脆就是:Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
这可怎么办啊
取代<%= helloBean.getHi() %>试试
\config\mydomain\applications\DefaultWebApp\hello.jsp
--------------
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
hello
</title>
</head>
<jsp:useBean id="bean0" scope="session" class="ttt.ttt" /><body>
<h1>
<%=bean0.hello()%>
</h1>
</body>
</html>--------------ttt.classpath=
D:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes\ttt\ttt.class
--------
package ttt;public class ttt {
public String hello(){
return "hello";
}
}
--------then restart server 我的结果是成功的!
你是不是没重起服务?