idea启动tomcat的时候报错了,对某一个servlet找不到? 40C

在网页上其他功能都可以实现,只要涉及到这个servlet的全都出错。之前都是好好的!我也不知道为什么会这样

图片说明
图片说明
图片说明

17-Apr-2018 10:09:50.393 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource Unable to process web resource [/WEB-INF/classes/org/zhh/hotel/controller/OrderServlet.class] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: It is not a Java .class file
at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:200)
at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:78)

at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1733)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

9个回答

把原先的tomcat卸载了,然后从新安装就可以了

项目clean一下,再install试试

把代码贴出来看看,是不是import错了包.

qq_39671843
kikovy 没有,昨天还是完全可以走通的,昨天电脑卡了之后自己重启了,后面就是这样的了
一年多之前 回复

你的注解有问题,检查一下注解

首先你需要确定是项目的问题还是Tomcat的问题(换一个新的Tomcat跑一下)
2、如果新的Tomcat跑项目没问题那就是原来Tomcat的问题否则就是项目有问题
如果项目有问题就需要把代码贴出来看下

我认为是项目本身的问题,可能这个.class文件没有加载上

建议重新安装Tomcat,我之前也遇见过这类情况

可能是版本里面缺少对应的文件 可以换个版本试试 把真个tomcat删了 重新安装配置

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
idea启动tomcat报找不到catalina.bat
今天换一台机器,系统win10,安装完idea后,配置tomcat启动,一直报rnError running Unnamed: Cannot run program "D:\server\tomcat3\apache-tomcat-7.0.77\bin\catalina.bat" (in directory "D:\server\tomcat3\apache-tomcat-7.0.77\bin"): CreateProcess error=2, 系统找不到指定的文件。rnrn但是catalina.bat 存在的,点击startup.bat也能运行,换了好几个tomcat,包括6.X 7.X都是一样的问题rn有没有人遇见过同样的问题,是怎么解决的呀rn[img=https://img-bbs.csdn.net/upload/201705/11/1494463378_465454.png][/img]rn[img=https://img-bbs.csdn.net/upload/201705/11/1494463402_642807.png][/img]
IDEA启动tomcat报文件找不到!求助!!!
感谢各位大神来帮忙!rnC:\apache-tomcat-7.0.77\bin\catalina.bat runrn[2017-12-19 07:34:29,694] Artifact UMMP-web:war exploded: Server is not connected. Deploy is not available.rnUsing CATALINA_BASE: "C:\Users\GTS\.IntelliJIdea2017.1\system\tomcat\Unnamed_UMMP_3"rnUsing CATALINA_HOME: "C:\apache-tomcat-7.0.77"rnUsing CATALINA_TMPDIR: "C:\apache-tomcat-7.0.77\temp"rnUsing JRE_HOME: "C:\JAVA\JDK1.8\jdk1.8.0_101"rnUsing CLASSPATH: "C:\apache-tomcat-7.0.77\bin\bootstrap.jar;C:\apache-tomcat-7.0.77\bin\tomcat-juli.jar"rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/7.0.77rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Mar 28 2017 16:01:48 UTCrn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 7.0.77.0rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\JAVA\JDK1.8\jdk1.8.0_101\jrern十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.8.0_101-b13rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: C:\Users\GTS\.IntelliJIdea2017.1\system\tomcat\Unnamed_UMMP_3rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: C:\apache-tomcat-7.0.77rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.util.logging.config.file=C:\Users\GTS\.IntelliJIdea2017.1\system\tomcat\Unnamed_UMMP_3\conf\logging.propertiesrn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManagerrn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcom.sun.management.jmxremote=rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=falsern十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=falsern十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=C:\apache-tomcat-7.0.77\endorsedrn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=C:\Users\GTS\.IntelliJIdea2017.1\system\tomcat\Unnamed_UMMP_3rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=C:\apache-tomcat-7.0.77rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.io.tmpdir=C:\apache-tomcat-7.0.77\temprn十二月 19, 2017 7:34:30 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.rn十二月 19, 2017 7:34:30 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn十二月 19, 2017 7:34:31 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)rn十二月 19, 2017 7:34:31 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn十二月 19, 2017 7:34:31 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn十二月 19, 2017 7:34:31 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1427 msrn十二月 19, 2017 7:34:31 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn十二月 19, 2017 7:34:31 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.77rn十二月 19, 2017 7:34:31 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-apr-8080"]rn十二月 19, 2017 7:34:31 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-apr-8009"]rn十二月 19, 2017 7:34:31 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 71 msrnConnected to serverrn[2017-12-19 07:34:31,893] Artifact UMMP-web:war exploded: Artifact is being deployed, please wait...rn十二月 19, 2017 7:34:32 下午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFilern信息: validateJarFile(E:\work\develop\UMMP\UMMP-web\target\UMMP-web-1.0-SNAPSHOT\WEB-INF\lib\javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.classrn十二月 19, 2017 7:34:32 下午 org.apache.catalina.deploy.WebXml setVersionrn警告: Unknown version string [3.1]. Default version will be used.rn十二月 19, 2017 7:34:39 下午 org.apache.catalina.startup.TldConfig executern信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.rnERROR StatusLogger No Log4j context configuration provided. This is very unusual.rn19:34:40.809 [RMI TCP Connection(5)-127.0.0.1] INFO org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer - Loading properties file from class path resource [jdbc.properties]rn19:34:40.812 [RMI TCP Connection(5)-127.0.0.1] INFO org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer - Loading properties file from class path resource [datasource.properties]rn19:34:41.662 [RMI TCP Connection(5)-127.0.0.1] ERROR org.activiti.rest.common.servlet.ActivitiServletContextListener - Could not start the Activiti REST APIrn十二月 19, 2017 7:34:41 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory C:\apache-tomcat-7.0.77\webapps\managerrn十二月 19, 2017 7:34:41 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory C:\apache-tomcat-7.0.77\webapps\manager has finished in 138 msrn[2017-12-19 07:34:43,365] Artifact UMMP-web:war exploded: Artifact is deployed successfullyrn[2017-12-19 07:34:43,365] Artifact UMMP-web:war exploded: Deploy took 11,472 millisecondsrnrn所有的启动信息都在这了rn[img=https://img-bbs.csdn.net/upload/201712/19/1513683609_108530.png][/img]rn各种方法都试了,重新配tomcat,引入jar包....rn报错一下午了找不到解决方法[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/5.gif][/img]
各位看看哪里出错了,启动tomcat时候报错了!
各位看看哪里出错了,启动tomcat时候报错了!错误日志里的信息如下:2012-4-5 15:05:03 org.apache.catalina.startup.ContextConfig applicationWebConfigrn严重: Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xmlrnjava.lang.NullPointerExceptionrn at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)rn at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)rn at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)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:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)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: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)rnCaused by: java.lang.NullPointerExceptionrn at org.apache.xerces.readers.MIME2Java.convert(MIME2Java.java:784)rn at org.apache.xerces.readers.UTF8Recognizer.recognize(UTF8Recognizer.java:123)rn at org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory.java:160)rn at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:491)rn at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312)rn at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080)rn ... 28 more
tomcat在启动的时候找不到ContextLoaderPlugIn
org.springframework.web.struts.ContextLoaderPlugIn 而且我昨天运行程序的时候是没有问题的,不知道为什么早上一来.就出这个问题了. 严重: action: null java.lang.ClassNotFoundException: org.springframework.web.struts.ContextLoaderPlu...
Tomcat启动一闪而过(控制台报错了)
tomcat启动时如果执行startup.bat一闪而过,则可以在cmd 命令行窗体中: [b]catalina debug run[/b] tomcat是web容器,不是JBoss那样的javaee服务器,你发布的时候有些jar是发布不到tomcat中的,要手动拷贝到tomcat中。 还有就是你项目中的jar有可能和tomcat中的重复 ...
eclips启动不了tomcat。。报错了 求救
java.net.BindException: Address already in use: JVM_Bindrn at java.net.DualStackPlainSocketImpl.bind0(Native Method)rn at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)rn at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)rn at java.net.ServerSocket.bind(ServerSocket.java:376)rn at java.net.ServerSocket.(ServerSocket.java:237)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:427)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:779)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:725)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)rn
winxp 启动的时候报错了,怎么会这样?
今天早上开机的时候,winxp突然说启动错误,好像是缺少了system32厘的一个n*.*的文件,他要我修复。不过我重新启动以后就没事了。rnrn这是怎么回事?rnrn我装了98和xp两个系统。
springboot+jpa 单元测试的时候启动就报错了
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJp...
idea tomcat 启动项目报内存溢出 解决方法
之前公司启动项目是一直报错,找了很久发现才知道是Tomcat内存溢出 在 idea Tomcatserver 修改 VM option添加 “-Xms512m -Xmx512m -XX:MaxNewSize=256m -XX:MaxPermSize=256m ” 大小根据你项目的需要修改 。然后重新启动就OK了!
Tomcat启动报监听找不到的三个异常
这几天,启动Tomcat服务器频繁遇到一个问题,就是Tomcat启动的时候报出3个异常,都是报跟Spring-web.jar包下相关的Lister(监听)找不到,起初以为是我的工程中缺少Spring-web.jar这个包,我右键工程看了下Build Path里面所加入的架包,并没有缺少Spring-web.jar的情况,网上查了下,大部分人都是以为缺少架包,他们的解决方式是重新导入架包到Lib目录
maven项目启动tomcat时报错了找不到文件
2012-8-15 14:05:57 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:\china unicom\jdk\jdk1.6.0_16\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/china unicom/jdk/jdk1.6.0_16/bin/../jre/bin/client;D:/china unicom/jdk/jdk1.6.0_16/bin/../jre/bin;D:/china unicom/jdk/jdk1.6.0_16/bin/../jre/lib/i386;C:\Program Files\Common Files\NetSarang;D:\360Downloads\maven\apache-maven-2.2.1\bin;D:\Program Files\TortoiseSVN\bin;D:\china unicom\jdk\jdk1.6.0_16\bin;C:\WINDOWS\system32;C:\Program Files\SlikSvn\bin;D:\china unicom\eclipse3.6;rn2012-8-15 14:05:57 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-8-15 14:05:57 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 941 msrn2012-8-15 14:05:57 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-8-15 14:05:57 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.14rn2012-8-15 14:05:58 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rn2012-8-15 14:05:59 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.ucloud.paas.mq.dao.impl.ResourceDaoImpl; nested exception is java.io.FileNotFoundException: class path resource [com/ucloud/paas/common/dao/base/BaseDaoHibernate.class] cannot be opened because it does not existrn at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:195)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:142)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)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:3830)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)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:566)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.io.FileNotFoundException: class path resource [com/ucloud/paas/common/dao/base/BaseDaoHibernate.class] cannot be opened because it does not existrn at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)rn at org.springframework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:45)rn at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)rn at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)rn at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)rn at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:110)rn at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:85)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:191)rn ... 21 more
WAS7 启动的时候 报找不到server.xml的错。。
如下:rnC:\Program Files\IBM\WebSphere\AppServer\bin>startServer.bat server1rnADMU0116I: Tool information is being logged in file C:\Programrn Files\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\server1\startServernr.logrnADMU0128I: Starting tool with the Dmgr01 profilernADMU3100I: Reading configuration for server: server1rnADMU0111E: Program exiting with error: java.io.FileNotFoundException:rn C:\Programrn Files\IBM\WebSphere\AppServer\profiles\Dmgr01\config\cells\localhostCrnell01\nodes\localhostCellManager01\servers\server1\server.xmlrn (The system cannot find the path specified.)rnADMU1211I: To obtain a full trace of the failure, use the -trace option.rnADMU0211I: Error details may be seen in the file: C:\Programrn Files\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\server1\startServernr.logrnrn高手解答下。。。
tomcat测试servlet的时候说找不到resource???
初学一点东西!我的tomcat安装在E:\jakarta-tomcat-4.1.24目录下,有个HelloServlet.java文件我编译好后,产生了HelloServlet.class文件.把这个.class文件放在了E:\jakarta-tomcat-4.1.24\webapps\ROOT\WEB-INF\classes目录下.classes文件夹是自己建的!然后打开tomcat.在IE地址栏输入:http://localhost:8080/servlet/HelloServletrn提示信息:The requested resource (/servlet/HelloServlet) is not availablern书上说的编译好的.class文件放在上面的那个文件夹.为什么我的IE上显示不出网页?rn谢谢帮哈忙!rnrnimport java.io.*;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnrn/** Simple servlet used to test server.rn * rn * Taken from Core Servlets and JavaServer Pages 2nd Editionrn * from Prentice Hall and Sun Microsystems Press,rn * http://www.coreservlets.com/.rn * © 2003 Marty Hall; may be freely used or adapted.rn */rnrnpublic class HelloServlet extends HttpServlet rn public void doGet(HttpServletRequest request,rn HttpServletResponse response)rn throws ServletException, IOException rn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn String docType =rn "\n";rn out.println(docType +rn "\n" +rn " Hello\n" +rn "\n" +rn " Hello\n" +rn "");rn rn
整合S2SH的时候Tomcat启动报的错。
2012-2-19 18:07:44 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)Vrn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:62)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:249)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)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:1315)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:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)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)rn2012-2-19 18:07:45 org.apache.catalina.core.StandardContext startrnrnrn求指导。。。
tomcat 启动的时候 MapperListener.registerHost报空指针
java.lang.NullPointerExceptionrn at org.apache.catalina.connector.MapperListener.registerHost(MapperListener.java:332)rn at org.apache.catalina.connector.MapperListener.init(MapperListener.java:129)rn at org.apache.catalina.connector.Connector.start(Connector.java:1146)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:583)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)rn2011-10-30 10:30:15 org.apache.catalina.startup.Catalina startrn信息: Server startup in 2593 msrnrnrn我是和dorado集成的时候报的错?谁知道怎么回事?
tomcat启动的时候报classnotfound 错误
在tomcat 启动的时候报如下错误rnorg.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.inspur.common.SpringContextHolder] for bean with name 'springContextHolder' defined in ServletContext resource [/WEB-INF/conf/applicationContext_hibernate.xml]; nested exception is java.lang.ClassNotFoundException: com.inspur.common.SpringContextHolderrn 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.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1164)rn at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:275)rn at org.springframework.web.servlet.handler.AbstractHandlerMapping.detectMappedInterceptors(AbstractHandlerMapping.java:212)rn at org.springframework.web.servlet.handler.AbstractHandlerMapping.initApplicationContext(AbstractHandlerMapping.java:186)rn at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:57)rn at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)rn at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)rn at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)rn at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)rn at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)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:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)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:566)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.inspur.common.SpringContextHolderrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)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 ... 43 morern但是 我 的tomcat 写有此 class 文件rn[img=https://img-bbs.csdn.net/upload/201512/21/1450677036_512162.png][/img]rn另外 我的server.xml 如下配置rn[img=https://img-bbs.csdn.net/upload/201512/21/1450677142_326166.png][/img]rnrn求教 为什么会出现这个错误?
启动Tomcat的时候报45错误
那是因为你项目可能太大了  需要更改一下Tomcat的的时间  下图Tomcat右键 open将start和stop时间改一下就行了
tomcat启动的时候报异常,求助
rnSEVERE: StandardWrapper.Throwablernjava.lang.Error: Unresolved compilation problem: rn String literal is not properly closed by a double-quoternrn at common.sysutil.SystemConstants.addSystemParam(SystemConstants.java:65)rn at common.sysutil.SystemConstants.init(SystemConstants.java:50)rn at common.sysutil.SystemInitServlet.init(SystemInitServlet.java:35)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)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:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnrn四月 24, 2013 10:17:27 下午 org.apache.catalina.core.StandardContext loadOnStartuprnSEVERE: Servlet /DZBL threw load() exceptionrnjava.lang.Error: Unresolved compilation problem: rn String literal is not properly closed by a double-quoternrn at common.sysutil.SystemConstants.addSystemParam(SystemConstants.java:65)rn at common.sysutil.SystemConstants.init(SystemConstants.java:50)rn at common.sysutil.SystemInitServlet.init(SystemInitServlet.java:35)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)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:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn
idea tomcat启动时候中文乱码、问号
在服务器启动参数中添加 -Dfile.encoding=UTF-8
[Idea]idea debug 启动tomcat报端口占用错误
帮同事调试错误,经验记录: 启动tomcat后,左下角弹出错误提示: Error running tomcat:8080: unable to open debugger port (127.0.0.1:56383):java.net.SocketException “socket closed”首先,在哪里配置的这个端口: 解决方法: 任务管理器,把所有关于java进程的都关闭掉(不会影
tomcat启动时候找不到jar包(eclipse下)解决方案
把相关依赖的maven jar添进来就可以了
tomcat中找不到servlet
我编写了一个servlet Dispatch.java,通过index.jsp调用,rnrnindex.jsp代码如下:rn<%@ page language="java" contentType="text/html; charset=gb2312"%>rnrnrnrn MyStorernrnrn Welcome to MyStorern Click here to ">browse the catalogrnrnrnrn我用的是eclipse开发,Dispatch.java位于\WEB-INF\src\mystore.servlet包内web.xml中servlet设置如下:rnrn dispatcherrn mystore.servlet.Dispatcherrnrnrn dispatcherrn /dispatchrnrnrn运行后点击browse the catalog链接提示如下:rnHTTP Status 404 - /dispatchrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /dispatchrnrndescription The requested resource (/dispatch) is not available.rnrn是不是servlet设置错了??或者是请求错误?请高手帮忙解决下,谢谢。。。rn
Apache和tomcat下找不到servlet
我用http://localhost:8080/servlet/firstservlet可以执行servlet.rn但是用http://localhost/servlet/firstservlet却执行不了。rn不知为什么?请帮忙。rn谢谢!
tomcat 找不到 servlet
import javax.servlet.*;rnimport javax.servlet.http.*;rnimport java.io.*;rnimport java.util.*;rnrnpublic class MyTestServlet extends HttpServletrn private static final String CONTENT_TYPE="text/html;charset=GB2312";rn public void init(ServletConfig config) throws ServletExceptionrn super.init(config);rn rn public void doGet(HttpServletRequest request,HttpServletResponse response)rn throws ServletException,IOExceptionrn response.setContentType(CONTENT_TYPE);rn PrintWriter out = response.getWriter();rn out.print("");rn out.println(" MyTestServlet 小应用程序 ");rn out.print("");rn out.print(" MyTestServlet 小应用程序 ");rn out.print("");rn rn public void destroy()rn rn rn rnrnrnweb.xmlrnrnrnrnrnrnrn Welcome to Tomcatrn rn Welcome to Tomcatrn rnrnrnrnrn rn MyTestServletrn LianXi.MyTestServletrn rnrn rn MyTestServletrn /LianXi/MyTestServletrn rnrnrnrnrn
Tomcat中找不到servlet
最近学习servlet出了问题,很奇怪,就是找不到原因。rn情况如下:rn 将项目直接部署到Tomcat6.0的webapps下,JSP和servlet都能正常访问。rn 但如果在Tomcat/conf/Catalina/localhost下新建一个xml,配置虚拟路径,然后将项目部署到虚拟路径下,JSP能正常访问,但servlet就访问不了,报404错误。项目文件下已经生成了相应的class文件了的。rn The requested resource (/struts1/testservlet/servlet/TestServlet) is not available.rn rn 我试了用Tomcat5.5还是会有相同状况。rn找了很久都找不到原因,麻烦大家给点建议啊!!!
tomcat下找不到servlet!!!
我在webapps下建了一个game文件夹,结构如下:rn\webapps\rn \game\rn jsp1.jsprn WEB-INF\rn classes\rn servlet1.classrn并在server.xml中也写了:我把tomcat启动后,在浏览器中键入:http://127.0.0.1:8080/game/jsp1.jsp可以运行,但键入:http://127.0.0.1:8080/game/servlet/servlet1就不能运行了提示:找不到servlet/servlet1 的错!错误号404rn请高手指点!谢谢!!!
servlet 在tomcat中找不到.?????
新装了个tomcat4.1,想试一试servlet的配置.先从examples目录的WEB-INF/classes下copy HelloWorldExample.class 到 root/WEB-INF/classes中rn修改web.xmlrn加入:rn rn test rn HelloWorldExample rn rn rn test rn /servlet/HelloWorldExample rn rnrn启动tomcatrnrn可 :http://localhost:8080/servlet/HelloWorldExample 错rnhttp://localhost:8080/test 错rnhttp://localhost:8080/servlet/test 错rnhttp://localhost:8080/HelloWorldExample 错rnrn我晕!rn各位大虾帮帮我
Tomcat启动报超时
修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。  把 start-timeout="45" 改为  start-timeout="100" 或者更长 。
tomcat启动报警告
警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrn2004-6-25 18:41:20 java.util.jar.Attributes readrn警告: Duplicate name in Manifest: Class-Pathrnrnrn是什么意思 ?
tomcat 启动报端口占用
在做负载均衡测试时,把一个tomcat复制两份,并且放在同一个目录下面,部署相同的应用。rn修改其中的一个tomcat端口,启动后报异常rnSEVERE: StandardServer.await: create[8018]: rnjava.net.BindException: Address already in usern at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:363)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:616)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:576)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)rnAug 24, 2012 10:27:12 AM org.apache.coyote.http11.Http11BaseProtocol pausernrn不知道是什么样原因引起的,请指教一二,万分感谢
tomcat启动报404错误
一月 16, 2018 11:52:40 上午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrn一月 16, 2018 11:52:40 上午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn这是启动信息
启动tomcat报的错
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-action.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-action.xml] cannot be opened because it does not existrn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsrnrn请帮帮忙看看是什么错误!谢谢!
tomcat启动报数据库连接池
[2018-06-15 09:52:20] [ERROR] [com.alibaba.druid.pool.DruidDataSource:903] dataSource-104 init errorrnjava.sql.SQLException: com.microsoft.sqlserver.jdbc.SQLServerDriverrn at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:600)rn at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:815)rn at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43rn tomcat8+maven3.5.3;之前成功的,后来就报这个问题了,另一台电脑没报错;rnhibernate.dialect=org.hibernate.dialect.SQLServerDialectrnvalidationQuery.sql=SELECT 1rnjdbc.url.jeecg=jdbc:sqlserver://localhost:1433;DatabaseName=jeecgrnjdbc.username.jeecg=sarnjdbc.password.jeecg=123rnjdbc.dbType=sqlserver
IDEA启动tomcat失败
今天突然建IDEA启动tomcat项目一直失败,尝试替换了tomcat包一样的失败,无论给定什么JMX端口都提示端口被占用,output中没有任何的提示信息。 最后发现问题是hosts文件被篡改,删除异常的hosts配置问题就解决了 ::1 localhost fe80::1%lo0 localhost 估计是这两条东西也指向了localhost,把前面的127.0.0.1 local
idea 不能启动tomcat
装了个idea8试试,部署一个最简单的web工程到tomcat上,点击run的时候,老是报错:RUN ERROR : http://localhost:8080 is already in use ,可是我的tomcat根本没启动8080端口也没有呗占用,而且单独启动tomcat一切正常,就是不能通过IEDA启动。我一直用eclipse,第一次用idea,听说极其智能?难道智能的只有高端人士才会用吗 ?
idea工具配置tomcat启动
①点击进行配置 ②开始进行配置 ③配置相关  
报错了报错了
for(int i=0;i<5;i++)rn //初始化格式rn SimpleDateFormat s=new SimpleDateFormat("yyyy/MM/dd");rn //下周周一到周五的日期rn int years=ca.get(Calendar.YEAR);rn int month=ca.get(Calendar.MONTH)+1;rn int day=ca.get(Calendar.DATE)+i+1;rn Date da=new Date();rn if(day<=31)rn String a1="years/month/day";rn da=s.parse(a1); //报错rn elsern String a2="years/(month+1)/(day-31)";rn da=s.parse(a2); //报错rn rn rnrn使用Calendar这个类里面的方法
IDEA启动tomcat乱码
在网上找了一堆乱七八糟的办法并没什么用,最后在IDEA的安装目录的bin目录下 在这俩个文件中末尾添加以下代码即可 -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 再在IDEA中Ctrl+Alt+s打开Settings如下配置即可, 如能能解决问题希望给个赞,网上一些人的答案太坑了,费了半天功夫 ...
启动tomcat4.1报错了-哪儿错了?
dos窗口的信息(部分):rnrn2004-9-17 17:51:45 org.apache.commons.digester.Digester fatalErrorrn严重: Parse Fatal Error at line 13 column 2: The markup in the document followinrng the root element must be well-formed.rnorg.xml.sax.SAXParseException: The markup in the document following the root elernment must be well-formed.
jsp在运行的时候报错了
2012-9-24 10:55:16 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnorg.apache.jasper.JasperException: /findCustomerAllResult.jsp(33,2) According to TLD or attribute directive in tag file, attribute items does not accept any expressionsrn at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)rn at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)rn at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)rn at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1209)rn at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:846)rn at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)rn at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)rn at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)rn at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)rn at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)rn at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)rn at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)rn at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)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 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.BeifengQuote.Action.WebAction.forward(WebAction.java:20)rn at com.BeifengQuote.Action.CustomerFindAllAction.execute(CustomerFindAllAction.java:25)rn at com.BeifengQuote.Servlet.WebContral.doPost(WebContral.java:45)rn at com.BeifengQuote.Servlet.WebContral.doGet(WebContral.java:28)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)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 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:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rnorg.apache.jasper.JasperException: /findCustomerAllResult.jsp(33,2) According to TLD or attribute directive in tag file, attribute items does not accept any expressionsrn at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)rn at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)rn at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)rn at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1209)rn at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:846)rn at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)rn at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)rn at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)rn at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)rn at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)rn at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)rn at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)rn at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)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 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.BeifengQuote.Action.WebAction.forward(WebAction.java:20)rn at com.BeifengQuote.Action.CustomerFindAllAction.execute(CustomerFindAllAction.java:25)rn at com.BeifengQuote.Servlet.WebContral.doPost(WebContral.java:45)rn at com.BeifengQuote.Servlet.WebContral.doGet(WebContral.java:28)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)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 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:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn这是什么错误呀???rnrn
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview