`

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 ...

    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 ...

    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 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 , ...

    Unreal Engine 4.X By Example

    To create a basic actor, you can use the "Add New Actor" button in the toolbar or right-click in the viewport and select "Add Actor." Actors can be customized using the Details panel. ##### Objects,...

    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?.............................................

Global site tag (gtag.js) - Google Analytics