Maven使用tomcat7运行报错:Unable to determine URL for WEB-INF/classes
来源:互联网 发布:预科生的贩毒网络豆瓣 编辑:程序博客网 时间:2024/05/24 11:13
在pom.xml中的配置如下:
<build> <finalName>maven_demo_web</finalName> <pluginManagement> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0-beta-1</version> <configuration> <url>http://localhost:8080/manager/text</url> <server>tomcat</server> </configuration> </plugin> </plugins> </pluginManagement> </build>
点击tomcat7:run 之后:报错了:
Unable to determine URL for WEB-INF/classes七月 07, 2017 3:07:29 下午 org.apache.catalina.startup.ContextConfig webConfig严重: Unable to determine URL for WEB-INF/classesjavax.naming.NameNotFoundException: Resource /WEB-INF/classes not found at org.apache.naming.resources.BaseDirContext.listBindings(BaseDirContext.java:733) at org.apache.naming.resources.ProxyDirContext.listBindings(ProxyDirContext.java:546) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1197) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:825) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)七月 07, 2017 3:07:30 下午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["http-bio-8080"]
*后来在over stackflow上找到了解决办法:
这实际上是Tomcat 7.0.25中的一个错误,并在Tomcat 7.0.26中修复。另见第52511号。请注意,您只需继续使用您的Web应用程序!这个日志纯粹是非正式的,不会阻止Tomcat启动和运行。这是由于Tomcat扫描注释类的方式发生变化。当您的Eclipse项目中没有任何类时,此堆栈跟踪将被打印,因此/WEB-INF/classes保持为空。
升级到Tomcat 7.0.26将会隐藏这个日志。您也可以完全忽略它,并像往常一样继续使用Tomcat。
根据意见,*
阅读全文
0 0
- Maven使用tomcat7运行报错:Unable to determine URL for WEB-INF/classes
- Unable to determine URL for WEB-INF/classes
- Unable to load configuration. - action - file:/C:/Tomcat7.0/webapps/test8/WEB-INF/classes/struts.xml
- hive select报错 Unable to determine if hdfs
- Spring报错: Unable to determine the correct call signature
- Unable to scan WEB-INF for JAX-RS annotations
- Unable to load configuration. - action - file:/D:/apache-tomcat-6.0.39/webapps/SSH/WEB- INF/classes
- Unable to load configuration. - action - file:.../webapps/logonProject/WEB-INF/classes/struts.xml
- 使用Maven整合ssm框架的时候报错:target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径。)
- IntellijIDEA14中使用maven构建web项目时web-inf下classes的生成
- Unable to load configuration. - action - file:/F:/apache-tomcat-7.0.27/webapps/CRM/WEB-INF/classes/s
- 使用maven创建新项目出现Unable to determine the release version错误
- tomcat版本低招致启动报"Unable to process Jar entry" for all javassist classes
- eclipse报错,显示 Unable to update index for central|http://repo1.maven.org/maven2
- maven项目由于环境问题报错:Unable to compile class for JSP
- java.io.FileNotFoundException: class path resource [WEB-INF/classes/cn/golaxy/yqpt/pojo/] cannot be resolved to URL because it
- Android运行项目报错:Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- 大数据学习15:报错 FAILED: SemanticException Unable to determine if
- flashsim源码阅读7-7笔记
- vim ctrl+s 就死
- JAVA状态模式2
- mysql中timestamp数据类型
- java synchronized类锁,对象锁详解(转载)
- Maven使用tomcat7运行报错:Unable to determine URL for WEB-INF/classes
- [Leetcode] 275. H-Index II 解题报告
- for in和for of区别
- HttpUrlConnetionGet
- ajax异步上传文件
- cannot change version of project facet Dynamic Web Module to 3.
- beaglebone black 的Qt开发环境搭建
- 数据库SQL优化大总结之 百万级数据库优化方案
- web学习日志-html