运行myeclipse下载时,HTTP Status 500 - org.apache.jasper.JasperException: java.lang.NullPointerException

HTTP Status 500 - javax.servlet.ServletException????数据库怎样才能正确集成到Myeclipse中使用?_百度知道
HTTP Status 500 - javax.servlet.ServletException????数据库怎样才能正确集成到Myeclipse中使用?
HTTP Status 500 - javax.servlet.ServletException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)type Exception reportmessage javax.servlet.ServletException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)description The server encountered an internal error that prevented it from fulfilling this request.
提问者采纳
密码错了吧 什么集成到myeclipse咯 是myeclipse连接到数据库吧
提问者评价
一语中的,瞬间明白了错误,非常感谢
其他类似问题
javax的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁51CTO视频课程推荐:
1576人学习
查看:1640|回复:6
(246.23 KB)
(268.22 KB)
你的驱动不对
你用的是那个sql多少数据库,驱动包要找对,对应的语句要写对
引用:原帖由 cgwlve 于
16:09 发表
你用的是那个sql多少数据库,驱动包要找对,对应的语句要写对 2000的,驱动包是对的,以前一个java项目都可以运行
引用:原帖由 蓝强徐 于
17:05 发表
2000的,驱动包是对的,以前一个java项目都可以运行 上面有提示no suit driver ...2000是三哥jar包。如果对的,你把你的连接数据库的代码发过来看看
应该是程序问题吧,看下代码
中级工程师
Just do it
看下你的连接数据库的类吧,估计是驱动的名字写错了。你的500错误不用发这么多帖子吧。
技术再好也入侵不了你的心,是我的技术不够高还是你的心没有打开的权限?
欢迎光临JAVA板块:&&在MyEclipse 8.5中运行jsp调用javabean,运行不了,求解_jsp吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:13,419贴子:
在MyEclipse 8.5中运行jsp调用javabean,运行不了,求解收藏
rectangle.java放在src文件下,rectangle.jsp放在webroot文件夹下rectangle.java的代码如下:public class Rectangle {
p private double rectangleL private public Rectangle(){ this.width=0; this.height=0; this.rectangleLength=0; this.rectanglearea=0; }public void setwidth(double width){ this.width=}public double
getwidth(){ return this.}public void setheight(double height){ this.height=}public double getheight(){ return this.}public double getrectangleLength(){ this.rectangleLength=this.width*2+this.height*2; return this.rectangleL}public double getrectanglearea(){ this.rectanglearea=this.width*this. return this.}}rectangle.jsp的代码如下:&%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%& &jsp:useBean id="abc" class="Rectangle" scope="page" /&&%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%&&!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&&html&
&base href="&%=basePath%&"&
&title&My JSP 'MyJsp1.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"& --&
&body& &br&&br& &%abc.setwidth(4.5);
abc.setheight(5.0);
&%=abc.getwidth() %&&%=abc.getheight() %&&%=abc.getrectangleLength() %&&%=abc.getrectanglearea() %&
&/body&&/html&调试出现如下错误:HTTP Status 500 - type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)root cause org.apache.jasper.JasperException: Unable to load class for JSP org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:600) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)root cause java.lang.ClassNotFoundException: org.apache.jsp.MyJsp1_jsp java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.Apache Tomcat/6.0.13
在线等,求解
登录百度帐号我的游戏推荐游戏
后查看最近玩过的游戏
为兴趣而生,贴吧更懂你。或我用MyEclipse配置SSH框架出现&br/&HTTP Status 500 - Unable to instantiate Action, LoginAction, defined for &LoginAction& in namespace &/&LoginAction
我用MyEclipse配置SSH框架出现HTTP Status 500 - Unable to instantiate Action, LoginAction, defined for &LoginAction& in namespace &/&LoginAction
补充:我用MyEclipse配置SSH框架出现HTTP Status 500 - Unable to instantiate Action, LoginAction, defined for 'LoginAction' in namespace '/'LoginAction我的JSP页面
&s:form action="/LoginAction" name="projectAddForm" method="post"&SPRING的配置文件 &bean id="loginServiceImpl" class="cn.sjsc.serviceimpl.LoginServiceImpl"&&/bean&&
&bean id="LoginAction" class="cn.sjsc.action.LoginAction" scope="prototype"&
&property name="loginService"&
&ref bean="loginServiceImpl" /&
&/property& &/bean&struts:配置文件 &action name="LoginAction" class="LoginAction" method="login" &
&result name="error"&/error.jsp&/result&
&result name="succcess"&/success.jsp&/result&
action=&/LoginAction&
改成action=&/Login&
或者把/去掉
两个方法试过了
class=&LoginAction&
这是把前面的包名加上试试,要是还是不好使的话我就不知道了
问题是strut的class和 spring里面的ID名字一样不就好了吗
改成路径居然成功了
的感言:你就是当代的活雷锋,太感谢了!
相关知识等待您来回答
编程领域专家访问Jsp页面时出现Http 500错误!该如何解决?
[问题点数:40分]
访问Jsp页面时出现Http 500错误!该如何解决?
[问题点数:40分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关帖子推荐:
本帖子已过去太久远了,不再提供回复功能。

我要回帖

更多关于 myeclipse下载 的文章

 

随机推荐