eclipse问题汇总

无法新建server

安装  JST Server Adapters Extensions插件或者tomcat插件。

启动tomcat后无法访问8080端口

双击新建的server,修改server Locations为tomcat installation。

项目无法添加到server

右键项目,在project facets中,勾选java和dynamic web module。

项目无法正常部署,缺少deployment assembly

修改.project文件,样本:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>environment</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    </natures>
</projectDescription>

 

 

 

Author: bkdwei

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注