Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » The selection cannot be run on any server(Get a server for HTML5 work)
The selection cannot be run on any server [message #1016074] Mon, 04 March 2013 15:17 Go to next message
Bernard Abramson is currently offline Bernard Abramson
Messages: 6
Registered: July 2009
Junior Member
I'm running Juno on an iMAC with all software at current releases.

I have installed the WTP tools and can edit source in JavaScript and HTML5. I can "run" HTML5 code by right clicking on the project and choosing Open with > Web browser.

However, when I click the Run icon I get the pop up "The selection cannot be run on any server." which is correct as Eclipse > Preferences > Server > Runtime Environments is empty. However Jetty and Apache are listed in the plugins. How do I configure Eclipse to "see" either Jetty or Apache so I can run on these as internal severs?
Re: The selection cannot be run on any server [message #1016075 is a reply to message #1016074] Mon, 04 March 2013 15:43 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3146
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/4/2013 1:17 PM, Bernard Abramson wrote:
> I'm running Juno on an iMAC with all software at current releases.
>
> I have installed the WTP tools and can edit source in JavaScript and
> HTML5. I can "run" HTML5 code by right clicking on the project and
> choosing Open with > Web browser.
>
> However, when I click the Run icon I get the pop up "The selection
> cannot be run on any server." which is correct as Eclipse > Preferences
> > Server > Runtime Environments is empty. However Jetty and Apache are
> listed in the plugins. How do I configure Eclipse to "see" either Jetty
> or Apache so I can run on these as internal severs?

I haven't done precisely that since I always use Tomcat, but when you go
to add a new Server Runtime Environment and click Download additional
server adapters, is there not one you could use? I did see a Jetty
offering when I tried it.
Re: The selection cannot be run on any server [message #1016080 is a reply to message #1016075] Mon, 04 March 2013 16:32 Go to previous messageGo to next message
Bernard Abramson is currently offline Bernard Abramson
Messages: 6
Registered: July 2009
Junior Member
OK, progress. I had tried to download various servers but they all failed with messages about missing components.

I managed to install these:
Jetty Target Components
JST Server Adaptors
WST Server Adaptors

Now I can see J2EE and HTTP Preview in the server list. However, when I run my code I get:

Server HTTP Preview at localhost failed to start.

I'll keep flailing around and see where I get but suggestions would be welcome. (I'm doing this by sheer guesswork, it would be nice if there were a step by step guide somewhere. I can't be the first person wanting to run HTML5 in Eclipse on Mac.)
Re: The selection cannot be run on any server [message #1016084 is a reply to message #1016080] Mon, 04 March 2013 16:38 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3146
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/4/2013 2:33 PM, Bernard Abramson wrote:
> OK, progress. I had tried to download various servers but they all
> failed with messages about missing components.
>
> I managed to install these:
> Jetty Target Components
> JST Server Adaptors
> WST Server Adaptors
>
> Now I can see J2EE and HTTP Preview in the server list. However, when I
> run my code I get:
>
> Server HTTP Preview at localhost failed to start.
>
> I'll keep flailing around and see where I get but suggestions would be
> welcome. (I'm doing this by sheer guesswork, it would be nice if there
> were a step by step guide somewhere. I can't be the first person
> wanting to run HTML5 in Eclipse on Mac.)

You're not the first; it just may be the better part of a day before
some who's done it checks the forum.
Re: The selection cannot be run on any server [message #1016085 is a reply to message #1016084] Mon, 04 March 2013 16:47 Go to previous messageGo to next message
Bernard Abramson is currently offline Bernard Abramson
Messages: 6
Registered: July 2009
Junior Member
Thanks. I'm not in any hurry (but I'm as patient as your average programmer).
Re: The selection cannot be run on any server [message #1016209 is a reply to message #1016074] Tue, 05 March 2013 08:55 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2250
Registered: July 2009
Senior Member
Run On Server requires that the project have the necessary deployment information defined, and typically that's done by creating your content in a Static or Dynamic Web Project.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: The selection cannot be run on any server [message #1016218 is a reply to message #1016209] Tue, 05 March 2013 09:28 Go to previous messageGo to next message
Bernard Abramson is currently offline Bernard Abramson
Messages: 6
Registered: July 2009
Junior Member
Thank you for the reply. Yes, I had set the project up as a static web project. I now have it running in a local J2EE preview server but cannot get the local HTTP preview server to run. Presumably I haven't installed some Jetty component.

My real issue is why is this so obscure. There ought to be step by step instructions. I have used Eclipse to develop simple apps in several languages and in every case (except C) I had to obtain expert guidance and install special plug-ins etc. Simple tasks ought to be accomplished simply. With Eclipse this does not appear to be the case.
Re: The selection cannot be run on any server [message #1016232 is a reply to message #1016218] Tue, 05 March 2013 09:59 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3146
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/5/2013 7:28 AM, Bernard Abramson wrote:
> Thank you for the reply. Yes, I had set the project up as a static web
> project. I now have it running in a local J2EE preview server but
> cannot get the local HTTP preview server to run. Presumably I haven't
> installed some Jetty component.
>
> My real issue is why is this so obscure. There ought to be step by step
> instructions. I have used Eclipse to develop simple apps in several
> languages and in every case (except C) I had to obtain expert guidance
> and install special plug-ins etc. Simple tasks ought to be
> accomplished simply. With Eclipse this does not appear to be the case.

Eclipse resources are a very good basis, but they tend to document not
synthesize and you're asking for synthesis.

You might find such help, you just have to stumble upon it. Google is
your friend. Sometimes, stackoverflow.com is remarkably helpful. In my
opinion, the best helps for Eclipse aren't to be found from eclipse.org,
but from developers who've gone to the trouble to write tutorials, some
of them very good like http://www.vogella.de. I do some of that (not as
good as Lars Vogel) on my own site and there are many others too.

I'm eager to help you, but I'm more on the Java/JEE side of things. I
write (mostly static) HTML and CSS web pages to help others out, but I'm
not a specialist and I just use Vim to do it--not Eclipse.

I hope you find some better help soon.

Best regards,

Russ
Re: The selection cannot be run on any server [message #1016270 is a reply to message #1016232] Tue, 05 March 2013 13:41 Go to previous messageGo to next message
Bernard Abramson is currently offline Bernard Abramson
Messages: 6
Registered: July 2009
Junior Member
Problem "solved". It seems the trick is to install the entire Web, XML, Java EE and OSGi Enterprise Development software. I had only installed the components that looked as though they were needed. Nevertheless, the first install failed with errors on PHP tools, so I unchecked these and ran it again. I can now test HTML5 in Eclipse using the HTTP Preview Server.

Thanks to everyone who responded.

[Updated on: Tue, 05 March 2013 13:42]

Report message to a moderator

Re: The selection cannot be run on any server [message #1016275 is a reply to message #1016270] Tue, 05 March 2013 14:01 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3146
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/5/2013 11:41 AM, Bernard Abramson wrote:
> Problem "solved". It seems the trick is to install the entire Web, XML,
> Java EE and OSGi Enterprise Development software. I had only installed
> the components that looked as though they were needed. Nevertheless,
> the first install failed with errors on PHP tools, so I unchecked these
> and ran it again. I can now test HTML5 in Eclipse using the HTTP
> Preview Server.

I would have had the same problem because I'm a bit of a minimalist myself.

So, down the road, if you ever feel like writing a tutorial, it will
apparently be very welcome to the next guy.
Previous Topic:unable to start eclipse juno
Next Topic:Editor unable to "restore" anymore
Goto Forum:
  


Current Time: Wed Aug 20 14:50:27 EDT 2014

Powered by FUDForum. Page generated in 0.02479 seconds