站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Eclipse 专题哪里有用myeclipse开发jsp+javabean+tomcat的例子?????在myeclipse中应该如何编译javabean???????????????????

哪里有用myeclipse开发jsp+javabean+tomcat的例子?????在myeclipse中应该如何编译javabean???????????????????

摘要: 哪里有用myeclipse开发jsp+javabean+tomcat的例子?????在myeclipse中应该如何编译javabean???????????????????


哪里有用myeclipse开发jsp+javabean+tomcat的例子?????在myeclipse中应该如何编译javabean


在网上找到一种说法:对于没有main函数的java源文件,eclipse的默认是自动编译的。
对于myeclipse也是一样吗?为何我的jsp+javabean结构的程序无法运行,而jsp文件可以运行呢???
错误提示如下:
javax.servlet.ServletException: Unresolved compilation problems:
Unhandled exception type IllegalAccessException
Unhandled exception type InstantiationException
Unhandled exception type ClassNotFoundException

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.jj_jsp._jspService(jj_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:24
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.Error: Unresolved compilation problems:
Unhandled exception type IllegalAccessException
Unhandled exception type InstantiationException
Unhandled exception type ClassNotFoundException

bean.dbBean.executeQuery(dbBean.java:9)
org.apache.jsp.jj_jsp._jspService(jj_jsp.java:5
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:24
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.


的确JAVABEAN是自动编译的,出现上面问题可能是你的路径有问题.


10分也拿的出手啊!


不要用myeclipse了 ,不是源码开放的,用wtp吧,源码开放,挺好用的


用myeclipse跟你用eclipse的基本操作是一样,即使你装了myeclipse,一样可以使用eclipse,都是指向eclipse的执行文件,无非就是eclipse多了myeclipse的一个菜单


↑返回目录
前一篇: 请教:为什么我的java程序在dos下可以连接sql,但是在eclipse去提示ClassNotFoundException? 急,解决就给分~!
后一篇: 急求eclipse3.1中文插件?