syeam和tknockout with绑定怎么绑定

java - Cannot add a project to a tomcat server in eclipse - Stack Overflow
Join the Stack Overflow Community
Stack Overflow is a community of 7.1 million programmers, just like you, helping each other.
J it only takes a minute:
I cannot add my project to a server in eclipse - why is that?
I installed all necessary tools (Web Dev, Java EE, Server Adapters, Tomcat itself, everything)
I configured the runtime environments, adjusted all Java Versions to JDK 6 (because it should run on Tomcat 6) but still the left side of the dialogue where I could add recources is empty when creating a new server.
What else could I try?
PS: Using Juno on W7 Prof.
30.7k777118
7,5902080156
You didn't create your project as "Dynamic Web Project", so Eclipse doesn't recognize it like web project. Create new "Dynamic Web Project" or go to Properties -> Projects Facets and check Dynamic Web Module
9,78534563
1 .right click on project name in Package Explorer view.
2. select Properties
3. Select Project Facets
4. Click on Runtimes tab
5. check server
6. Click on OK
right click on server name in Servers view
click on Add and Remove ...
move resources to the right column
4,5692269122
I fixed this issue as adding Dynamic Web Module to Project Facets
right click on project name in Package Explorer view.
select Properties
Select Project Facets
Activate Dynamic Web Module
Click on OK
2,70742646
After following the above steps suggested by the other posters, do the following step
Right click on the project
Click Maven, then Update Project
Tick the check-box "Force Update of Snapshots/Releases", then click OK
you should be good to go now.
Right-click on project
Go to properties => project factes
Click on runtime tab
Check the box of the server
Close the eclipse and start the the server you will able to see and run the project.
3,06162243
Go to project properties -> Project Facets, make sure Dynamic Web Module & Java were checked.
Apart from it, "Cloud Foundry Standalone Application" needs to be un-checked, if it is already selected. By default, few IDE's pre-select this option.
4,36813241
If you are able to see the project in Eclipse project explorer but unable to see the project while adding the project to the web server, follow project properties -> Project Facets, make sure Dynamic Web Module & Java were ticked.
It was Eclipse mars which does not support jdk7 so I added jdk8. It worked.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .25842
Stack Overflow works best with JavaScript enabled}

我要回帖

更多关于 syeam 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信