关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 5972|回复: 4

[代码生成器] 将demo导入Myeclipse中按照开发文档配置后启动tomcat报错

[复制链接]
发表于 2015-11-16 16:41:51 | 显示全部楼层 |阅读模式
这些事错误信息:
十一月 16, 2015 4:26:10 下午 org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addServlet
    at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:849)
    at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    at 。。。。。。。。。。。。

十一月 16, 2015 4:26:10 下午 org.apache.catalina.startup.ContextConfig parseWebXml
SEVERE: Parse error in application web.xml file at file:/D:/Program%20Files%20(x86)/apache-tomcat-7.0.62/conf/web.xml
org.xml.sax.SAXParseException; systemId: file:/D:/Program%20Files%20(x86)/apache-tomcat-7.0.62/conf/web.xml; lineNumber: 114; columnNumber: 15; Error at (114, 15) : org.apache.catalina.deploy.WebXml addServlet
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2705)
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2737)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1063)
    at 。。。。。。。。
    at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    ... 31 more
十一月 16, 2015 4:26:10 下午 org.apache.catalina.startup.ContextConfig parseWebXml
SEVERE: Occurred at line 114 column 15
十一月 16, 2015 4:26:10 下午 org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
    at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:849)
    at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
    at 。。。。。。。。。。。。。
。。。。。。。。。。。。
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
十一月 16, 2015 4:26:10 下午 org.apache.catalina.startup.ContextConfig parseWebXml
SEVERE: Parse error in application web.xml file at jndi:/localhost/jeecg/WEB-INF/web.xml
org.xml.sax.SAXParseException; systemId: jndi:/localhost/jeecg/WEB-INF/web.xml; lineNumber: 29; columnNumber: 11; Error at (29, 11) : org.apache.catalina.deploy.WebXml addFilter
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2705)
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2737)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1063)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
    at 。。。。。。。。。。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
    at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:849)
    at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    ... 30 more

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

使用run configurations启动时的控制台信息
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jeecgframework:jeecg:war:3.5.2
[WARNING] 'dependencies.dependency.systemPath' for com.baidu.ueditor:ueditor:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/ueditor-1.1.1.jar will be unresolvable by dependent projects @ line 826, column 16
[WARNING] 'dependencies.dependency.systemPath' for com.baidu.ueditor:json:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/json.jar will be unresolvable by dependent projects @ line 833, column 16
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building jeecg 3.5.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ jeecg >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jeecg ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 34 resources
[INFO] Copying 54 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jeecg ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ jeecg <<<
[INFO]
[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ jeecg ---
[WARNING] The POM for org.apache.maven:maven-plugin-api:jar:2.0.8 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-artifact-manager:jar:2.0.8 is missing, no dependency information available
[WARNING] The POM for org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-artifact:jar:2.0.8 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-project:jar:2.0.8 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-archiver:jar:2.2 is missing, no dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-classworlds:jar:2.2.2 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:catalina:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:catalina-ha:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:tribes:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:el-api:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:jasper:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:jasper-el:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:jasper-jdt:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:jsp-api:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:servlet-api:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:coyote:jar:6.0.29 is missing, no dependency information available
[WARNING] The POM for org.apache.tomcat:dbcp:jar:6.0.29 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.255 s
[INFO] Finished at: 2015-11-16T16:37:26+08:00
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run (default-cli) on project jeecg: Execution default-cli of goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run failed: Plugin org.codehaus.mojo:tomcat-maven-plugin:1.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-archiver:jar:2.2, org.codehaus.plexus:plexus-utils:jar:1.0.4, org.apache.tomcat:catalina:jar:6.0.29, org.apache.tomcat:catalina-ha:jar:6.0.29, org.apache.tomcat:tribes:jar:6.0.29, org.apache.tomcat:el-api:jar:6.0.29, org.apache.tomcat:jasper:jar:6.0.29, org.apache.tomcat:jasper-el:jar:6.0.29, org.apache.tomcat:jasper-jdt:jar:6.0.29, org.apache.tomcat:jsp-api:jar:6.0.29, org.apache.tomcat:servlet-api:jar:6.0.29, org.apache.tomcat:coyote:jar:6.0.29, org.apache.tomcat:dbcp:jar:6.0.29: Cannot access central (http://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven:maven-archiver:jar:2.2 has not been downloaded from it before. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluen ... ResolutionException


 楼主| 发表于 2015-11-16 16:45:33 | 显示全部楼层
在线等 求大神帮助:
发表于 2015-11-16 21:23:50 | 显示全部楼层
[ERROR] No plugin found for prefix 'tomcat6' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (D:\code\m2), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluen ... dForPrefixException
是不是这个错误啊?
 楼主| 发表于 2015-11-19 09:36:40 | 显示全部楼层
zhangmj34 发表于 2015-11-16 21:23
[ERROR] No plugin found for prefix 'tomcat6' in the current project and in the plugin groups [org.ap ...

看着不是一个问题 我的应该是环境问题 不知道是碰了哪了 自己又好了
发表于 2015-12-9 09:43:54 | 显示全部楼层
你启动maven的时候,是  tomcat6:run 吗?改成tomcat:run试试
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表