`

Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules

阅读更多
refer to http://www.cnblogs.com/chanedi/articles/2112477.html

最近在用eclipse做项目,新建项目时什么都贪新,用最新的版本,在Dynamic web module version栏里选了最新的3.0版本,布署项目的时候就出现了如期的错误,在网上看到http://hi.baidu.com/yolanda441/b ... 41d36dd1164e2e.html这位兄弟的博客,解决了问题,现将方法贴于此,希望对别人有所帮助:

《通过search,发现在project的.setting folder下面,有个名为org.eclipse.wst.common.project.facet.core.xml的文件,里面配置有各种版本信息。此时,按照本机配置修改这个文件,问题就解决了。

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v5.5"/>
<fixed facet="jst.web"/>
<fixed facet="jst.java"/>
<installed facet="jst.java" version="5.0"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>


像我这样的错误,可以下载Tomcat 7。0解决,不过我闲麻烦,干脆就在配置文件中把<installed facet="jst.web" version="3.0"/> 改成低些的版本version="2.5" 就好了


但是有的时候按照上述方法直接修改之后的话, 会报告找不到org.eclipse.wst.common.project.facet.core.xml该文件错误, 所以最稳妥的方法就是在创建该Dynamic web project的时候就选择低于3.0的版本.



建议恢复到干净的eclipse(楼主使用java ee就对了,eclipse3.5之后的版本对tomcat6.0及以下版本有很好的支持),然后切换到java ee视图或者window-show view 选server,在server视窗内右键新建server,选择tomcat6.0,选择你的tomcat路径,然后在server上右键add and remove...把你的项目选到右边,启动,肯定能行
ps:
1.双击新建的tomcatserver,可以灵活配置tomcat端口及超时,还有发布目录,楼主可用默认目录,增大tomcat启动超时时间,默认45秒
2.新建tomcat后,会看到项目视图除了项目外,会多出来一个server目录,选进去,打开server.xml,然后可以看到你开发环境启动tomcat会使用的server.xml配置,所以你使用eclipse启动tomcat时,不会影响你的tomcat目录,它还是干干净净的,这就解决了你一个tomcat在开发时,支持几十个项目的启动,不需要再复制成一个个tomcat了。
分享到:
评论

相关推荐

    JBoss Application Server

    The J2EE platform manages the infrastructure and supports the Web services to enable development of secure, robust and interoperable business applications.” J2EE 1.3 Technologies Enterprise ...

    QTTabBar_1.2.1.3_glb.zip

    Version 1.1 ( 2007-9-5 ) +Supports Plugins +Supports language file +Option to send window to task tray +Option to specify Preview tip max size +now Toolbar background color is available on XP +merged...

    Professional Servlets and JSP The J2EE Web Tier

    Web applications using the new JavaServer Pages 2.0 and Servlets 2.4. Servlets and JavaServer Pages (JSP) provide a robust solution to developing large, complex Web applications, including multiserver...

    (AIX 5L Version 5.2)Technical Reference: Base Operating System and Extensions, Volume 1

    · AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1 and AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2 provide information ...

    Programming.Google.App.Engine.with.Java

    This practical guide shows intermediate and advanced web and mobile app developers how to build highly scalable Java applications in the cloud with Google App Engine. The flagship of Google's Cloud ...

    java7帮助文档

    This release contains Java API for XML Processing (JAXP) 1.4.5, supports Java Architecture for XML Binding (JAXB) 2.2.3, and supports Java API for XML Web Services (JAX-WS) 2.2.4. ...

    (AIX 5L Version 5.2)Technical Reference: Kernel and Subsystems, Volume 1

    &lt;br&gt;· AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1 and AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2 provide ...

    EASYCHARTS JAVA CHART COMPONENTS

    supports JDK 1.0.2, 1.1, and 1.2 barchart, piechart, and linechart integer and floating point number support positive and negative number support sample colors can be set chart features are ...

    (AIX 5L Version 5.2)Technical Reference: Kernel and Subsystems, Volume 2

    &lt;br&gt;· AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1 and AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2 provide ...

    万能脱壳工具 病毒分析工具 V1.4

    dumpping memory, processesing the overlay, PE address conversion, supporting PEid plugins, computing MD5 and efficient use of third-party tools, and so on. It is also used for disposing the Trojan ...

    SourceNavigator_6.0

    Source-Navigator is a source code analysis tool....Source-Navigator supports C, C++, Java, Tcl, [incr Tcl], FORTRAN and COBOL, and provides and SDK so that you can write your own parsers.

    (AIX 5L Version 5.2)Technical Reference: Base Operating System and Extensions, Volume 2

    &lt;br&gt;· AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1 and AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2 provide ...

    JADE-all-4.1.zip_Agent_JADE4.1_Multi Agent System_jade java_jade

    JADE(JAVA Agent开发框架)是一个完全由JAVA语言开发的软件,它简化了多Agent系统的实现。-JADE (Java Agent DEvelopment Framework) is a ... The only system requirement is the Java Run Time version 1.4 or later

    HTML5 and JavaScript Web Apps

    This hands-on book shows you how to work with HTML5, JavaScript MVC frameworks, and the latest W3C specifications to build mobile and desktop web apps that are widely supported across all browsers and...

    Java邮件开发Fundamentals of the JavaMail API

    1.2.x, and J2SE version 1.3.x. Note: After installing Sun's JavaMail implementation, you can find many example programs in the demo directory. Installing JavaMail 1.2 To use the JavaMail 1.2 ...

    JSTL1.2详细配置

    The most important difference is that JSTL 1.2.x supports Unified EL (Expression Language) , where as JSTL 1.1.x supports only traditional EL. With Unified EL it becomes very easy to combine the EL ...

    《Java Servlet编程(第二版)》英文版 chm (含源码)

    Servlets have become the basis for JavaServer Pages (JSP) and other frameworks, and servlet technology now supports such high-traffic sites as ESPN.com and AltaVista.com. Not surprisingly, the ...

    java反编工具java反编工具

    DJ Java Decompiler supports drag-and-drop functions for OLE. 4.In Windows Explorer Right mouse-button pop-up menu available too. NEW IN THIS VERSION: 1. Some bugs fixed. 2. New decompiler options ...

    Json.NET 6.0 R3 For.NET(2.0-4.5)

    LINQ to JSON is good for situations where you are only interested in getting values from JSON, you don't have a class to serialize or deserialize to, or the JSON is radically different from your class...

    EMS Excel Report v1.3

    ExcelReport supports Borland Delphi 5, 6, 7, and MS Office 97 SR-1, 2000, 2002 (XP).Main features:1. Creating report templates directly in MS Excel.2. Possibility of saving template as in the ...

Global site tag (gtag.js) - Google Analytics