无论什么java web项目只要run as on server就报同样的错

在eclipse中的正常项目,不论是新建还是导入的,只要run as on server就报同样的错,但是在浏览器可以正常访问。
关闭所有项目,新建了一个web项目,只在一个jsp页面写了helloworld,其他地方没有代码,仍然是报同样的错,浏览器正常输出helloworld。tomcat移除后重新配置仍然不能解决问题。
求助,求助,这几天网上各种找资料也没解决。
部分代码如下:
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明
图片说明

6个回答

浏览器正常输出,项目应该是没有问题的。tomcat移除后重新配置,你tomcat移除是移除tomcat里的项目还是把整个tomcat移除?建议把整个tomcat移除后,重新添加一个新的tomcat,在部署项目试试

vnnchao
vnnchao 多谢回复,移除整个tomcat后重新部署还是不行,然后我把tomcat删了,重新下载了一个就好了,应该是之前那个tomcat的目录下某个文件出错了。谢谢!
一年多之前 回复

第一,可能缺少jar包,如果之前正常使用的时候是正常的,那么可能就是你删除了项目生成的class类等数据,需要你重新发布编译项目

vnnchao
vnnchao 哦,对了,之前曾经正常运行过项目,但不知道什么时候就突然有了这样的永远不变的报错。
一年多之前 回复
vnnchao
vnnchao 多谢回复,我现在新建项目中只有一个index.jsp,其中只有一句helloworld。其他目录没有文件,src下也没有文件,lib下也没有jar,也没有配置文件,只是想让程序通过tomcat运行时没有报错,所以只留了一个index.jsp。没有用到其他第三方jar,我只想在运行最简单的web项目时没有该报错,我该怎么办啊。
一年多之前 回复

感觉是spring框架少了jar包

vnnchao
vnnchao 多谢回复,我现在新建项目中只有一个index.jsp,其中只有一句helloworld。其他目录没有文件,src下也没有文件,lib下也没有jar,也没有配置文件,只是想让程序通过tomcat运行时没有报错,所以只留了一个index.jsp。没有用到其他第三方jar和框架,我只想在运行最简单的web项目时没有该报错,我该怎么办啊。
一年多之前 回复

少了jar包吧,大概看了一下你报的错误,应该缺少spring-web 的这这个jar

vnnchao
vnnchao 多谢回复,我现在新建项目中只有一个index.jsp,其中只有一句helloworld。其他目录没有文件,src下也没有文件,lib下也没有jar,也没有配置文件,只是想让程序通过tomcat运行时没有报错,所以只留了一个index.jsp。我试着用框架(其中包含spring-web的jar)仍然是同样的报错,我只想在运行最简单的web项目时没有该报错,我该怎么办啊,真的是纠结死了。
一年多之前 回复

你这个缺了好多包啊,你试试用Maven管理依赖,可以参考这个写一下:

 http://blog.csdn.net/haishu_zheng/article/details/51502315
vnnchao
vnnchao 多谢回复,我试试看吧。
一年多之前 回复

缺少jar包。很可能是部署时,jar包没有发布吧

