• Eclipse配置Tomcat服务器和Dynamic Web Project的问题


    在eclipse配置tomcat的时候,我发现在Eclipse---Preferences---server---Runtime Environment中,点击“Add”按钮,里面看不到tomcat的,只有个“J2EE Runtime Library”。 

     
    解决办法:
    1. Help -> Install New Software
    2. Choose "Luna - http://download.eclipse.org/releases/Luna" site
    3. Expand "Web, XML, and Java EE Development"
    4. Check JST Server Adapters (version 3.2.2) and  JST Server Adapters Extentions

    如果原生的Eclipse没有Dynamic Web Project, 需要安装以下plugin. The list is:

    • Eclipse Java EE Developer Tools
    • Eclipse Java Web Developer Tools
    • Eclipse Web Developer Tools
    • Eclipse XML Editors and Tools

    Apache Tomcat的设置

    Setting the JAVA_HOMECATALINA_HOME Environment Variable on Windows

    One can do using command prompt:

    1. set JAVA_HOME=C: "top level directory of your java install"
    2. set CATALINA_HOME=C: "top level directory of your Tomcat install"
    3. set PATH=%PATH%;%JAVA_HOME%in;%CATALINA_HOME%in

    OR you can do the same:

    1. Go to system properties
    2. Go to environment variables and add a new variable with the name JAVA_HOME and provide variable value as C: "top level directory of your java install"
    3. Go to environment variables and add a new variable with the name CATALINA_HOME and provide variable value as C: "top level directory of your Tomcat install"
    4. In path variable add a new variable value as ;%CATALINA_HOME%in;

    Tips

    1. 安装时一定要以管理员权限安装,否则以后会有权限的麻烦。

    2. 如果在运行时出现Catalina.log <access denied>的error,可以通过修改Top level tomcat directory权限的方法使用户获得读写权限,进而解决问题。

  • 相关阅读:
    代理模式
    建造者模式
    开源版本 hadoop-2.7.5 + apache-hive-2.1.1 + spark-2.3.0-bin-hadoop2.7整合使用
    Phoenix映射HBase数据表
    使用sqoop将mysql中表导入hive中报错
    数据库索引原理及优化(转载)
    6.JAVA知识点归纳整理
    5.hbase表新增数据同步之add_peer
    mongodb分布式集群搭建
    4.HBASE数据迁移方案(之snapshot):
  • 原文地址:https://www.cnblogs.com/Raymond-Yang/p/5378619.html
Copyright © 2020-2023  润新知