问题描述
老是出现这种提示不知道是哪里出错哪位能解释一下哪里有问题typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionorg.apache.jasper.JasperException:javax.servlet.ServletException:javax.naming.NamingException:Cannotcreateresourceinstanceorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rootcausejavax.servlet.ServletException:javax.naming.NamingException:Cannotcreateresourceinstanceorg.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)org.apache.jsp.stu_005flogin_005fchk_jsp._jspService(stu_005flogin_005fchk_jsp.java:92)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rootcausejavax.naming.NamingException:Cannotcreateresourceinstanceorg.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143)javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)org.apache.naming.NamingContext.lookup(NamingContext.java:793)org.apache.naming.NamingContext.lookup(NamingContext.java:140)org.apache.naming.NamingContext.lookup(NamingContext.java:781)org.apache.naming.NamingContext.lookup(NamingContext.java:140)org.apache.naming.NamingContext.lookup(NamingContext.java:781)org.apache.naming.NamingContext.lookup(NamingContext.java:140)org.apache.naming.NamingContext.lookup(NamingContext.java:781)org.apache.naming.NamingContext.lookup(NamingContext.java:153)org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)javax.naming.InitialContext.lookup(InitialContext.java:392)org.jingyang.beans.StuDBBean.<init>(StuDBBean.java:20)org.apache.jsp.stu_005flogin_005fchk_jsp._jspService(stu_005flogin_005fchk_jsp.java:67)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)noteThefullstacktraceoftherootcauseisavailableintheApacheTomcat/6.0.20logs.
解决方案
解决方案二:
tomcat配置问题只面的Resource设置不对,实际你也应该不需要,你可能删除时未删除跟它相关的一些东西。还有可能就是你的配置文件和你的tomcat版本不一致.
解决方案三:
是建立的JNDI吗?你确定下你的tomcat版本,比如5.0和5.5配置JNDI的方式就有所不同。
解决方案四:
请问这个问题解决了吗,我也遇到这个问题