`

Cannot create a server using the selected type

 
阅读更多

问题描述:在eclipse中创建server时,当选择"Tomcat v6.0 Server"就会出错,不允许我创建,如下图:

该问题有2个解决办法 

 

办法1: 清除配置——————————————

 1.退出 eclipse

2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime

3.把org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉

4.重启eclipse

 

办法2: 修复配置——————————————

 

原因:我在整理电脑的时候,把原来配置的tomcat的路径给移动,所以eclipse不能找到,也不能重新创建

 

解决方法:Window->preferences->Server->Runtime Environment,改变tomcat的目录为你安装的目录,然后保存,这样就可以建立Tomcat server了,如下图:

 


 

如上图所示,把tomcat的位置修改为你的目前的目录就OK了。

 

分享到:
评论

相关推荐

    解决Eclipse配置Tomcat出现Cannot create a server using the selected type错误

    主要介绍了解决Eclipse配置Tomcat出现Cannot create a server using the selected type错误的相关资料,需要的朋友可以参考下

    VclZip pro v3.10.1

    This is helpful if you are using VCLZip as a service or on a webserver for instance. ******** Upgrading existing applications that use VCLZip 2.X ********** For the most part, existing applications...

    Delphi7.1 Update

    When using a TimeStamp type parameter with a TClientDataSet an error occurs when the parameter is passed to the server (Quality Central 6372). * Setting MTSDataModule.AutoComplete to False in the IDE ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: After deleting the selected points in the TFlexPanel.DeleteSelectedPoints the all figures with one point also deleted. - FIX: When the curve contain more then one figure and they were all ...

    VB编程资源大全(英文源码 网络)

    It also shows the users of each Server or Workstation and can send messages to the selected PC. This programs works only on a Windows NT 4.0 Machine!<END><br>3 , projectgroupx.zip You may use this...

    OutlookAttachView v2.73

    o In the 'Copy Selected Files To...' window, you can now specify a subfolder in the attach filename format. For example, if the filename format is %folder_name%\%subject%_%attach_name%.%extension% ...

    DevExpress VCL v2012 vol 1.6源码、例子、帮助

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    DevExpress VCL v2012 vol 1.6源码、例子、帮助-Part1

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    DevExpress VCL 2012 vol 1.6源码、例子、帮助-Part2

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    DevExpress VCL v2012 vol 1.6源码、例子、帮助-part2

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    DevExpress VCL 2012 vol 1.6源码、例子、帮助-Part1

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    VB编程资源大全(英文源码 表单)

    selected shapes.<END><br>20 , splash.zip This demonstrates how to create a splash form for your program.<END><br>21 , menustat.zip This shows how to display information about the menu item in a ...

    word自动转化为chm

    Word-2-CHM will fill the “Output CHM File” field and the “Title of CHM File” field automatically after you have selected a Word file. Next, you may want to enter your copyright message that will ...

    DevExpress VCL v2012 vol 1.6源码-例子-帮助-part2

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    DevExpress VCL v2012 vol 1.6源码-例子-帮助-part1

    Q438267 - Server Mode - Clicking a Filter Row cell in a column containing Null values throws the "Could not convert variant of type (Null) into type (OleStr)" exception Q435475 - Tabular and Layout ...

    VB编程资源大全(英文源码 控制)

    list_index.zip This example tells you if the inputted List Index is selected or not.<END><br>12 , fade.zip This is a bas to fade a pictuerbox. Can be used to make a progressbar<END><br>13 , ...

    Turbo C++ 3.0[DISK]

    be given instructions in a box at the bottom of the screen for each prompt. For example, if you will be installing from drive A:, type: A: INSTALL - This INSTALL handles the installation of ...

    Turbo C++ 3.00[DISK]

    be given instructions in a box at the bottom of the screen for each prompt. For example, if you will be installing from drive A:, type: A: INSTALL - This INSTALL handles the installation of ...

    C# Game Programming Cookbook for Unity 3D - 2014

    1.1.3 Using the Singleton Pattern in Unity...........................5 1.1.4 Inheritance.................................................6 1.1.5 Where to Now?.............................................

    王小平版遗传算法的光盘源代码

    First create a sub-directory under the top-level sgpc directory and name it a descriptive name. Copy the Makefile and optionally the fitness.c setup.c and prob.h files to the new directory. ...

Global site tag (gtag.js) - Google Analytics