{"id":89,"date":"2009-12-04T06:01:50","date_gmt":"2009-12-04T04:01:50","guid":{"rendered":"https:\/\/blog.zitnik.si\/?p=89"},"modified":"2009-12-04T06:20:07","modified_gmt":"2009-12-04T04:20:07","slug":"how-to-use-gwt-with-eclipse-on-jboss-as","status":"publish","type":"post","link":"https:\/\/blog.zitnik.si\/?p=89","title":{"rendered":"How to: Use GWT with Eclipse on JBoss AS"},"content":{"rendered":"<p style=\"text-align: center;\">Here I will show you steps to easily write, build and deploy GWT applications with Eclipse.<\/p>\n<p style=\"text-align: center;\"><strong>Step 1:<\/strong> Install Eclipse &#8211; <a href=\"http:\/\/www.eclipse.org\/downloads\/\" target=\"_blank\">http:\/\/www.eclipse.org\/downloads\/<\/a><\/p>\n<p style=\"text-align: center;\"><strong>Step 2: <\/strong>Install JBoss Server &#8211; <a href=\"http:\/\/www.jboss.org\/jbossas\/downloads\/\" target=\"_blank\">http:\/\/www.jboss.org\/jbossas\/downloads\/<\/a><\/p>\n<p style=\"text-align: center;\"><strong>Step 3: <\/strong>Install JBoss Tools for Eclipse &#8211; <a href=\"http:\/\/www.jboss.org\/tools\/download.html\" target=\"_blank\">http:\/\/www.jboss.org\/tools\/download.html<\/a>, configure setting to use your JBoss server installation<\/p>\n<p style=\"text-align: center;\"><strong>Step 4:<\/strong> Install GWT SDK &#8211; <a href=\"http:\/\/code.google.com\/webtoolkit\/\" target=\"_blank\">http:\/\/code.google.com\/webtoolkit\/<\/a><\/p>\n<p style=\"text-align: center;\"><strong>Step 5:<\/strong> Install Google Plugin for Eclipse &#8211; <a href=\"http:\/\/code.google.com\/appengine\/downloads.html\" target=\"_blank\">http:\/\/code.google.com\/appengine\/downloads.html<\/a><\/p>\n<p style=\"text-align: center;\"><strong>Step 6: Prepare project:<\/strong><\/p>\n<p style=\"text-align: center;\">Click &#8220;blue G&#8221; somewhere in the menu or find Web Application Project in the New Project &#8230; menu to create Google App Engine project gwttest. Deselect Use Google App Engine.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"new project\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project-272x300.jpg\" alt=\"new project\" width=\"272\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Create ne Dynamic Web Project gwttest-web and click Next.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-91 alignnone\" title=\"new project1\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project1-244x300.jpg\" alt=\"new project1\" width=\"244\" height=\"300\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project1-244x300.jpg 244w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project1.jpg 608w\" sizes=\"auto, (max-width: 244px) 100vw, 244px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Rename Content directory to &#8220;war&#8221;.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-92 alignnone\" title=\"new project2\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project2-300x119.jpg\" alt=\"new project2\" width=\"300\" height=\"119\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project2-300x119.jpg 300w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project2.jpg 613w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Go to properties for gwttest-web project and within Google -&gt; Web Toolkit select to use your GWT.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-93 alignnone\" title=\"new project3\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project3-300x118.jpg\" alt=\"new project3\" width=\"300\" height=\"118\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project3-300x118.jpg 300w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project3.jpg 844w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Copy &#8220;src&#8221; and &#8220;war&#8221; folders from gwttest to gwttest-web project.<\/p>\n<table style=\"text-align: center;\" border=\"0\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-94\" title=\"new project4\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project4.jpg\" alt=\"new project4\" width=\"284\" height=\"252\" \/><\/a><\/td>\n<td style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-95\" title=\"new project5\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project5-287x300.jpg\" alt=\"new project5\" width=\"287\" height=\"300\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project5-287x300.jpg 287w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project5.jpg 311w\" sizes=\"auto, (max-width: 287px) 100vw, 287px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: center;\">Compile gwttest-web with GWT by clicking on the &#8220;red G on the briefcase&#8221;.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"new project11\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project11.jpg\" alt=\"new project11\" width=\"201\" height=\"78\" \/><\/a><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project12.jpg\"><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"new project12\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project12-300x241.jpg\" alt=\"new project12\" width=\"300\" height=\"241\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\">Normally you have also ejb projects and gwt project and want them to work together, so you create new EAR Application Project gwttest-ear.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project5.jpg\"><\/a><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-96 alignnone\" title=\"new project6\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project6-269x300.jpg\" alt=\"new project6\" width=\"269\" height=\"300\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project6-269x300.jpg 269w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project6.jpg 613w\" sizes=\"auto, (max-width: 269px) 100vw, 269px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Select gwttest-web which contains module.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-97 alignnone\" title=\"new project7\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project7-270x300.jpg\" alt=\"new project7\" width=\"270\" height=\"300\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project7-270x300.jpg 270w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project7.jpg 614w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><strong><br \/>\nStep 7: Run the project<\/strong><\/p>\n<p style=\"text-align: center;\">Tell Eclipse to Run this EAR project on Server. Then select your configured server from the menu.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-98 alignnone\" title=\"new project8\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project8-300x177.jpg\" alt=\"new project8\" width=\"300\" height=\"177\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project8-300x177.jpg 300w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project8.jpg 661w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Your server starts and and you should see a line of deployment in the Console view.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project8.jpg\"><\/a><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-99 alignnone\" title=\"new project9\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project9.jpg\" alt=\"new project9\" width=\"546\" height=\"19\" srcset=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project9.jpg 546w, https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project9-300x10.jpg 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Now run GwtTest.html.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"new project13\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project13-300x145.jpg\" alt=\"new project13\" width=\"300\" height=\"145\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\">The page opens in Eclipse&#8217;s built in web browser.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project14.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"new project14\" src=\"https:\/\/blog.zitnik.si\/wp-content\/uploads\/2009\/12\/new-project14-300x247.jpg\" alt=\"new project14\" width=\"300\" height=\"247\" \/><\/a><\/p>\n<p style=\"text-align: center;\">That&#8217;s it! Enjoy discovering new features and learning GWT. If you like scripts, you could also take a look of Ant to optimize your process.<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>Here I will show you steps to easily write, build and deploy GWT applications with Eclipse. Step 1: Install Eclipse &#8211; http:\/\/www.eclipse.org\/downloads\/ Step 2: Install JBoss Server &#8211; http:\/\/www.jboss.org\/jbossas\/downloads\/ Step 3: Install JBoss Tools for Eclipse &#8211; http:\/\/www.jboss.org\/tools\/download.html, configure setting to use your JBoss server installation Step 4: Install GWT&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/blog.zitnik.si\/?p=89\">Continue reading<span class=\"screen-reader-text\">How to: Use GWT with Eclipse on JBoss AS<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-computer-engineering","entry"],"_links":{"self":[{"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":7,"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zitnik.si\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}