Eclipse FAQs and Solutions

Source: Internet
Author: User
Tags aop apache tomcat

1. Target Runtime Apache Tomcat v6.0 is not defined. Error resolution

Original: http://blog.csdn.net/xw13106209/article/details/5910358

Workaround:

In the. Settings folder under the project directory, open the Org.eclipse.wst.common.project.facet.core.xml file with the following contents:

<?xmlversion= "1.0" encoding= "UTF-8"?>
<faceted-project>
<runtimename= "Apache Tomcat v6.0"/>
<fixedfacet= "Jst.web"/>
<fixedfacet= "Jst.java"/>
<installedfacet= "Jst.java" version= "6.0"/>
<installedfacet= "Jst.web" version= "2.5"/>
<installedfacet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>

Modify it to:

<?xml version= "1.0" encoding= "UTF-8"?> <faceted-project></faceted-project>

2. Export of dependent packages
. classpath file, open

<?xml version= "1.0" encoding= "UTF-8"?>
<classpath>
<classpathentry including= "**/*.java" kind= "src" output= "target/test-classes" path= "Src/test/java"/>
<classpathentry including= "**/*.java" kind= "src" path= "Src/main/java"/>
<classpathentry excluding= "**/*.java" kind= "src" path= "src/main/resources"/>
<classpathentry kind= "Con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported= "true" Kind= "var" path= "M2_repo/junit/junit/4.8.2/junit-4.8.2.jar"/>
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/springframework/spring-core/3.0.5.release/ Spring-core-3.0.5.release.jar "/>
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/springframework/spring-asm/3.0.5.release/ Spring-asm-3.0.5.release.jar "/>
<classpathentry exported= "true" Kind= "var" path= "M2_REPO/COMMONS-LOGGING/COMMONS-LOGGING/1.1.1/ Commons-logging-1.1.1.jar "Sourcepath=" m2_repo/commons-logging/commons-logging/1.1.1/ Commons-logging-1.1.1-sources.jar ">
<attributes>
<attribute name= "javadoc_location" value= "jar:file:/c:/users/wangwei1/.m2/repository/commons-logging/ commons-logging/1.1.1/commons-logging-1.1.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/springframework/spring-context/3.0.5.release/ Spring-context-3.0.5.release.jar "/>
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/springframework/spring-aop/3.0.5.release/ Spring-aop-3.0.5.release.jar "/>
<classpathentry exported= "true" Kind= "var" path= "M2_repo/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/springframework/spring-beans/3.0.5.release/ Spring-beans-3.0.5.release.jar "/>
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/springframework/spring-expression/3.0.5.release/ Spring-expression-3.0.5.release.jar "/>
<classpathentry exported= "true" Kind= "var" path= "M2_repo/org/aspectj/aspectjrt/1.6.11/aspectjrt-1.6.11.jar"/ >
<classpathentry exported= "true" Kind= "var" path= "m2_repo/org/aspectj/aspectjweaver/1.6.11/ Aspectjweaver-1.6.11.jar "/>
<classpathentry exported= "true" Kind= "var" path= "M2_repo/cglib/cglib/2.2.2/cglib-2.2.2.jar" sourcepath= "M2_REPO /cglib/cglib/2.2.2/cglib-2.2.2-sources.jar ">
<attributes>
<attribute name= "javadoc_location" value= "jar:file:/c:/users/wangwei1/.m2/repository/cglib/cglib/2.2.2/ cglib-2.2.2-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry exported= "true" Kind= "var" path= "M2_repo/asm/asm/3.3.1/asm-3.3.1.jar"/>
<classpathentry kind= "Output" path= "Target/classes"/>
</classpath>

You can add a dependency package by copying it. If you join:

<classpathentry exported= "true" Kind= "var" path= "M2_repo/asm/asm/3.3.1/asm-3.3.1.jar"/>

Copy the. classpath file into the new project to



Eclipse FAQs and Solutions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.