vnnchao
vnnchao 多谢回复,已解决,是tomcat的问题。
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
web项目无法使用run on server
问题:web项目无法使用run on server 原因:少了setting文件
web项目中 报ASM错
org.springframework.core.NestedIOException:ASM ClassReader 主要就是jdk和spring的版本不一致; 可以选择: 要么降低 jdk版本,为1.7版本。要么将 spring4.0以上版本 ...
myeclipse中web项目没有run on server的解决办法
转载自
Eclipse导入外部的Web项目,Run as 没有Run On Server选项
导入的Web项目于Eclipse中,项目右键->Run As,如图: 1. 部署Tomcat,通过官网下载并且安装。 2. 项目->右击->properties->Project Facets->勾选Dynamic Web Module 项目->右击->Run On Server
Jbuilder2007 新建web项目就报web.xml错误
Referenced file contains error(http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd)rnrnrn刚新建的web项目就报这个错误。
java运行报java.lang.NullPointerException错
大家好!我是刚刚学java的,用的是sql2005和JBuilder2006.下面是程序代码。原来在我的笔记本上运行一切正常。因笔记本速度太慢最近配了台新机子,安装了sql2005和JBuilder2006,将数据库导入新机后,运行程序就报错。rnrn报错信息如下:rn rnjava.lang.NullPointerExceptionrn at com.dao.SearchDao.getBean(SearchDao.java:24)rn at com.frame.MianBan.jButton1_actionPerformed(MianBan.java:131)rn at com.frame.MianBan_jButton1_actionAdapter.actionPerformed(MianBan.java:267)rnrn请问是什么原因,JBuilder中JDBC的配置和笔记本中的一样,是不是sql2005数据库的问题?????数据库我也导过来了。代码我没有修改过,这是什么原因,马上要考试了,请各位帮帮我,谢谢!!!!!!!!!!!rnrnrnrnrnrnrnrn
run on server
找半天也没搜到run on server 相关的东西rn只找到这句:对于JSP、Servlet等,使用run on server可以实现“部署到中间件-启动中间件-启动浏览器显示jsp/servlet的运行结果rnrn配置了tomcat,eclipse中的web项目 run on server 后,为什么只能在eclipse自带的浏览器中好使rn外部浏览器就无法访问呢?rnrn这个run on server后 究竟发生了什么?怎样免去手工配置虚拟路径的?rnrn
Run On Server
[size=24px]第一次在ubuntu14.04上安装eclipse for javaEE,外部配置好jdk8和tomcat8,eclipse中也配好了,运行第一个Servlet项目出现rn[img=https://img-bbs.csdn.net/upload/201410/23/1414053364_397279.png][/img]rnrnServer Name空白。。。也不能写rn无法进行下一步,这怎么办啊??rn[/size]
debug on server/run on server
右键点的项目,WSAD弹出的菜单里面这两个选项不可以用,是灰色的,为什么?
eclipse 只要一点击 run 或Debug 就未响应
eclipse 只要一点击 run 或Debug 就未响应 exclipse.ini 的配置已经配了
springboot:run启动web项目的问题
基于Springboot的web项目 jsp 页面跳转4041、新建项目2、添加并配置webapp文件3、配置文件4、写好控制层5、运行项目5.1 直接运行main方法(会有问题)5.2 springboot:run 运行项目 1、新建项目   第一步:     第二步:     第三步:     第四步:  ...
老是出现同样的错?
ADO+ACCESSrn Adodc2.Recordset.AddNewrn Adodc2.Recordset.Fields("定时触发时间") = Nowrn Adodc2.Recordset.Fields("具体电量参数") = "A相电流为:"rn Adodc2.Recordset.Fields("对应参数数值") = Str(lnum(5) * 16 * 16 + lnum(6)) & " mA"rn Adodc2.Recordset.Updatern Adodc2.Recordset.AddNewrn Adodc2.Recordset.Fields("定时触发时间") = Nowrn Adodc2.Recordset.Fields("具体电量参数") = "B相电流为:"rn Adodc2.Recordset.Fields("对应参数数值") = Str(lnum(9) * 16 * 16 + lnum(10)) & " mA"rn Adodc2.Recordset.Updatern Adodc2.Recordset.AddNewrn Adodc2.Recordset.Fields("定时触发时间") = Nowrn Adodc2.Recordset.Fields("具体电量参数") = "C相电流为:"rn Adodc2.Recordset.Fields("对应参数数值") = Str(lnum(13) * 16 * 16 + lnum(14)) & " mA"rn Adodc2.Recordset.Updatern Adodc2.Recordset.AddNewrn Adodc2.Recordset.Fields("定时触发时间") = Nowrn Adodc2.Recordset.Fields("具体电量参数") = "N相电流为:"rn Adodc2.Recordset.Fields("对应参数数值") = Str(lnum(17) * 16 * 16 + lnum(18)) & " mA"rn Adodc2.Recordset.Updatern将一个数组lnum()放到数据库中。。。rn运行是可以添加第一个记录,但下面的就出错了:rn 运行是错误'_2147217833(80040e57)'rn 字段太小而不能接受所要添加的数据的数量。试着插入或粘贴较小的数据。
win2000 server 报的这是什么错!
我的win2000装好后还没有怎么用Q!rnrn启动的时候说“系统至少有一项被终止”rnrn这是什么原因《》rnrn从前也有过,rnrn没有病毒rn
vue项目,npm run build后,报路径的错
在build目录下的webpack.prod.conf.js里面: output: {     path: config.build.assetsRoot,     publicPath: "/dist/", // 添加这行代码,可解决该问题或者publicPath: "./",也可解决     filename: utils.assetsPath('js/[name].[chunkhas...
java web项目启动报ClassNotFoundException问题
由于新近公司,接收公司做好的项目,由于数据库是采用的JNDI连接,故将项目下载下来后在tomcat安装目录apache-tomcat-7.0.57\conf\Catalina\localhost下新建了xml文件配置JNDI数据库,如下图:[img=https://img-bbs.csdn.net/upload/201704/26/1493199161_328577.jpg][/img]在tomcat的servers下启动项目时报错java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener。确认项目中有jar包。 项目配置文件applicationContext.xml下jndi配置为[img=https://img-bbs.csdn.net/upload/201704/26/1493199010_862488.jpg][/img]rn项目环境是eclipse+spring+springMVC+mybatis+tomcat7+jdk1.7rn注:由于项目是在svn上下载的,程序本身没有问题,其他机器测试成功
Maven构建Java Web项目报指定JDK错误
环境内容: Maven 版本 3.3.3 JDK 版本 1.8 错误内容如下: 大致就是说配置JDK环境时,指定路径指成了JRE 根据错误博主就去系统环境变量查看了一遍又一遍,没有指定所谓的 “指定JDK指成了JRE” 错误,之后有怀疑是不是没有拉取最新的JAR导致,有clear项目后,重新install一遍,还是不行,想了好几天,发现是JDK和MAVEN版本冲突了 有两个解决方案: 1、更换J...
java的web项目run的时候没有java application这个选项
版权声明:本文为博主原创文章,转载请标明作者和原链接 https://blog.csdn.net/qq_42239046/article/details/88683284 当在ecplise中创建了一个web项目,一般都可以run server,如果不能那就是tomcat没有安装好或这版本有问题或者jdk的版本有问题,其实web项目也可以运行Java application,但是这上面...
java web项目服务器经常报下图错误
![图片说明](https://img-ask.csdn.net/upload/201610/28/1477618048_708122.png)
eclipse neon + tomcat8.5 部署web项目,run on server时报错
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SSHFrame]]n at java.util.concurrent.FutureTask.report(FutureTask.java:122)n at java.util.concurrent.FutureTask.get(FutureTask.java:192)n at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911)n at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)n at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)n at java.util.concurrent.FutureTask.run(FutureTask.java:266)n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)n at java.lang.Thread.run(Thread.java:745)nCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SSHFrame]]n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)n ... 6 morenCaused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@31efaf26]n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)n at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4842)n at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n ... 6 morenCaused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@79b09a4f]n at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)n at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:708)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n ... 9 morenCaused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)n at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:113)n at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)n ... 12 morenCaused by: java.util.zip.ZipException: invalid LOC header (bad signature)n at java.util.zip.ZipFile.read(Native Method)n at java.util.zip.ZipFile.access$1400(ZipFile.java:60)n at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)n at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)n at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)n at sun.misc.IOUtils.readFully(IOUtils.java:65)n at java.util.jar.JarFile.getBytes(JarFile.java:425)n at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)n at java.util.jar.JarFile.getManifest(JarFile.java:180)n at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:111)n ... 13 morenn十月 19, 2016 5:31:03 下午 org.apache.catalina.core.ContainerBase startInternaln严重: A child container failed during startnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]n at java.util.concurrent.FutureTask.report(FutureTask.java:122)n at java.util.concurrent.FutureTask.get(FutureTask.java:192)n at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911)n at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n at org.apache.catalina.startup.Catalina.start(Catalina.java:655)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)n at java.lang.reflect.Method.invoke(Method.java:498)n at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)n at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)nCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)n at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)n at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)n at java.util.concurrent.FutureTask.run(FutureTask.java:266)n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)n at java.lang.Thread.run(Thread.java:745)nCaused by: org.apache.catalina.LifecycleException: A child container failed during startn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)n at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n ... 6 morenn十月 19, 2016 5:31:03 下午 org.apache.catalina.startup.Catalina startn严重: The required Server component failed to start so Tomcat is unable to start.norg.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)n at org.apache.catalina.startup.Catalina.start(Catalina.java:655)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)n at java.lang.reflect.Method.invoke(Method.java:498)n at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)n at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)nCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)n at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n ... 7 morenCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)n at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n ... 9 morenCaused by: org.apache.catalina.LifecycleException: A child container failed during startn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)n at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n ... 11 more
ThreadPoolTaskExecutor Run 执行报空指针
String tableName;rn String areaCode; rn QuartzController quartzController =new QuartzController();rn rn public RunRuleInJVMDaemen(String tableName,String areaCode)rn this.tableName = tableName;rn this.areaCode = areaCode;rn rn rn public synchronized void run() rn Map params = new HashMap();rn params.put("tableName", tableName);rn params.put("areaCode", areaCode);rn quartzController.getTableBaseInfoS(params);rn rnrn运行getTableBaseInfoS(); 方法 就报空指针 rnException in thread "ruleExecuterPool-1" java.lang.NullPointerExceptionrn求大神告知 怎么解决
现在客户端只要执行sql报一次错,数据库服务器进程就多一个
有个datasnap问题请教 现在客户端只要执行sql报一次错,数据库服务器进程就多一个rnrn例如 在客户端执行 kill 1 因为是kill系统进程 肯定报错 但报一次错就多一个sqlserver连接进程,如何解决?rnrnrn服务器端rnfunction TServerMethods1.GetData(sql:string): TDataSet;rnbeginrn tryrn SQLConnection1.Open;rn SQLDataSet1.Close;rn SQLDataSet1.CommandText:=sql;rn SQLDataSet1.Open;rn Result := SQLDataSet1rn exceptrn on E: Exception dorn beginrn SQLConnection1.Close;rn SQLDataSet1.Close;rn Result := nil;rn endrn end;rnend;rnrnprocedure TServerMethods1.execsql(sql:string);rnvarrn SQLQuery: TSQLQuery;rnbeginrntryrn tryrn SQLQuery := TSQLQuery.Create(nil);rn SQLQuery.SQLConnection := SQLConnection1;rn SQLQuery.CommandText :=sql;rn SQLConnection1.open;rn SQLQuery.ExecSQL;rn exceptrn on E: Exception dorn beginrn SQLConnection1.Close;rn endrn end;rnfinallyrn SQLConnection1.Close;rn SQLQuery.Free;rnend;rnend;rn=====================================rn客户端rnprocedure TForm2.Button2Click(Sender: TObject);//正常rnbeginrnrn tryrn DBGridEh1.DataSource := DataSource1;rn SQLConnection1.Connected := True;rn tryrn ClientDataSet1.Close;rn SqlServerMethod1.Params.ParamByName('sql').Asstring := memo1.Text;rn ClientDataSet1.Open;rn exceptrn on E: Exception dorn beginrn SQLConnection1.Connected := False ;rn showmessage('错误');rn endrn endrn finallyrn SQLConnection1.Connected := Falsern end;rnend;rn
同样的代码为什么我的就报没定义?
和教程上一样的一段定义私有函数的代码,什么都和源代码一样的但为什么我的在类视图里有函数但是右边没有函数呢?
Maven项目Run As无Run On Server的解决方法
Maven项目Run As无Run On Server的解决方法问题描述:将项目导入到Eclipse中后,右键Run As没有Run On Server选项,不能将项目运行到服务器。 解决方法: 首先,请检查pom.xml文件中是否设置了packaging属性,将该属性设置为war,指定项目的打包类型为war包。 然后重新导入项目或者使用以下步骤进行设置,就能出现Run On Server
Struts2同样的程序换了JAR包就报404了
本人大四小白一名,最近在做SSH的毕业设计。某书上用的是struts 2.2.3.1,我自己下了最新的struts 2.3.16。完全一样的Hello world网页就报404,然后我用了随书附带的光盘的2.2.3.1的JAR包就完全没问题。rn是不是这几个版本有重大区别,请哪位大哥高抬贵手花个30秒告诉我一下在下感激不尽
java 只要涉及到new 就重新分配索引
-
为什么同样的程序,从windows移植到linux下就抱错???
windows下用的是tomcat3.1,程序运行正常。linux下用的是tomcat5.0.1,配置启动没有问题,显示静态页面没有任何问题,但是一要进入数据库验证就抱错???charset=GBK,改成utf-8也没用。rnrnapache的错误内容是:rnHTTP 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: /webadmin/verify.jsp(3,0) The value for the useBean class attribute research.opendb1 is invalid.rn 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:150)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)rn org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)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.Generator.generate(Generator.java:3272)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)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.30 logs.rnrnverify.jsp的内容是:rn<%@page contentType="text/html;charset=GBK" %>rn<%@page import="java.sql.ResultSet"%>rnrnrn<%rnString login="false";rnString NAME="";rnString SORT="";rnString username=request.getParameter("username");rnString password=request.getParameter("password");rnString sql="select * from guanli where NAME='"+username+"' and PASSWORD='"+password+"'";rntryrnResultSet rs=userlogin.executeQuery(sql);rnwhile(rs.next())rn login="true";rn NAME=rs.getString("NAME").trim();rn SORT=rs.getString("SORT").trim();rn rnif("true".equals(login))rnrn session.setAttribute("NAME",NAME);rn session.setAttribute("SORT",SORT);rn //session.setAttribute("type",usertype);rn response.sendRedirect("main.jsp");rnrnelsernrnout.println(" 用户名、密码有错,请重新输入. ");rnout.println(" 〖返 回〗");rnrncatch(Exception e)out.println(" 系统维护中,请稍后重试! ");rnout.println(" 〖返 回〗");rnrnfinallyuserlogin.close();rnrn%>rn
msn在2000可以登陆。 同样的网络环境。同样的设置2003下不能登陆报0x81000370错!
help! 怎么回事?
java编译报这个错如何解决
![图片说明](https://img-ask.csdn.net/upload/201708/06/1501982511_57015.png)
Athena Run Server v1.02
Athena Run Server v1.02 RO程式的运行器,用来用去这个版本最好。只是少了数据库备份。
同样的错只犯一次
同样的错只犯一次, 是一种追求,也是一种挑战, 同样的错只犯一次, 让我时长陷入沉思,错误来自哪里, 同样的错只犯一次, 让我学会分析,做事更谨慎,心思更细腻, 同样的错只犯一次, 让我学会看清本质,摸清关系, 同样的错只犯一次, 让我的生活充满乐趣,有了意义, 同样的错只犯一次, 让我开始遇见更好的自己~
java与flex通信总是报这个错?
我刚开始学flex呢,所以如果问题有点小白 请大家不要笑话啊。rn写一个java类,名叫FlexTest,里面有一个say()方法,返回一个String。rn我还是截几个图说吧。[img=D:\360data\重要数据\桌面\12.png][/img]rn在remoting-config.xml中加入 rn rn cn.com.FlexTestrn rn rn然后启动服务器。第一次没有报错。rn在flex builder 3中创建一个flex项目。rn[img=D:\360data\重要数据\桌面\3.png][/img]rntestFlex.mxml主要代码为:rnrnrn rn rn import mx.rpc.events.FaultEvent;rn import mx.controls.Alert;rn import mx.rpc.events.ResultEvent;rn rn private function resultHandler(event:ResultEvent):void rn Alert.show(event.result.toString(), "连接成功");rn rn rn private function faultHandler(event:FaultEvent):void rn Alert.show(event.fault.toString(), "连接失败");rn rn rn rn [color=#FF0000]rn [/color]rn rn rnrnrnrnrn到这里应该就算完成了,但是现在不管是flex builder 3 或者Myeclipse中都报 这个错rn[color=#FF0000]这个与flex 中的RemoteObject对应' found in 'destination' from file: remoting-config.xml.[/color]rnrn请问这是怎么回事啊?该怎么解决?
在eclipse中运行java报java.lang.OutOfMemoryError错
在哪设置JVM(内存信息)?在线等待
报路径错
public static void main(String args[]) rn String filePath = "/a.properties";rn //writeProperties(filePath, "name", "wangmin");rn System.out.println(ConfigInfo.readValue(filePath, "name1"));rn rnrnrn报错:java.io.FileNotFoundException: \a.properties (系统找不到指定的文件。)rn我的项目根目录下面有这个文件,这是怎么回事
tomcat报的一个错
程序正常运行了,采用的是S2SH框架,但是不知道为什么有这样的一个错误,很郁闷,程序又是可以运行的rnrn [code=Java]rnrn严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.IllegalStateException: getOutputStream() has already been called for this responsern at org.apache.catalina.connector.Response.getWriter(Response.java:604)rn at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)rn at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)rn at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)rn at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)rn at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:119)rn at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:78)rn at org.apache.jsp.random_jsp._jspService(random_jsp.java:146)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at net.diglove.www.filter.EncodingFilter.doFilter(EncodingFilter.java:26)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:228)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn at java.lang.Thread.run(Thread.java:595)rn [/code]
SPRING+HIBERNATE报空指针错.
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Exception in JSP: /action.jsp:37rnrn34: message.setIsread(0);rn35: message.setSign(0);rn36: rn37: service.saveMessage(message);rn38: rn39: %>rn40: aarnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)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)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.test.service.MessageService.saveMessage(MessageService.java:22)rn org.apache.jsp.action_jsp._jspService(action_jsp.java:84)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)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.rnrn------------------------------------------------rnrnrnrnrn rnrn rn rn rn rn rn rnrn rn rn rn classpath:com\test\entity\rn rn rn rn org.hibernate.dialect.MySQLDialectrn truern truern 0rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn-------------------------------------------------rnpublic class MessageService rn private MessageDAO messageDAO; rn rn rn public MessageDAO getMessageDAO() rn return messageDAO;rn rnrnrn public void setMessageDAO(MessageDAO messageDAO) rn System.out.println("aaaaaa");rn this.messageDAO = messageDAO;rn rnrnrn public Message saveMessage(Message r)rn System.out.println("dddddd");rn messageDAO.saveMessage(r);rn return r;rn rnrn-------------------------------------------------------rnpublic class MessageDAO extends HibernateDaoSupportrn rn public Message saveMessage(Message r)rn tryrn System.out.println(this.getSessionFactory());rn this.getHibernateTemplate().saveOrUpdate(r);rn return r;rn catch (Exception e) rn e.printStackTrace();rn return null;rn rn rn
EF+NewtonSoft报循环引用错
[code=csharp]rn JsonSerializerSettings setting = new JsonSerializerSettings()rn rn ReferenceLoopHandling = ReferenceLoopHandling.Ignore,rn PreserveReferencesHandling = PreserveReferencesHandling.Objects//,rn //NullValueHandling = NullValueHandling.Ignorern ;rn PBInfo p = new PBInfoBLL().Get(5000);rnrn string s = JsonConvert.SerializeObject(p, Formatting.None, setting);rnrn[/code]rn上面的代码运行到JsonConvert.SerializeObject就死住了,再也不动了,好象一直在序列化循环对象,rn如果只是:JsonConvert.SerializeObject(p),报循环引用错
oracle报ora-12154错???
一个b/s程序,oracle报ora-12154错,could not resolve service name,无法分解服务名,何故?往知情者详解。
tag.csdn.net报的错
打开http://tag.csdn.net/tag/C%23/4.html报错rnServer Error in '/' Application.rn--------------------------------------------------------------------------------rnrnSystem.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.rn at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)rn at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)rn at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)rn at System.Data.SqlClient.SqlConnection.Open()rn at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String tableName)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command)rn at CSDN.ServiceComponents.IndexService.DAL.IndexDataProvider.GetTopContentbyTag(String clientid, String tag, Int32 count)rn at CSDN.ServiceComponents.IndexService.IndexService.GetClientContentIndexesByTag(String clientID, String hashedSessionKey, String queryclientid, String tag, Int32 start, Int32 count)rn --- End of inner exception stack trace --- rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.rn at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)rn at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)rn at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)rn at System.Data.SqlClient.SqlConnection.Open()rn at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String tableName)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command)rn at CSDN.ServiceComponents.IndexService.DAL.IndexDataProvider.GetTopContentbyTag(String clientid, String tag, Int32 count)rn at CSDN.ServiceComponents.IndexService.IndexService.GetClientContentIndexesByTag(String clientID, String hashedSessionKey, String queryclientid, String tag, Int32 start, Int32 count)rn --- End of inner exception stack trace ---rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. rnrnStack Trace: rnrnrn[SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.rn at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)rn at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)rn at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)rn at System.Data.SqlClient.SqlConnection.Open()rn at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String tableName)rn at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command)rn at CSDN.ServiceComponents.IndexService.DAL.IndexDataProvider.GetTopContentbyTag(String clientid, String tag, Int32 count)rn at CSDN.ServiceComponents.IndexService.IndexService.GetClientContentIndexesByTag(String clientID, String hashedSessionKey, String queryclientid, String tag, Int32 start, Int32 count)rn --- End of inner exception stack trace ---]rn CSDN.ServiceComponents.TagPage.CacheUpdate.UpdateTagPageCache.GetElement(ParameterList Params, Boolean ForceUpdateCahce) +333rn CSDN.ServiceComponents.TagPage.CacheUpdate.UpdateTagPageCache.GetElement(ParameterList Params) +38rn CSDN.ServiceComponents.TagPage.CacheUpdate.UpdateClientArticles.UpdateClientArticlesCache(String queryclientid, String tag, Int32 start, Int32 count) +63rn CSDN.TagPage.dbtag.gen_community(String tag) +128rn CSDN.TagPage.dbtag.Page_Load(Object sender, EventArgs e) +60rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34rn System.Web.UI.Control.OnLoad(EventArgs e) +99rn System.Web.UI.Control.LoadRecursive() +47rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061rnrn rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
客户端报WSAENOTSOCK错?
客户端是多线程的,(每次发送,接受后都关闭socket)在循环向服务端送48次后,select就报WSAENOTSOCK错:描述字集合中包含有非套接口的元素。怎样处理?rn rnrn
为什么报奇怪的错!
我报的错是库函数里的错,库函数不会错的啊,但是我的程序好象也没错啊,会不会是头文件起了冲突?希望大家讨论讨论
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池

相似问题