JSP中出现问题Tomcat服务器报错

说是出现内部错误,不能满足需求,错误代码如下面照片,求高手指教。图片说明

3个回答

web.xml中的servlet标签没有写正确,应该是servlet-class子标签的路径或者名称导致的。所以Tomcat容器报出CLassNotFoundException

这个应该是你在web.xml中配置servlet时的路径不对,找不到RegistServlet这个类。

web.xml中的配置错误啦,再仔细检查下,或者贴出配置代码看看

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
在myeclipse8.5中运行tomcat服务器报错
2011-12-30 15:42:39 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.20.rn2011-12-30 15:42:39 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2011-12-30 15:42:39 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'debug' to '5' did not find a matching property.rn2011-12-30 15:42:40 org.apache.coyote.http11.Http11AprProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-12-30 15:42:40 org.apache.coyote.ajp.AjpAprProtocol initrn信息: Initializing Coyote AJP/1.3 on ajp-8009rn2011-12-30 15:42:40 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1074 msrn2011-12-30 15:42:40 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-12-30 15:42:40 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.33rn2011-12-30 15:42:40 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor host-manager.xmlrn2011-12-30 15:42:40 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor manager.xmlrn2011-12-30 15:42:40 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory BusinessWebrn2011-12-30 15:42:41 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryrn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:183)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactoryrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 26 morern2011-12-30 15:42:41 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-12-30 15:42:41 org.apache.catalina.core.StandardContext startrn严重: Context [/BusinessWeb] startup failed due to previous errorsrn2011-12-30 15:42:41 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2011-12-30 15:42:41 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryrn at org.springframework.web.context.ContextCleanupListener.(ContextCleanupListener.java:43)rn at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:80)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactoryrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 27 morern2011-12-30 15:42:41 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ch02rn2011-12-30 15:42:41 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory docsrn2011-12-30 15:42:41 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory examplesrn2011-12-30 15:42:41 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2011-12-30 15:42:41 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2011-12-30 15:42:41 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory fdsfdrn2011-12-30 15:42:41 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2011-12-30 15:42:41 org.apache.coyote.http11.Http11AprProtocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-12-30 15:42:41 org.apache.coyote.ajp.AjpAprProtocol startrn信息: Starting Coyote AJP/1.3 on ajp-8009rn2011-12-30 15:42:41 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1791 msrnrn------------------------------------------------------------------------------------------------rnRT,http://localhost:8080/这个tomcat的主页能够正常访问,但是比如我创建一个默认web 工程,访问自动生成的index。jsp页面,表示404,找不到资源。谁能告诉我怎么办啊?
JSP网页开发TOMCAT服务器中的问题
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /read.jsp(2,0) Page directive has invalid attribute: lanngguagern org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:200)rn org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:304)rn org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:100)rn org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:549)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:456)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Validator.validate(Validator.java:1438)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rn--------------------------rn那位高手给我详细解释一下,万分感谢!~rnrn
启动tomcat服务器的时候报错
一般遇到tomcate服务器报错,清空一下缓存,重启服务器,删掉之前发布的内容重新发布等。 除此以外,tomcate找不到对应的jar包也会报错。尤其是maven项目,检查一下仓库中的jar包是否下载完整。必要时手动下载放入对应位置中。 关键报错信息 18-May-2018 22:27:20.106 SEVERE [RMI TCP Connection(4)-127.0.0.1] org.a...
Tomcat服务器报错404
在实际的项目开发过程,404报错就像hello world一样都在经历。不过相比每一步,我们至少都在进步。今天就来总结一下有关于tomcat服务器报错404的总结了.404报错是来自于tomcat服务器发出来的资源请求失败状态。但是我的讲解主要在于帮助理解404报错的缘由,而不在于例举出有哪些报错。404报错:资源请求失败,从表面理解就是没有寻找到资源,服务器找不到你要请求的资源。找不到原因出在哪
停止Tomcat服务器就会报错
信息: Pausing Coyote HTTP/1.1 on http-8080rn2009-12-20 1:07:04 org.apache.catalina.connector.Connector pausern严重: Protocol handler pause failedrnjava.net.ConnectException: Connection timed out: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:519)rn at java.net.Socket.connect(Socket.java:469)rn at java.net.Socket.(Socket.java:366)rn at java.net.Socket.(Socket.java:209)rn at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:492)rn at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289)rn at org.apache.jk.server.JkMain.pause(JkMain.java:683)rn at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)rn at org.apache.catalina.connector.Connector.pause(Connector.java:1032)rn at org.apache.catalina.core.StandardService.stop(StandardService.java:489)rn at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)rn at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:577)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2009-12-20 1:07:05 org.apache.catalina.core.StandardService stoprn信息: Stopping service Catalinarnrn求教下
java启动Tomcat服务器报错
如果报错是显示端口8005, 8080, 8009被占用了,原因可能是在打开Tomcat的情况下强制关闭了MyEclipse,或是MyEclipse非正常关闭,导致先前的Tomcat没有被关闭,从而出现端口被占用的情况。另外一种原因可能是其他软件占用了tomcat的端口号,都会导致运行出现异常。 解决方法1:通过cmd命令来关闭被占用的端口 在开始菜单==》以管理员的身份运行==》cmd 输...
启动tomcat服务器报错
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.src.sys.biz.TargetCustGroupBiz] for bean with name 'GpBiz' defined in file [D:\workspace\sophia\web\src\main\webapp\WEB-INF\classes\spring\applicationContext-beans.xml]; nested exception is java.lang.ClassNotFoundException: com.src.sys.biz.TargetCustGroupBizrn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:396)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:390)rn at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1158)rn at org.mybatis.spring.mapper.MapperScannerConfigurer.processPropertyPlaceHolders(MapperScannerConfigurer.java:280)rn at org.mybatis.spring.mapper.MapperScannerConfigurer.postProcessBeanDefinitionRegistry(MapperScannerConfigurer.java:264)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:617)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.ClassNotFoundException: com.src.sys.biz.TargetCustGroupBizrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)rn ... 28 morern2013-5-7 9:19:24 org.apache.catalina.core.StandardContext listenerStartrn求教,弄了一个下午也没解决,更新过代码之后就出现这个问题,下一楼也是报的错误信息
启动Tomcat服务器报错
启动Tomcat服务器报错: Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be usin
JSP开发之Tomcat服务器环境安装
咱之前就说过,咱是搞web开发的,也就是做网站、做后台的,所以嘞,根据目前已经掌握的java现有的知识点为基础,咱们也来看看这个所谓的JSP开发究竟是什么鬼嘞? 之前有在网上找了一些教程啥的,不过貌似开头都需要先安装个web服务器,来作为JSP页面运行的环境。然后嘞,又有好多的服务器可供选择,不过,综合咱们自己查找的资料,应用最基础的就是那个Tomcat服务器。那咱就废话不多说,咱们先来看它安装...
TOMCAT服务器,与JSP(笔记)
1.Web服务器是可以向发出请求的浏览器提供文档的程序提供网上的信息浏览服务  常用的Web服务器Microsoft:IISApache:TomcatOracle:WebLogicIBM:WebSphereNginx2.Tomcat服务器Apache Jakarta的开源项目轻量级应用服务器开源、稳定、资源占用小   解压就可以使用(前提jdk环境配置好)3.目录 说明/bin 存放各种平台下用于...
JSP出现问题
[code="java"]java.lang.NullPointerExceptionrn at org.apache.jsp.random_005fval_jsp._jspService(random_005fval_jsp.java:56)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at cnc.dev.emp.filter.SessionFilter.doFilter(SessionFilter.java:47)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)[/code]rnrn异常信息如上,该异常只在Tomcat刚启动,而第一个访问首页的人员时候出现。rn接下来都没有这个问题。n[b]问题补充:[/b]n我晓得是那个jsp出的问题。rn但是为撒只在刚启动Tomcat的时候出现,rn接下来就不再出现了。rnrn是Ajax取一个验证码值的时候出的问题,rn可以确定是加载顺序引起的。rn但是为何第一次有问题,接下来都没有问题了。
JSP中的出现问题请赐教??
我在编写JSP时用了,但在这个东东里有个属性是class="customer.counterperson"rnrn我想请问一下如何在comcat5.0中放置这个类的属性呢?rn也就是我的register.jsp文件和customer.counterperson类的文件位置不在同一个文件夹里面,rn我在浏览register.jsp时出现了一大堆关于找不到H类的错误,rn请哪位仁兄给予帮助谢谢
JSP中使用prepareStatement出现问题
[size=18px]坐等结果[/size]rnrn代码如下rn<% rn //jspexdb.setStr("hello world!");rn // out.println(jspexdb.getStr());rn //jspexdb = new JspexBean();rn //JspexBean jBean = new JspexBean();rn //jspexbean;rn String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver";rn String dbURL = "jdbc:sqlserver://192.168.1.117:1443; DatabaseName=CRM";rn String userName = "sa";rn String userPwd = "mzyuan";rn Connection dbConn = null;rn //Connection conn = null;rn tryrn rn Class.forName(driverName).newInstance();rn out.println("驱动程序已加载");rn rn catch(Exception e)rn rn out.println("加载驱动程序错误...");rn e.printStackTrace();rn rn tryrn rn dbConn = DriverManager.getConnection(dbURL,userName,userPwd);rn out.println("connection Successful!");rn rn catch (SQLException e)rn rn System.out.println("数据库连接错误...");rn e.printStackTrace();rn rn /*rn if (null == jspexbean)rn rn out.println("error");rn rn elsern rn out.println("success");rn rn String sqlStr = "SELECT [userid],[username],[password],[email],[flag] FROM [CRM].[dbo].[user]";rn ResultSet rs = jspexbean.reslutSet(null,sqlStr);rn */rn String sqlStr = "SELECT userid,username,password,email,flag FROM dbo.user";rn PreparedStatement pst = dbConn.prepareStatement(sqlStr);rn pst.executeQuery();rn ResultSetMetaData rsmd = pst.getMetaData();rn out.println(rsmd.getColumnCount());rn out.println(rsmd.getTableName(1));rn %>rn主要是在rnPreparedStatement pst = dbConn.prepareStatement(sqlStr);这一句出现问题rn具体问题描述如下:rnmessage An exception occurred processing JSP page /index-ec.jsp at line 72rndescription The server encountered an internal error that prevented it from fulfilling this request.rnexceptionrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /index-ec.jsp at line 72rnrn69: ResultSet rs = jspexbean.reslutSet(null,sqlStr);rn70: */rn71: String sqlStr = "SELECT userid,username,password,email,flag FROM dbo.user";rn72: PreparedStatement pst = dbConn.prepareStatement(sqlStr);rn73: pst.executeQuery();rn74: ResultSetMetaData rsmd = pst.getMetaData();rn75: out.println(rsmd.getColumnCount());rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:723)rn rnroot causernjava.lang.NullPointerExceptionrn org.apache.jsp.index_002dec_jsp._jspService(index_002dec_jsp.java:138)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:723)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
在jsp中使用EL出现问题
源代码:hello(jsp脚本):<%=request.getAttribute("hello") %> rn hello(el表达式,el表达式的使用方法$和):$hello rnrn 显示内容却是:rn hello(jsp脚本):HelloWordrn hello(el表达式,el表达式的使用方法$和):$hello rnrn我使用的Tomcat版本是:apache-tomcat-6.0.18
jsp如何动态获取tomcat服务器中的视频文件
jsp如何动态获取tomcat服务器中的视频文件,急!!!!
这样在jsp中加载tomcat服务器有什么问题?
在工程名上点击右键->“Myeclipse”->“Add and Remove Project”->“Deployments”这样来配置tomcat服务器,请问这样操作有什么问题?
Tomcat服务器中JSP如何调用动态链接库?
公司要我用JSP调用一个动态链接库,请问如何才能调用?
JSP中报错问题?
<%@ page contentType="text/html;charset=GB2312" %>rn<%@ page import="test.Register" %>rn<%!//处理字符串的方法。rnpublic String codeString(String s)rnrn String str=s;rn tryrn byte b[]=str.getBytes("ISO-8859-1");rn str=new String(b);rn return str;rn rn catch(Exception e)rn return str;rn rn%>rnrnrn<%@ include file="head.txt" %>rnrn 输入您的信息,会员名字不允许含有空格,带*号项须填写。rn<%String str=response.encodeURL("register.jsp");%>rn rn 会员名称*rn 设置密码*rn 性别(*)男rn 女rn 会员年龄>*rn 电子邮件rn 联系电话rn 通信地址rn 输入你的简介和交友要求rn rn rnrnrnrn<% rn String logname="",sex="",age="",password="",email="",phone="",address="",message="";rn int n=0;rn if(!(session.isNew()))rn logname=request.getParameter("logname");rn if(logname==null)rn logname="";rn rn logname=codeString(logname);rn int space=logname.indexOf(" ");rn if(space!=-1)rn response.sendRedirect("register.jsp");rn password=request.getParameter("password");rn if(password==null)rn password="";rn password=codeString(password);rn sex=request.getParameter("sex");rn if(sex==null)rn sex="";rn sex=codeString(sex);rn age=request.getParameter("age");rn if(age==null)rn age="0";rn age=codeString(age);rn try n=Integer.parseInt(age);rn catch(NumberFormatException e)rn n=0;rn email=request.getParameter("email");rn if(email==null)rn email="";rn email=codeString(email);rn phone=request.getParameter("phone");rn if(phone==null)rn phone="";rn phone=codeString(phone);rn address=request.getParameter("address");rn if(address==null)rn address="";rn address=codeString(address);rn message=request.getParameter("message");rn if(message==null)rn message="";rn message=codeString(message);rn rn%>rn<%rn boolean b=!(logname.equals(""))&&!(password.equals(""))&&(n<=150)&&(n>=0);rn if(b)rn rn out.print(logname);%>rn rn rn rn rn rn rn rn rn <%rn memberlogin.addItem();rn rn elsern out.print("您还没有填写信息,或信息填写不完整、年龄或名字不正确");rn rn%>rn<%rn if(!(session.isNew()))rn rn%>rn rn <%rn rn %>rnrnrnrn以上代码老报以下这个借是怎么会事?rnorg.apache.jasper.JasperException: /register.jsp(86,10) jsp.error.badactionrn
jsp中c标签报错
[img=https://img-bbs.csdn.net/upload/201803/09/1520557317_815539.png][/img]rn[img=https://img-bbs.csdn.net/upload/201803/09/1520557330_695101.png][/img]rn各位为什么jsp页面用c标签的时候常常会报这种错误、明明没有写错、就是提示没有结束标签
JSP中自定义标签报错!!!!
我用MYECLIPSE+TOMCAT编写,但是在uri="tag"位置总是报错,我调试了很久都没成功,所以发上来想请大家帮我看看.请参考图:rnrn问题就出在这里:[img=http://g1b12.mail.126.com/a/s?func=mbox:getMessageData&sid=BCTrzeHHMgVOmeFGCoHHFAlkpxHFBZlH&mid=184:1tbiuAzDKUX9b9K6mgAAs7&part=4][/img]rnrnuri="tag"处总是有红色线出现,报错,错误提示称:不能找到tag描述符,但我改了很多地方都不能成功,跟现在报的错一样.不知道怎么回事.rnrn下面是TLD文件图:rnrn[img=http://g1b12.mail.126.com/a/s?func=mbox:getMessageData&sid=BCTrzeHHMgVOmeFGCoHHFAlkpxHFBZlH&mid=184:1tbiuAzDKUX9b9K6mgAAs7&part=3][/img]rnrn我在TLD文件中指定了uri为tag,但没用,好奇怪.rnrn我第一次写自定义标签的代码,没经验,很多东西都需要学习,希望大家多帮助一下我,谢谢了!!!!
JSP中数据库报错
连接数据库时报错为。javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver][SQL Server]对象名 'test' 无效。rntest 表名。rn
cms6.1部署到tomcat服务器下报错记录
15:45:00.326 ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' de
【myEclipse】启动Tomcat服务器报错
错误信息 解释一下 分析1:找到被谁占用了 分析2:本地Tomcat和Myeclipse自带的Tomcat 错误信息 Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already ...
Tomcat服务器报错对应值解析
Tomcat服务器报错对应值解析,tomcat服务器的常见错误对应值解析
TOMCAT服务器突然不知道为什么突然出现问题了!!??
我修改程序以后,不知道为什么必须关了TOMCAT然后在重启rn然后才能看见修改的效果rn以前好好的rn今天突然就这样了rn哪个高手知道这是为什么啊???
本地tomcat服务器上的图片显示到jsp
首先配置 basePath&lt;%String basePath= request.getScheme()+&quot;://&quot;+request.getServerName()+&quot;:&quot;+request.getServerPort()+path+&quot;/&quot;; %&gt; 即 http://localhost:8080/你的项目名称 jsp页面格式: &lt;img src=&quot;&lt;%=basePath %&gt;/你存放图片的文件夹名/&
jsp下载tomcat服务器下的excel文件
各位大哥们,帮忙想个问题吗,就是tomcat目录下面下载excel文件不用流的方法怎么下载啊?我用了reponse.senddirect(aa.xls)这个方法不行,你知道为什么了,请大家帮忙哈。谢谢!
jsp编程时可用的tomcat服务器
适用于编写jsp时,作免费的服务器,只需把.bat发送到桌面快捷方式即可。当然你需要配置jdk环境(classpath、path),另外还要配一下java_home环境变量
关于tensorboard中源码出现问题,报错问题解决
tensorboard的源码出现问题,我装的是1.3版本,希望大家可以关注GitHub上的消息 这个是报错的信息,希望同样错误的人可以及时搜进来。纠错一下午,终于发现是源码的问题。 请看https://github.com/home-assistant/appdaemon/issues/83 Traceback (most recent call last): File "d:\anacond...
tomcat+sql2000 jsp 数据库连接出现问题
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnJSP FileName:/index.jsprnJava FileName:/D:/tomcat/Tomcat 5.5/work/Catalina/localhost/_//org/apache/jsp\index_jsp.javarnrnAn error occurred at line: 35 in the jsp file: /index.jsprncon cannot be resolvedrn32: rn33: rn34: <%rn35: ResultSet rs=con.getRs("SELECT a.jobid,b.name,b.school,b.specialty,b.knowledge,a.job,a.emolument FROM tb_sjob AS a,tb_student AS b WHERE a.sname=b.sname and getdate()<=atime ORDER BY ptime DESC");rn36: while(rs.next())rn37: %>rn38: rnrnJSP FileName:/index.jsprnJava FileName:/D:/tomcat/Tomcat 5.5/work/Catalina/localhost/_//org/apache/jsp\index_jsp.javarnrnAn error occurred at line: 43 in the jsp file: /index.jsprncon cannot be resolvedrn40: rn41: <%rn42: rn43: con.close();rn44: %>rn45: rn46: rnrnJSP FileName:/index.jsprnJava FileName:/D:/tomcat/Tomcat 5.5/work/Catalina/localhost/_//org/apache/jsp\index_jsp.javarnrnAn error occurred at line: 51 in the jsp file: /index.jsprncon cannot be resolvedrn48: rn49: rn50: <%rn51: rs=con.getRs("SELECT a.jobid,b.name,b.manage,a.job,a.emolument FROM tb_cjob AS a,tb_company AS b WHERE a.cname=b.cname and getdate()<=atime ORDER BY ptime DESC");rn52: while(rs.next())rn53: %>rn54: rnrnJSP FileName:/index.jsprnJava FileName:/D:/tomcat/Tomcat 5.5/work/Catalina/localhost/_//org/apache/jsp\index_jsp.javarnrnAn error occurred at line: 59 in the jsp file: /index.jsprncon cannot be resolvedrn56: rn57: <%rn58: rn59: con.close();rn60: %>rn61: rn62: rnrnJSP FileName:/index.jsprnJava FileName:/D:/tomcat/Tomcat 5.5/work/Catalina/localhost/_//org/apache/jsp\index_jsp.javarnrnAn error occurred at line: 104 in the jsp file: /index.jsprncon cannot be resolvedrn101: 友情链接rn102: rn103: <%rn104: rs=con.getRs("SELECT address,name FROM tb_flink");rn105: while(rs.next())rn106: %>rn107: rnrnJSP FileName:/index.jsprnJava FileName:/D:/tomcat/Tomcat 5.5/work/Catalina/localhost/_//org/apache/jsp\index_jsp.javarnrnAn error occurred at line: 112 in the jsp file: /index.jsprncon cannot be resolvedrn109: rn110: <%rn111: rn112: con.close();rn113: %>rn114: rn115: rnrnrnStacktrace:rn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:98)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.rnrnrn以上是错误提示,测试了很多天了还没有得到正确结果。。。。rn诸位大侠帮帮忙!!!!!
jsp的List出现问题
import java.sql.*; rnimport java.util.*; rnimport future.GetInfoFromDB;//从数据库读取数据的类 rnrnpublic class search rnrnpublic Map getEnameCard(String s)throws SQLException rnrnGetInfoFromDB gi=new GetInfoFromDB();rn rnList l; rnrn//getList方法是从数据库读取结果集并封装到Listrnl=gi.getList("select*from enamecard where user=\""+s+"\""); rnMap m=(Map)l.get(0); rnreturn m; rn rnpublic static void main(String[] args)throws SQLException rnsearch se=new search(); rnMap m1=se.getEnameCard("用户1"); rnMap m2=se.getEnameCard("用户2"); rnSystem.out.print(m1.get("user")); rnSystem.out.print(m2.get("user")); rn rnrn本来结果应该显示用户1 用户2,可是运行后都是显示用户1,这是为什么阿?为什么第二次调用方法getEnameCard(),List没有改变啊?
jsp页面传值出现问题
做一个jsp查询,在jsp页面输入条件,是一个input,在页面上输入值后,调试的时候进入页面根本就得不到值,String inputRID=request.getParameter("id"); 这样获得页面上传的值会有问题吗?请高人帮忙解决,不知道为什么会得不到值了,谢谢各位了。
JSP 上传图片出现问题,求助
源代码是,问题是只想上传图片,加上异常处理后,但没显示要显示的内容 ,而是出现错误页面,请大虾指点rn<%rnrnupFile.initialize(pageContext);rnrn[b][color=#FF0000] try rn rn upFile.setAllowedFilesList("jpg,gif,bmp");rn catch(Exception e) //问题出现这个异常 ,为什么上传其他格式的文件不会显示下面的现实 ,而是出现问题//页//面rn %> rn rn <% rn [/color][/b]rnupFile.upload();rnrnlong size=upFile.getFiles().getSize();rnSystem.out.println("文件大小:"+size);rnif(size>2000000)rn out.println(" ");rnelsern String getFileName=upFile.getFiles().getFile(0).getFileName();rn String sql="INSERT INTO tb_file (name,fileSize) values('"+getFileName+"',"+size+")";rn conn.executeUpdate(sql);rn out.println(" ");rn tryrn upFile.save("/upload");rn catch(Exception e)rn System.out.println("上传文件出现错误:"+e.getMessage());rn rnrn%>rnrnrn问题页面是rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: The extension of the file is not allowed to be uploaded (1010).rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.SecurityException: The extension of the file is not allowed to be uploaded (1010).rn com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:297)rn org.apache.jsp.upFile_005fdeal_jsp._jspService(upFile_005fdeal_jsp.java:81)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.rnrn
jsp sql搜索出现问题
做jsp分页显示的时候,把搜索条件放到传递参数passvalue里面去,点击“下一页”的时候,新的页面读取passvalue的值,接着进行搜索。但是这个时候却出问题了。我查看了一下,如果搜索条件中没有like的话,是可以搜索出来的,如where doc_in_out='内部收文',但是搜索条件为where doc_in_out like '%内部收文%',就搜索不出来了。请教大家如何解决!
jsp加载html文件出现问题
include.jsp文件rn<%@ page contentType="text/html; charset=GB2312" %>rn<%@ page language="java" %>rnrnrn 加载文件rnrnrnrn加载文件rnrn rn rn rnrnrnrn<%@ include file="htminsert.html" %>rnrnrnrnrnrnrnhtminsert.html文件rnrnrn Html Filernrnrn这是加载的 html 文件rnrnrnrnrn当在浏览器窗口输入http://localhost:8088/example/05/INCLUDE.JSP时显示页面如下:rn加载文件rn---------------------------rnrnrn请问后边怎么不显示“这是加载的 html 文件”这些字,好象没有加载上去,这是为什么啊?我用的是Tomcat6,请各位指教。谢谢
jbuider8 调试 jsp 出现问题
出现的异常是:com.borland.primetime.util.AssertionException: gbkrnrn我在jbuilder8里面创建一个很简单的jsp程序第一次是成功的,但是我只稍微改了一下(比如加一个空格),就出现这个异常,而且不能保存已经修改的程序,我觉得这个好像 是jbuilder8的bug。rn请高手指点
myeclipse打开.jsp出现问题
.jsp文件打开的时候出错,不知道什么原因rn必须先open with->Text Editor打开一次rn才能open with->myeclipse 'classic' jsp editor打开rn之前能用默认的打开,这两天不知道怎么就不行了rn每次新建都要用重复上面的才行rnrn新手报到rn求解
JSP连接MySQL出现问题!
我建了一个 UserBeanCL类如下rn//进行帐号验证的Users处理类,封装对users表进行的操作rnpackage com.liang;rnimport java.sql.*;rnimport javax.servlet.http.*;rnpublic class UserBeanCL rn private Connection ct = null;rn private Statement st = null;rn private ResultSet rs = null; rn public boolean checkUser(String user,String passwd)rn boolean check=false;rn try rn //建立连接rn connectDB con=new connectDB();rn ct=con.getConnection();rn st=ct.createStatement();rn //查询数据库中是否存在该用户,若存在则将该用户密码取出做进一步验证rn rs=st.executeQuery("select userpasswd from users where username='"+user+"'");rn if(rs.next())//验证密码是否正确rn rn String DBpasswd=rs.getString(1);rn if(DBpasswd.equals(passwd))rn check=true;rn rn rn catch(Exception ex)rn ex.printStackTrace();rn finallyrn tryrn if(rs!=null)rn rn rs.close();rn rs=null;rn rn if(ct!=null)rn rn ct.close();rn ct=null;rn rn if(st!=null)rn rn st.close();rn st=null;rn rn catch(Exception e)rn e.printStackTrace();rn rn rn return check;rn rn rn //释放连接rn public void close()rn tryrn if(rs!=null)rn rn rs.close();rn rs=null;rn rn if(ct!=null)rn rn ct.close();rn ct=null;rn rn if(st!=null)rn rn st.close();rn st=null;rn rn catch(Exception ex)rn ex.printStackTrace();rn rn rnrnrn连接MySQL类如下:rn//连接MySQLrnpackage com.liang;rnimport java.sql.*;rnpublic class connectDB rn private Connection ct=null;rn private String url = "jdbc:mysql://localhost:3306/bookDB"; //定位MySQLrn public Connection getConnection()rn tryrn //建立与MySQL的连接rn Class.forName("org.gjt.mm.mysql.Driver").newInstance();rn Class.forName("com.mysql.jdbc.Driver");rn ct = DriverManager.getConnection(url, "root", "");rn catch(Exception ex)rn ex.printStackTrace();rn rn return ct;rn rnrnrn在登录用的JSP里rn<%@ page language="java" import="java.util.*,com.liang.*" pageEncoding="UTF-8"%>rn<%response.setContentType("text/html;charset=UTF-8");%>rnrnrn 登录界面rn rnrnrn rn 图书管理系统 rnrnrn rn 用户名:rn rnrn 密码 :rn rn rnrnrn rnrnrnrn还有LoginCL.jsp:rn<%@ page language="java" import="java.util.*,com.liang.*" pageEncoding="UTF-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rnrnrnrn rn rn rn My JSP 'LoginCL.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn<%rn//获得用户名和密码rnString u=request.getParameter("username");rnString p=request.getParameter("passwd");rn//调用UserBeanCL,完成验证rnUserBeanCL ubc=new UserBeanCL();rnif(ubc.checkUser(u,p))rnrnresponse.sendRedirect("main.jsp");rnelsernresponse.sendRedirect("index.jsp");rnrn %>rn rnrn问题是输入正确的帐号密码后,依然登不进去,帐号密码是数字不存在中文乱码问题,执行到st=ct.createStatement();显示at java.lang.Thread.run(Unknown Source)rnrn弄了半天还是不知道问题在哪?之前同样的代码用在servlet上完全没有问题。求大神指点!!!rn
myeclipse开发jsp出现问题?
帮帮忙,本人刚接触jsp,想用myeclipse编写jsp,可有个涉及到tomcat问题,在myeclipse里能直接运行jsp文件吗?好像myeclipse自带了一个tomcat,可是我运行的话会有错误,错误如下:还有如果要把tomcat弄进去,那该怎么弄进去呢?我喜欢用myeclipse,希望有人能说的具体点就好。谢谢了。把具体的步骤说下,非常感谢。恳请各位留下QQ,我想向你们学习下。rnrn2009-11-3 20:23:56 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse 6.0\bin;D:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_6.0.1.zmyeclipse601200710\tomcat\binrn2009-11-3 20:23:56 org.apache.coyote.http11.Http11Protocol initrn严重: Error initializing endpointrnjava.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)rn at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:518)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:538)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2009-11-3 20:23:56 org.apache.catalina.startup.Catalina loadrn严重: Catalina.startrnLifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:518)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:538)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2009-11-3 20:23:56 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 812 msrn2009-11-3 20:23:56 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2009-11-3 20:23:56 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2009-11-3 20:23:57 org.springframework.context.support.AbstractApplicationContext refreshrn信息: No beans defined in application context [org.codehaus.xfire.transport.http.XFireConfigurableServlet$GenericWebApplicationContextX;hashCode=11228395]rn2009-11-3 20:23:57 org.springframework.core.CollectionFactory rn信息: JDK 1.4+ collections availablern2009-11-3 20:23:57 org.springframework.context.support.AbstractApplicationContext initMessageSourcern信息: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@2f0d54]rn2009-11-3 20:23:57 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticasterrn信息: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1961581]rn2009-11-3 20:23:57 org.springframework.ui.context.support.UiApplicationContextUtils initThemeSourcern信息: Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@1358f03]rn2009-11-3 20:23:57 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletonsrn信息: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy]rn2009-11-3 20:23:57 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/xfire.xml]rn2009-11-3 20:23:57 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/customEditors.xml]rn2009-11-3 20:23:58 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitionsrn信息: Loading XML bean definitions from class path resource [META-INF/xfire/services.xml]rn2009-11-3 20:23:58 org.springframework.context.support.AbstractApplicationContext refreshrn信息: 10 beans defined in application context [org.codehaus.xfire.spring.GenericApplicationContext;hashCode=6386542]rn2009-11-3 20:23:58 org.springframework.context.support.AbstractApplicationContext initMessageSourcern信息: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1636e4e]rn2009-11-3 20:23:58 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticasterrn信息: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@df0438]rn2009-11-3 20:23:58 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletonsrn信息: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [xfire.customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy]rn2009-11-3 20:23:58 org.apache.coyote.http11.Http11Protocol startrn严重: Error starting endpointrnjava.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)rn at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)rn at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)rn at org.apache.catalina.connector.Connector.start(Connector.java:1132)rn at org.apache.catalina.core.StandardService.start(StandardService.java:531)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-11-3 20:23:58 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnLifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.catalina.connector.Connector.start(Connector.java:1139)rn at org.apache.catalina.core.StandardService.start(StandardService.java:531)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-11-3 20:23:58 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1866 msrn2009-11-3 20:23:58 org.apache.catalina.core.StandardServer awaitrn严重: StandardServer.await: create[8005]: rnjava.net.BindException: Address already in use: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(Unknown Source)rn at java.net.ServerSocket.bind(Unknown Source)rn at java.net.ServerSocket.(Unknown Source)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:630)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:590)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn
jsp 上传文件出现问题
代码如下:[quote][color=red]int count=0;rn SmartUpload mysmart=new SmartUpload();rn mysmart.init(config);rn mysmart.service(request,response);rn mysmart.upload();rn count = mysmart.save("../image");[/color][/quote]rn错误:org.apache.jasper.JasperException: An exception occurred processing JSP page /admin/upload.jsp at line 10rnrn7: SmartUpload mysmart=new SmartUpload();rn8: mysmart.init(config);rn9: mysmart.service(request,response);rn10: mysmart.upload();rn11: count = mysmart.save("../image");rn12: rn13: rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.lang.NegativeArraySizeExceptionrn com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:144)rn org.apache.jsp.admin.upload_jsp._jspService(upload_jsp.java:63)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrn着急 马上要用了 谢谢诶了
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法