{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/172","repository_url":"https://api.github.com/repos/vaadin/eclipse-plugin","labels_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/172/comments","events_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/172/events","html_url":"https://github.com/vaadin/eclipse-plugin/issues/172","id":134224707,"number":172,"title":"Vaadin plug-in more easier with Eclipse integrated Servlet Container","user":{"login":"makoivis","id":7498049,"avatar_url":"https://avatars.githubusercontent.com/u/7498049?v=3","gravatar_id":"","url":"https://api.github.com/users/makoivis","html_url":"https://github.com/makoivis","followers_url":"https://api.github.com/users/makoivis/followers","following_url":"https://api.github.com/users/makoivis/following{/other_user}","gists_url":"https://api.github.com/users/makoivis/gists{/gist_id}","starred_url":"https://api.github.com/users/makoivis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makoivis/subscriptions","organizations_url":"https://api.github.com/users/makoivis/orgs","repos_url":"https://api.github.com/users/makoivis/repos","events_url":"https://api.github.com/users/makoivis/events{/privacy}","received_events_url":"https://api.github.com/users/makoivis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-17T09:20:14Z","updated_at":"2016-02-17T09:20:53Z","closed_at":"2016-02-17T09:20:46Z","body":"**Reported by Jani Laakso on 25 Oct 2009 11:08 UTC**\nIdea how to enhance Vaadin experience for newbies. All Eclipse's include Servlet Container, there is no need to download Tomcat and configure it.\r\n\r\nPerhaps Vaadin plug-in could use the Launcher.java code below like this:\r\n - either plug-in adds Launcher.java to end-user project's src path\r\n - or plug-in adds launch configuration which executes vaadin/src/com/vaadin/launcher/Launcher.java\r\n\r\nThis would make even simpler for the newbies to try out Vaadin as no Tomcat installation and configuration is required and Plug-in works without org.eclipse.jst requirement (works with other Eclipse packages aswell).\r\n\r\nFor now, this is the only \"nuisance\" for the end-user that is required to use integrated Eclipse Servlet Container, user needs to add single Java class to their project, such as this:\r\n```\r\nimport org.mortbay.jetty.Connector;\r\nimport org.mortbay.jetty.Server;\r\nimport org.mortbay.jetty.nio.SelectChannelConnector;\r\nimport org.mortbay.jetty.webapp.WebAppContext;\r\n\r\npublic class MyAppLauncher {\r\n\r\n    private static String context = \"/MyContext\";\r\n    private static String webroot = \"WebContent\";\r\n    private static int httpPort = 8080;\r\n\r\n    public static void main(final String[args) throws Exception {\r\n        final Server server = new Server();\r\n        final Connector connector = new SelectChannelConnector();\r\n        connector.setPort(httpPort);\r\n        server.setConnectors(new Connector[](]) { connector });\r\n        final WebAppContext webappcontext = new WebAppContext();\r\n        webappcontext.setClassLoader(MyAppLauncher.class.getClassLoader());\r\n        webappcontext.setContextPath(context);\r\n        webappcontext.setWar(webroot);\r\n        server.setHandler(webappcontext);\r\n        server.start();\r\n    }\r\n}\r\n```\r\n\r\nI even think this would be more closer to our ideology \"Do all in Java\", even Servlet Container configuration. Developer has a better feeling of more control in Servlet Container too. Whereas Tomcat container uses XML files that need to be modified if context, webroot or http port is changed, but of course Eclipse WST contains tools to configure these using Eclipse so people do not actually see XML here, but it doesn't change the fact that Tomcat is more complex. Using Tomcat requires more steps, this is a pain for most newbies.\r\n\r\nCheck out also latest Eclipse wiki: http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty\r\n\r\n\n\nMigrated-From: http://my.domain/trac/env/ticket/3594"},"comment":{"url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/comments/185111977","html_url":"https://github.com/vaadin/eclipse-plugin/issues/172#issuecomment-185111977","issue_url":"https://api.github.com/repos/vaadin/eclipse-plugin/issues/172","id":185111977,"user":{"login":"makoivis","id":7498049,"avatar_url":"https://avatars.githubusercontent.com/u/7498049?v=3","gravatar_id":"","url":"https://api.github.com/users/makoivis","html_url":"https://github.com/makoivis","followers_url":"https://api.github.com/users/makoivis/followers","following_url":"https://api.github.com/users/makoivis/following{/other_user}","gists_url":"https://api.github.com/users/makoivis/gists{/gist_id}","starred_url":"https://api.github.com/users/makoivis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makoivis/subscriptions","organizations_url":"https://api.github.com/users/makoivis/orgs","repos_url":"https://api.github.com/users/makoivis/repos","events_url":"https://api.github.com/users/makoivis/events{/privacy}","received_events_url":"https://api.github.com/users/makoivis/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T09:20:53Z","updated_at":"2016-02-17T09:20:53Z","body":"**Comment by Jani Laakso on 10 Nov 2009 12:31 UTC**\nI think the best option is that Vaadin Plug-in supports only certain Eclipse version, let's say Eclipse JEE. Other Eclipse packages might work but they are not guaranteed to give out the best user experience.\r\n\r\nI added following tickets which ease out newbies life: #3686 and #3687"}}