li4562258fj155 发表于 2015-11-16 16:41:51

将demo导入Myeclipse中按照开发文档配置后启动tomcat报错

这些事错误信息:
十一月 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启动时的控制台信息
Scanning for projects...

Some problems were encountered while building the effective model for org.jeecgframework:jeecg:war:3.5.2
'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
'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

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

                                                                        
------------------------------------------------------------------------
Building jeecg 3.5.2
------------------------------------------------------------------------

>>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ jeecg >>>

--- maven-resources-plugin:2.6:resources (default-resources) @ jeecg ---
Using 'UTF-8' encoding to copy filtered resources.
Copying 34 resources
Copying 54 resources

--- maven-compiler-plugin:2.3.2:compile (default-compile) @ jeecg ---
Nothing to compile - all classes are up to date

<<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ jeecg <<<

--- tomcat-maven-plugin:1.1:run (default-cli) @ jeecg ---
The POM for org.apache.maven:maven-plugin-api:jar:2.0.8 is missing, no dependency information available
The POM for org.apache.maven:maven-artifact-manager:jar:2.0.8 is missing, no dependency information available
The POM for org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 is missing, no dependency information available
The POM for org.apache.maven:maven-artifact:jar:2.0.8 is missing, no dependency information available
The POM for org.apache.maven:maven-project:jar:2.0.8 is missing, no dependency information available
The POM for org.apache.maven:maven-archiver:jar:2.2 is missing, no dependency information available
The POM for org.codehaus.plexus:plexus-classworlds:jar:2.2.2 is missing, no dependency information available
The POM for org.apache.tomcat:catalina:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:catalina-ha:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:tribes:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:el-api:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:jasper:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:jasper-el:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:jasper-jdt:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:jsp-api:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:servlet-api:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:coyote:jar:6.0.29 is missing, no dependency information available
The POM for org.apache.tomcat:dbcp:jar:6.0.29 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3.255 s
Finished at: 2015-11-16T16:37:26+08:00
Final Memory: 7M/18M
------------------------------------------------------------------------
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. ->

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


li4562258fj155 发表于 2015-11-16 16:45:33

在线等 求大神帮助::'(

zhangmj34 发表于 2015-11-16 21:23:50

No plugin found for prefix 'tomcat6' in the current project and in the plugin groups available from the repositories http://repo.maven.apache.org/maven2)] ->

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
是不是这个错误啊?

li4562258fj155 发表于 2015-11-19 09:36:40

zhangmj34 发表于 2015-11-16 21:23 static/image/common/back.gif
No plugin found for prefix 'tomcat6' in the current project and in the plugin groups

看着不是一个问题 我的应该是环境问题 不知道是碰了哪了 自己又好了

showern123 发表于 2015-12-9 09:43:54

你启动maven的时候,是tomcat6:run 吗?改成tomcat:run试试
页: [1]
查看完整版本: 将demo导入Myeclipse中按照开发文档配置后启动tomcat报错