Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » The selection did not contain any resources that can run on a server(jsp Problems with Apache Tomcat)
The selection did not contain any resources that can run on a server [message #1852192] Wed, 04 May 2022 13:10 Go to next message
Samet Erdogan is currently offline Samet ErdoganFriend
Messages: 3
Registered: May 2022
Junior Member
Hello, I have included tomcat in preferences server at Java webdevelopers. I also linked my dynamic web project to the server. However, as soon as I click this Run on server I get the error message "the selection did not contain any resources that can run on a server". Tried adding JDK in preferences Installed JRE's, but it still doesn't work. I urgently need help because my Proffesor hasn't found the solution either.

Many, many thanks for your help!
Re: The selection did not contain any resources that can run on a server [message #1852198 is a reply to message #1852192] Wed, 04 May 2022 14:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

What is in the selection?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: The selection did not contain any resources that can run on a server [message #1852202 is a reply to message #1852198] Wed, 04 May 2022 17:19 Go to previous messageGo to next message
Samet Erdogan is currently offline Samet ErdoganFriend
Messages: 3
Registered: May 2022
Junior Member
what do you mean ? i cant open my jsp in my webcontent folder. i dont know why
Re: The selection did not contain any resources that can run on a server [message #1852211 is a reply to message #1852202] Wed, 04 May 2022 23:05 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

When you clicked on Run on Server, what was selected? The message read, "the selection did not contain any resources that can run on a server", so what was in the selection?

_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Wed, 04 May 2022 23:05]

Report message to a moderator

Re: The selection did not contain any resources that can run on a server [message #1852272 is a reply to message #1852211] Fri, 06 May 2022 17:31 Go to previous messageGo to next message
Samet Erdogan is currently offline Samet ErdoganFriend
Messages: 3
Registered: May 2022
Junior Member
The Selection is a Hello World jsp.

----------------------------------------
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<p>ich speichere meinen Namen</p>
<% String myName = "<b>habibi</b>"; %>
<p>dann zeige ich meinen Namen zwei mal an</p>
<% out.println(myName); %><%= myName %>
<p>ich denke mir eine Zahl</p>
<% int meineZahl = 13; %>
<p>jetzt zaehle ich bis <%= meineZahl %></p>

<% for (int index = 1; index <= meineZahl; index++){ %>
Die aktuelle Zahl ist <%= index %>,
<%= index %> ist eine

<% if (index % 2 == 0){
out.println("gerade");
}else{
out.println("ungerade");
} %>

<% if (index % 2 == 0){ %>
gerade
<% }else{ %>
ungerade
<% } %>

<%
String text = "";
// if (index % 2 == 0){
// text = "gerade";
// }else{
// text = "ungerade";
// }
text = (index % 2 == 0)?"gerade":"ungerade";
out.println(text);
%>

<%
String text1 = (index % 2 == 0)?"gerade":"ungerade";
out.println(text1);
%>

<%
out.println((index % 2 == 0)?"gerade":"ungerade");
%>

<%= (index % 2 == 0)?"gerade":"ungerade" %>

Zahl<br>
<% } %>




<p>Hier kommt ein statischer Inhalt</p>
<p>Hier kommt - ganz dynamisch - Datum und Uhrzeit ausführlich programmiert:
<% //wir öffnen ein Java-Programm
java.util.Date myDate = new java.util.Date();
String myDateString = myDate.toString();
// vordefiniertes Objekt out steht für die html-Ausgabe
out.println(myDateString);
%>
</p>
<p>und jetzt noch mal knapp programmiert:
<%= new java.util.Date() %>
</p>
<p>Beobachtung: &lt;%= ... %> ist die Abkürzung von &lt;% out.println(...); %>
</p>



</body>
</html>

That could not get run on the apache tomcat server.
Re: The selection did not contain any resources that can run on a server [message #1852330 is a reply to message #1852272] Tue, 10 May 2022 18:32 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

There must be a step that one of us is overlooking. This is with the Eclipse 2022-03 release? Which version of Tomcat is it?

_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Tue, 10 May 2022 18:32]

Report message to a moderator

Previous Topic:tomcat 8 fails to start in eclipse
Next Topic:How to configure security access for web service client in Eclipse
Goto Forum:
  


Current Time: Thu Apr 18 20:04:48 GMT 2024

Powered by FUDForum. Page generated in 0.02089 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top