不同包的两个Servlet文件同名,tomcat9.0报错,修改文件名后tomcat还是报错,求解 5C

在eclipse的一个项目里的不同包的两个Servlet文件同名,tomcat9.0报错,修改文件名后tomcat还是报错,求解。图片说明

6个回答

找到你安装的 tomact ,将D:\apache-tomcat-7.0.78-windows-x64\apache-tomcat-7.0.78\webapps 下项目删除,这个目录是我自己的,你看你安装在哪里。
然后eclipse 里tomact -》remove你项目,然后清楚下项目缓存。再加载进tomact。再启动试试。

这个可以解决
首先
找到你的Tomcat,进入bin目录找到shutdown.bat
图片说明
双击它,会出现一个黑色框,然后关掉不要有任何操作,然后打开你的eclipse运行项目就可以。

eclipse\workspace.metadata.plugins\org.eclipse.wst.server.core -----把这个目录下的临时文件都删了试试。

tomact 服务启动失败

将前期的启动临时文件目录文件都删除,然后重新启动

tomcat启动报错是因为你原先的进程可能占用了端口,所以启动failed,跟代码没关系的,两个文件同名就算报错也是在代码编译阶段报错呀

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
修改tomcat后报错
eclipse: The import javax.servlet cannot be resolved The import javax.servlet.http.HttpServletRequest cannot be resolved 解决办法: Project -> Properties -> Java Build Path -> Add Library -> Se...
tomcat启动时报错,求解?
出来两句错误提示rn1 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedrnCannot find class [com.ideal.framework.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBeanrnrnrn2 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.ideal.framework.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBeanrnrn代码里没有提示有错误啊!
tomcat还是报错。。。求助
2008-7-14 9:51:26 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2008-7-14 9:51:36 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoClassDefFoundError: javax/servlet/ServletContextListenerrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.access$100(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)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: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)rn2008-7-14 9:51:36 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2008-7-14 9:51:36 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2008-7-14 9:51:36 org.apache.catalina.core.StandardContext startrn严重: Context [/demo] startup failed due to previous errorsrn2008-7-14 9:51:38 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2008-7-14 9:51:38 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2008-7-14 9:51:38 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/125 config=nullrn2008-7-14 9:51:38 org.apache.catalina.startup.Catalina startrn信息: Server startup in 12659 msrnrnrnrnrn上周五发了次,因为电脑在公司,有几个高手说是包没导对,就结贴了,星期一到公司一试,还是不行,老报这错,现在里面的已经删完,只剩下一删就会报红的包,应该不存在冲突问题吧。。。rn还有高手帮忙指点下么
myeclipse10 修改jsp文件名 后打开报错
[img=http://dl.iteye.com/upload/attachment/0066/3798/e835a4b1-24e1-3f48-9b0e-f65e0472f096.png][/img]rn每次修改完JSP文件名后就会出现错误,必须重启Eclipse才可以。如图
Java servlet启动tomcat后报错
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?*?from?user_login?where?username='admin'?and?password='admin'' at line 1rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:423)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)rn at com.mysql.jdbc.Util.getInstance(Util.java:408)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3976)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3912)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2683)rn at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2482)rn at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2440)rn at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1381)rn at com.userlogin.test.LoginCl.doGet(LoginCl.java:25)rn at com.userlogin.test.LoginCl.doPost(LoginCl.java:75)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)rn at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)rn at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)rn at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)rn at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:748)rn 各位大佬能帮我看一下是什么问题吗
导入项目后servlet报错
那是因为没有导入Server包,servlet就无法继承接口,在Java Build Path中Add Libraries,找到你tomact自带的Server包,导入,完成.
不同包中访问同名的servlet
我在同一个工程下面rn建了两个不同的servlet包,在不同包中想建立两个同名的servlet,rn但是myeclipse提示能建立两个相同的servelt,却不在web.xml设置参数rn因此就生成不了同名的servlet了。rn是否有办法完成上述目的?rn顺便问问,高版本的tomcat是不是不支持这样rnhttp://localhost:8080/MyJ2ee/servlet/MyServlet.servletrn的访问方式啊?rn谢谢rn
JAVAEE SERVLET 报错 求解 急!!!!!!!
import java.io.IOException;rnimport java.util.List;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport javax.servlet.http.HttpSession;rnrnimport com.csuinfosoft.entity.Book;rnimport com.csuinfosoft.service.BookService;rnrnpublic class BookTypeServlet extends HttpServlet rnrn /**rn *通过输入书本类型 获得书本的信息rn */rn private static final long serialVersionUID = 6736897007827179546L;rnrn protected void doGet(HttpServletRequest req, HttpServletResponse resp)rn throws ServletException, IOException rn doPost(req, resp);rn rnrn protected void doPost(HttpServletRequest req, HttpServletResponse resp)rn throws ServletException, IOException rn // 设置编码集rn req.setCharacterEncoding("utf-8");rn resp.setCharacterEncoding("utf-8");rn resp.setContentType("textml;charset=utf-8");rn // 从输入框获取book类型rn String booktype = req.getParameter("booktype");rn HttpSession session = req.getSession();rn String path = req.getServletPath();rn if ("/bookType".equals(path)) rn if (booktype != null && !"".equals(booktype)) rn BookService bookservice = new BookService();rn List books = bookservice.getBooksByType(booktype);rn // System.out.println(books);rn path = "/wenxue.jsp";rn req.setAttribute("books", books);rn session.setAttribute("booktype", booktype);rn rn System.out.println(path);rn rn req.getRequestDispatcher(path).forward(req, resp);rn rnrnrnError:at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)rn at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)rn
tomcat部署项目后报错
[img=https://img-bbs.csdn.net/upload/201612/21/1482330295_254949.png][/img]
Tomcat修改Server Locations后报错
我用的eclipse版本是,rn[img=https://img-bbs.csdn.net/upload/201708/30/1504052524_127693.jpg][/img]rn开始以为是tomcat7版本低就换了8.5,结果一样报错,我修改的是rn[img=https://img-bbs.csdn.net/upload/201708/30/1504052552_928948.jpg][/img]rnrn就是从第一个选项改选第二个,并把Deploy path的wtpwebapps改为webapps(老师教的,当时机房改了不报错,回来宿舍自己搞就报错了)rnrn报错就是以下的图片rn[img=https://img-bbs.csdn.net/upload/201708/30/1504052576_215698.jpg][/img]
启动Tomcat就报错,求解
2010-08-05 09:41:44,439 [main] ERROR ContextLoader - Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class cn.com.hnisi.fb.models.ShopBaseData)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)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.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class cn.com.hnisi.fb.models.ShopBaseData)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1851)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)rn at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:122)rn at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:191)rn at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:67)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:136)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:475)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:133)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:297)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)rn ... 36 morern2010-8-5 9:41:44 org.apache.catalina.core.StandardContext startrnrn本人使用的工具是MyEclipse8.0,JDK 是1.6,集成的是struts2,spring3,hibernate3rn在web.xml文件的配置是这样的:rnrn contextConfigLocationrn classpath:applicationContext.xmlrnrnrnrn org.springframework.web.context.ContextLoaderListenerrnrnrn报错的原因我个人认为是JDK版本的问题,但是我更换为MyEclipse自带的JDK也还是不行,请高手不吝赐教,多谢了
入项目后,servlet文件报错解决方法
第一个:servlet-api.jar没有导入     平常我们自己在Myeclipse中写项目时也不用导入这个包,而我们导入其他人的项目包时就要导入这个servlet-api.jar包。这是因为我们平常自己写项目的时候,用的服务器tomcat的common文件夹中就有servlet-api.jar这个包,自动导入了。但是我们导入其他人的包时就没有自动导入这个包。 解决办法:右击项目》buil
多表查询后修改报错
[code=SQL]Update arnset a.FPlanTrategy='324'rnfrom t_ICitem a , dbo.abc$ brnrnwhere a.Fnumber=b.物料代码rn[/code]rnrnrnrnrnrnrnrnrn消息 4422,级别 16,状态 1,第 1 行rnView 't_ICitem' has an INSTEAD OF UPDATE trigger and cannot be a target of an UPDATE FROM statement.
Android studio 替换同名图片后后缀名不同 报错
报错内容如下: Error:error: Resource entry background is already defined. res\drawable-xhdpi-v4\background.9.png:0: Originally defined here.解决方法 You could try to do one of the following:Clean and Build or g
servlet报错
我是java初学者,我根据一篇文章的要求,创建了一个名为Test.java的servlet,代码如下:rnpackage test; rnimport java.io.IOException; rnimport java.io.PrintWriter; rnimport javax.servlet.ServletException; rnimport javax.servlet.http.HttpServlet; rnimport javax.servlet.http.HttpServletRequest; rnimport javax.servlet.http.HttpServletResponse; rnpublic class Test extends HttpServlet rnprotected void doGet(HttpServletRequest request, HttpServletResponse response) rnthrows ServletException, IOException rnPrintWriter out=response.getWriter(); rnout.println(" This is a servlet test."); rnout.flush(); rn rn rn然后按照要求,将Test.java放在c:\test下,使用如下命令编译: rnC:\Test>javac Test.java rn期望在c:\Test下会产生一个编译后的servlet文件:Test.class rn但是系统却报错,提示导入的包不存在,请问,我该怎样才能让这个servlet编译通过呢?
servlet报错:
classpathrn.;c:\java\jsdk\lib\dt.jar;c:\java\jsdk\lib\tools.jar;C:\java\Tomcat\common\lib\servlet-api.jarrn------------------------------------------------------------rnpackage test; rnimport java.io.IOException; rnimport java.io.PrintWriter; rnimport javax.servlet.ServletException; rnimport javax.servlet.http.HttpServlet; rnimport javax.servlet.http.HttpServletRequest; rnimport javax.servlet.http.HttpServletResponse; rnpublic class Test extends HttpServlet rnprotected void doGet(HttpServletRequest request, HttpServletResponse response) rnthrows ServletException, IOException rnPrintWriter out=response.getWriter(); rnout.println(" This is a servlet test."); rnout.flush(); rn rn rnrnrnrn--------------------Configuration: jsdk ------------------------------------------------rnC:\java\test\Test.java:4: package javax.servlet does not existrnimport javax.servlet.ServletException; rn ^rnC:\java\test\Test.java:5: package javax.servlet.http does not existrnimport javax.servlet.http.HttpServlet; rn ^rnC:\java\test\Test.java:6: package javax.servlet.http does not existrnimport javax.servlet.http.HttpServletRequest; rn ^rnC:\java\test\Test.java:7: package javax.servlet.http does not existrnimport javax.servlet.http.HttpServletResponse; rn ^rnC:\java\test\Test.java:8: cannot resolve symbolrnsymbol : class HttpServlet rnlocation: class test.Testrnpublic class Test extends HttpServlet rn ^rnC:\java\test\Test.java:9: cannot resolve symbolrnsymbol : class HttpServletRequest rnlocation: class test.Testrnprotected void doGet(HttpServletRequest request, HttpServletResponse response) rn ^rnC:\java\test\Test.java:9: cannot resolve symbolrnsymbol : class HttpServletResponse rnlocation: class test.Testrnprotected void doGet(HttpServletRequest request, HttpServletResponse response) rn ^rnC:\java\test\Test.java:10: cannot resolve symbolrnsymbol : class ServletException rnlocation: class test.Testrnthrows ServletException, IOException rn ^rn8 errorsrnProcess completed.rn
maven没有servlet(创建servlet后报错)
maven没有servlet(创建servlet后报错)   maven不能创建servlet 解决方案 方案一 在项目的iml进行指定根目录 <sourceRoots> <root url="file://$MODULE_DIR$/src/main/java" /> </sourceRoot...
Servlet报错----导入项目时报错
我们有时会导入其他人的项目到Myeclipse中,参考他们的代码。但是导入项目后常会出现一些莫名其妙的报错。现在一个一个开始总结一下,不想以后再导入项目的时候捉鸡。 第一个:servlet-api.jar没有导入      平常我们自己在Myeclipse中写项目时也不用导入这个包,而我们导入其他人的项目包时就要导入这个servlet-api.jar包。这是因为我们平常自己写项目的时候,用的服
tomcat运行一段时间后报错!
tomcat运行一段时间后报错!之前报的是java.lang.OutOfMemoryException:java heap space我把jvm内存rnJAVA_OPTS=-Xms64m -Xmx256m 设大之后运行一段时间现在报rnERROR hibernate.util.JDBCExceptionReporter:78 - An SQLException was provoked by the following failure: java.lang.InterruptedExceptionrn这个错误。请问这两个错误之间有联系吗?第二个错误改怎么解决?谢谢!
在Eclipse 安装Tomcat后报错
我前几天安装在Eclipse安装Tomcat插件。安装成功后,在Eclipse主界面出现Tomcat菜单和图标,按照教程提示一步步操作,在Windows->Prefrence对话框下设置Tomcat。rn当启动的时候很意外的事情发生了。Console窗口出现报错,提示如下:rn2008-10-10 14:56:01 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'debug' to '0' did not find a matching property.rn2008-10-10 14:56:01 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\jdk1.6.0_10\jre\bin;C:\jdk1.6.0_10\bin\client;C:\jdk1.6.0_10\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\jdk1.6.0_10\bin;C:\android-sdk-windows-0.9_beta\tools;C:\Program Files\Common Files\Symbian\tools;C:\Program Files\CSL Arm Toolchain\bin;C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\tools;C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\gcc\bin;C:\Program Files\Microsoft Visual Studio\VC98\Bin;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraComparern2008-10-10 14:56:02 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:502)rn at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:530)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:550)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)rn2008-10-10 14:56:02 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:1060)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:530)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:550)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)rn2008-10-10 14:56:02 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 3906 msrn2008-10-10 14:56:02 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2008-10-10 14:56:02 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2008-10-10 14:56:05 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2008-10-10 14:56:05 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2008-10-10 14:56:05 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:502)rn at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)rn at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)rn at org.apache.catalina.connector.Connector.start(Connector.java:1131)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:578)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)rn2008-10-10 14:56:05 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:1138)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:578)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)rn2008-10-10 14:56:05 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3528 msrn2008-10-10 14:56:05 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:642)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:602)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)rnrn我知道是Tomcat启动问题,可是不知道问题出在哪?所提示的没有发现APR环境,可我明明按照把那个运行环境复制到Eclipse下的plugns目录下。rn请各位大哥大姐帮帮忙吧。我很少发贴求助的,一般出了问题总是用Google搜索。
tomcat manager点击后报错
配置好了tomcat,localhost[img=https://img-bbs.csdn.net/upload/201808/01/1533093651_333257.png][/img]8080也能进去,但是点击tomcat manager后,无登陆页面,直接报错,图如下
tomcat注册服务后,报错
没注册服务时,正常;注册服务后,报错,说是can not create bean,百思不得其解,请大虾们出手相助rn
报错,求解!
报错如下 rn org.jboss.deployment.DeploymentException: Error while checking if table aleady exists; - nested throwable: (java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error setting up static cursor cache.) rn怎么解决?
报错,求解?
程序中由于有汉字cmd运行时出现乱码:运行语句:【number = int(input('猜猜是几:'))】运行时出现乱码
tomcat 报错!!!
这是什么错误?? 是不是网络问题??rnrn2009-1-28 13:31:26 org.apache.tomcat.util.http.Parameters processParametersrn警告: Parameters: Invalid chunk ignored.rn2009-1-28 16:55:57 org.apache.tomcat.util.http.Parameters processParametersrn警告: Parameters: Invalid chunk ignored.rn2009-1-28 20:38:21 org.apache.tomcat.util.http.Parameters processParametersrn警告: Parameters: Invalid chunk ignored.rn2009-1-28 23:47:58 org.apache.tomcat.util.net.JIoEndpoint$Acceptor runrn严重: Socket accept failedrnjava.net.SocketException: socket closedrn at java.net.PlainSocketImpl.socketAccept(Native Method)rn at java.net.PlainSocketImpl.accept(Unknown Source)rn at java.net.ServerSocket.implAccept(Unknown Source)rn at java.net.ServerSocket.accept(Unknown Source)rn at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)rn at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)rn at java.lang.Thread.run(Unknown Source)rn2009-1-28 23:48:03 org.apache.tomcat.util.net.JIoEndpoint$Acceptor runrn严重: Socket accept failedrnjava.net.SocketException: socket closedrn at java.net.PlainSocketImpl.socketAccept(Native Method)rn at java.net.PlainSocketImpl.accept(Unknown Source)rn at java.net.ServerSocket.implAccept(Unknown Source)rn at java.net.ServerSocket.accept(Unknown Source)rn at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)rn at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)rn at java.lang.Thread.run(Unknown Source)rn..... rn
Tomcat 报错!!!!!!
严重: Begin event threw exceptionrnjava.io.IOException: 设备未就绪。rn at java.io.WinNTFileSystem.canonicalize0(Native Method)rn at java.io.Win32FileSystem.canonicalize(Unknown Source)rn at java.io.File.getCanonicalPath(Unknown Source)rn at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:120)rn at org.apache.commons.digester.Digester.startElement(Digester.java:1273)rn at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:65)rn at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)rn at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1567)rn at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)rn at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)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:287)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)rn2010-5-6 21:52:37 org.apache.catalina.startup.HostConfig deployDescriptorsrn严重: Error deploying configuration descriptor .xmlrnjava.io.IOException: java.io.IOException: 设备未就绪。rn at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:494)rn at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)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:287)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Tomcat 报错!!!
信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2011-1-4 15:08:01 com.opensymphony.xwork2.util.logging.commons.CommonsLogger errorrn严重: Dispatcher initialization failedrnUnable to load configuration. - Class: gnu.xml.dom.DomElementrnFile: DomElement.javarnMethod: setAttributeNSrnLine: 249 - gnu/xml/dom/DomElement.java:249:-1rn Caused by: The operation violates XML Namespaces.rnMore Information: setting xmlns attribute to illegal valuernNode Name: struts - Class: gnu.xml.dom.DomElementrnFile: DomElement.javarnMethod: setAttributeNSrnLine: 249 - gnu/xml/dom/DomElement.java:249:-1rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893)rn ... 35 morernCaused by: gnu.xml.dom.DomEx: The operation violates XML Namespaces.rnMore Information: setting xmlns attribute to illegal valuernNode Name: strutsrn 2011-1-4 15:08:01 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - Class: gnu.xml.dom.DomElementrnFile: DomElement.javarnMethod: setAttributeNSrnLine: 249 - gnu/xml/dom/DomElement.java:249:-1rn Caused by: Unable to load configuration. - Class: gnu.xml.dom.DomElementrnFile: DomElement.javarnMethod: setAttributeNSrnLine: 249 - gnu/xml/dom/DomElement.java:249:-1rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn ... 29 morernCaused by: Unable to load jar:file:/C:/Documents%20and%20Settings/Administrator/Workspaces/MyEclipse%208.5/.metadata/.me_tcat/webapps/JasperReport2/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml - Class: gnu.xml.dom.DomElementrnFile: DomElement.javarnMethod: setAttributeNSrnLine: 249 - gnu/xml/dom/DomElement.java:249:-1rn Caused by: The operation violates XML Namespaces.rnMore Information: setting xmlns attribute to illegal valuernNode Name: struts - Class: gnu.xml.dom.DomElementrnFile: DomElement.javarnMethod: setAttributeNSrnLine: 249 - gnu/xml/dom/DomElement.java:249:-1rn 2011-1-4 15:08:01 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-1-4 15:08:01 org.apache.catalina.core.StandardContext startrn严重: Context [/JasperReport2] startup failed due to previous errorsrn2011-1-4 15:08:02 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.AbstractMethodError: gnu.xml.dom.DomDocument.setXmlVersion(Ljava/lang/String;)Vrn 2011-1-4 15:08:04 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-1-4 15:08:04 org.apache.catalina.core.StandardContext startrn严重: Context [/jfreechart] startup failed due to previous errorsrn2011-1-4 15:08:06 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.AbstractMethodError: gnu.xml.dom.DomDocument.setXmlVersion(Ljava/lang/String;)Vrn 2011-1-4 15:08:06 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-1-4 15:08:06 org.apache.catalina.core.StandardContext startrn严重: Context [/jfreechart.myeclipse.bak] startup failed due to previous errorsrn2011-1-4 15:08:08 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.AbstractMethodError: gnu.xml.dom.DomDocument.setXmlVersion(Ljava/lang/String;)Vrn 2011-1-4 15:08:10 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-1-4 15:08:10 org.apache.catalina.core.StandardContext startrn严重: Context [/Wuliu] startup failed due to previous errorsrn2011-1-4 15:08:10 org.apache.coyote.http11.Http11Protocol start
还是报错!
public class WebForm1 : System.Web.UI.Pagern rn protected System.Web.UI.WebControls.DataGrid DataGrid1;rn protected System.Data.SqlClient.SqlConnection sqlConnection1;rn protected WebApplication2.DataSet1 dataSet11;rn protected System.Data.SqlClient.SqlCommand sqlSelectCommand1;rn protected System.Data.SqlClient.SqlCommand sqlInsertCommand1;rn protected System.Data.SqlClient.SqlCommand sqlUpdateCommand1;rn protected System.Data.SqlClient.SqlCommand sqlDeleteCommand1;rn protected System.Web.UI.WebControls.Button Button1;rn protected System.Web.UI.WebControls.TextBox TextBox1;rn protected System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;rnrn private void Button1_Click(object sender, System.EventArgs e)rn rn sqlConnection1.Open();rnrn sqlDataAdapter1.Fill(dataSet11);rnrn DataGrid1.DataSource = dataSet11;rn DataGrid1.DataBind();rnrn rnrn private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)rn rn if(e.NewPageIndex>-1 && e.NewPageIndex
在tomcat logs 文件里面报错
Nov 25, 2015 12:19:09 AM de.javakaffee.web.msm.LockingStrategy onAfterLoadFromMemcachedrnWARNING: No validity info available for session D5BB269709BDBA19EAC98B1D5798CFFE-n1rnNov 25, 2015 12:19:09 AM de.javakaffee.web.msm.MemcachedBackupSessionManager deleteFromMemcachedrnINFO: Could not delete session from memcached.rnjava.lang.IllegalArgumentException: No node found for key bak:D5BB269709BDBA19EAC98B1D5798CFFE-n1rn at de.javakaffee.web.msm.SuffixBasedNodeLocator.getPrimary(SuffixBasedNodeLocator.java:93)rn at net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:558)rn at net.spy.memcached.MemcachedClient.addOp(MemcachedClient.java:277)rn at net.spy.memcached.MemcachedClient.delete(MemcachedClient.java:1476)rn at de.javakaffee.web.msm.LockingStrategy.onAfterDeleteFromMemcached(LockingStrategy.java:360)rn at de.javakaffee.web.msm.MemcachedBackupSessionManager.deleteFromMemcached(MemcachedBackupSessionManager.java:668)rn at de.javakaffee.web.msm.MemcachedBackupSessionManager.remove(MemcachedBackupSessionManager.java:982)rn at de.javakaffee.web.msm.MemcachedBackupSessionManager.remove(MemcachedBackupSessionManager.java:973)rn at org.apache.catalina.session.StandardSession.expire(StandardSession.java:788)rn at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:588)rn at de.javakaffee.web.msm.MemcachedBackupSessionManager.findSession(MemcachedBackupSessionManager.java:521)rn at org.apache.catalina.connector.Request.doGetSession(Request.java:2419)rn at org.apache.catalina.connector.Request.getSession(Request.java:2157)rn at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)rn at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:844)rn at com.zx.b2b.web.filter.FilterB2B.doFilter(FilterB2B.java:32)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)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 de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:146)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)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:861)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:745)
java学习笔记015:不同包的两个同名类,同时导入一个类是报错,怎么办???
今天工作的时候遇到一个小问题: 解决办法: 导入一个,另外一个用全路径访问。 例如同时用到了java.util.Date和java.sql.Date 那么只需要import java.util.Date; 定义import java.util.Date变量时直接使用 Date d = new Date(); 定义java.sql.Date时则写成 java.sql.Date d1 = new ...
oracle修改内存后报错
我对ORACLE数据库(11g R2 64bit)做了如下操作后:rnalter system set processes=500 scope=spfile;rnalter system set sga_max_size=6G scope=spfile;rnalter system set sga_target=5G scope=spfile;rnrn重启监听、oracle服务后报错如下:rnora-12514:监听程序当前无法识别连接描述符中请求的服务rnrn查了一下资料,修改listner.ora文件,rn加入如下内容: rn(SID_DESC =rn (GLOBAL_DBNAME = ORACLE)rn (ORACLE_HOME = D:\oracle\product\10.2.0\db_1) rn (SID_NAME = ORACLE)rn)rnrn重启监听、oracle服务报错如下rnora-01034:oracle not availablernora-27101:shared memory realm does not existrn进程ID :0rn会话ID:0 序列号:0rnrn在网上查阅各种资料,尝试很多方法都没有解决问题,请高手赐教
weblogic修改类后报错
Error 500--Internal Server Error rnjava.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?rn at org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(FacesContextUtils.java:83)rn at org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext(DelegatingVariableResolver.java:152)rn at org.springframework.web.jsf.DelegatingVariableResolver.getBeanFactory(DelegatingVariableResolver.java:141)rn at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:117)rn at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:100)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)rn at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)rn at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:72)rn at org.ajax4jsf.framework.ajax.AjaxContext.getCurrentInstance(AjaxContext.java:154)rn at org.ajax4jsf.framework.ajax.AjaxContext.getCurrentInstance(AjaxContext.java:138)rn at org.ajax4jsf.framework.ajax.AjaxViewRoot.getViewId(AjaxViewRoot.java:435)rn at com.sun.faces.application.StateManagerImpl.restoreState(StateManagerImpl.java:575)rn at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:89)rn at org.ajax4jsf.framework.ajax.AjaxStateManager.restoreView(AjaxStateManager.java:83)rn at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)rn at org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)rn at org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:150)rn at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)rn at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)rn at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)rn at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)rn at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Unknown Source)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)rn rn
修改MyEclipse自动提示后报错!
修改了“window”→“Preferences” rn“java”→“Editor”→“Content Assist”中“Auto Activation triggers for java”这个属性,rn把“.”改成了“.abcdefghijklmnopqrstuvwxyz(”后,写程序时写个字母就弹出错误提示框,郁闷!rnrn错误信息:rnrnCannot access compilation unitrnReason:Index out of boundsrnrn点OK后又出现一个错误框rnrnThe'org.eclipse.jdt.ui.JavaTypeCompletionProposalComputer' rnproposal computer from the 'org.eclipse.jdt.ui' rnplug-in did not complete normally. rnThe extension took too long to return from the 'computeCompletionProposals()' operation.rnrnTo avoid this message, disable the 'org.eclipse.jdt.ui' rnplug-in or disable the 'Type Proposals' category rnon the content assist preference page.rnrn求高手帮助!
不同包的两个同名类,同时导入一个类是报错,怎么办?
JAVA中不同包的两个同名类,同时导入一个类是报错,怎么办?问题描述解决办法 问题描述 在写爬虫时,同一个类中需要import org.jsoup.nodes.Document与org.bson.Document这两个类,但是报错了,同一个类中不能有两个同名的类。 解决办法 仅仅导入一个,或者不导入这两个包,需要调用时使用全部路径,即如下所示: org.jsoup.nodes.Document d...
servlet包 在j2sdk还是在tomcat中?
用jbuilder学servlet和jsp 现在搞不清楚 编译servlet用的javax.servlet.*和javax.servlet.http.*这两个包到底是从tomcat引入还是jdk自带
myeclipse10在创建servlet包时,包名报错
package com.oracle.www.zuoye;import java.util.Scanner;public class Test7 {public double oldNumber(int n){ int count=0; int x=n; int k=0; double s=0; while(n!=0){ n-=2;
新建的servlet报错没有对应的包
主要原因项目没有配置好tomcat服务 解决: 右键项目名称,进入properties进行配置 点击左边菜单里面的targeted Runtimes就可以看到tomcat没有进行勾选,这就是出现这个情况的根本原因。 勾选上tomcat,然后点击apply应用,然后点击OK,就可以啦! ...
jsp页面里无法自动补全和servlet包报错
开发过程中遇到两个问题: 1.jsp页面下使用java代码时request. 后面无法自动补全; 2.在编码时java.servlet.http.HttpServletRequest和java.servlet.http.HttpServletResponse包报错。 首先你要知道这两个报错根本是来自哪里。这两个报错都是由于tomcat服务器引起的,因为项目中缺少jsp-api.jar和ser
Tomcat运行Servlet,JSP页面请求转发报错解决方法
遇到开不开jsp页面,404报错:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.解决方法:1.双击Tomcat服务器进入配置页面Server Locations不可选,删除服务器,重新配置Tom...
Tomcat访问Servlet页面报错404
[img=https://img-bbs.csdn.net/upload/201812/27/1545884361_973000.png][/img][img=https://img-bbs.csdn.net/upload/201812/27/1545884362_354659.png][/img][img=https://img-bbs.csdn.net/upload/201812/27/1545884362_498786.png][/img]rnrn如图。最近课程中刚学上Servlet,现在在宿舍里试着配置了一下发现不行。还需要截图什么信息请告知我,我马上补上
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制