<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    we need to clean up the project examples in JBoss Tools 4.0/JBDS 6.0
    (as part of <a href="https://issues.jboss.org/browse/JBIDE-12554">https://issues.jboss.org/browse/JBIDE-12554</a>).<br>
    So, my idea was to replace all the old examples with the quickstarts
    from <a href="https://github.com/jboss-jdf/jboss-as-quickstart">https://github.com/jboss-jdf/jboss-as-quickstart</a>
    <br>
    <br>
    Since the quickstarts are not available as standalone zips, for
    consumption in JBT/JBDS, I created a script (<a
href="https://github.com/fbricon/jboss-as-quickstart/commit/cb1a0638b352434c48c7ecb6de20ed514e0c31fb">https://github.com/fbricon/jboss-as-quickstart/commit/cb1a0638b352434c48c7ecb6de20ed514e0c31fb)</a>
    that does that, and it also generates a project example stub we can
    use almost directly in JBT.<br>
    <br>
    <tt>D:\Dev\GitHub\jboss-as-quickstart&gt;mvn groovy:execute -N
-Pzip-modules,requires-postgres,complex-dependencies,requires-full,requires-xts</tt><tt><br>
    </tt><tt>[INFO] Scanning for projects...</tt><tt><br>
    </tt><tt>[INFO]</tt><tt><br>
    </tt><tt>[INFO]
      ------------------------------------------------------------------------</tt><tt><br>
    </tt><tt>[INFO] Building JBoss AS Quickstarts Parent 7.1.2-SNAPSHOT</tt><tt><br>
    </tt><tt>[INFO]
      ------------------------------------------------------------------------</tt><tt><br>
    </tt><tt>[INFO]</tt><tt><br>
    </tt><tt>[INFO] --- gmaven-plugin:1.4:execute (default-cli) @
      jboss-as-quickstarts-parent ---</tt><tt><br>
    </tt><tt>Starting zipping JBoss AS Quickstarts Parent modules</tt><tt><br>
    </tt><tt>Deleting D:\Dev\GitHub\jboss-as-quickstart\target\zips</tt><tt><br>
    </tt><tt>Zipped 51 quickstart modules</tt><tt><br>
    </tt><tt>Generating project examples descriptor for JBoss Tools</tt><tt><br>
    </tt><tt>[WARNING] module 'bmt' has a non matching artifactId
      'jboss-as-bmt'</tt><tt><br>
    </tt><tt>[WARNING] module 'cdi-injection' has a non matching
      artifactId 'jboss-as-cdi-injection'</tt><tt><br>
    </tt><tt>[WARNING] module 'cdi-portable-extension' has a non
      matching artifactId 'jboss-as-cdi-portable-extension'</tt><tt><br>
    </tt><tt>[WARNING] module 'ejb-in-ear' has a non matching artifactId
      'jboss-as-ejb-in-ear'</tt><tt><br>
    </tt><tt>[WARNING] module 'ejb-in-war' has a non matching artifactId
      'jboss-as-ejb-in-war'</tt><tt><br>
    </tt><tt>[WARNING] module 'ejb-remote' has a non matching artifactId
      'jboss-as-ejb-remote-parent'</tt><tt><br>
    </tt><tt>[WARNING] module 'ejb-security' has a non matching
      artifactId 'jboss-as-ejb-security'</tt><tt><br>
    </tt><tt>[WARNING] module 'greeter' has a non matching artifactId
      'jboss-as-greeter'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld' has a non matching artifactId
      'jboss-as-helloworld'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-errai' has a non matching
      artifactId 'jboss-as-helloworld-errai'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-gwt' has a non matching
      artifactId 'jboss-as-helloworld-gwt'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-html5' has a non matching
      artifactId 'jboss-as-helloworld-html5'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-jms' has a non matching
      artifactId 'jboss-as-helloworld-jms'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-osgi' has a non matching
      artifactId 'jboss-as-helloworld-osgi'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-rs' has a non matching
      artifactId 'jboss-as-helloworld-rs'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-singleton' has a non matching
      artifactId 'jboss-as-helloworld-singleton'</tt><tt><br>
    </tt><tt>[WARNING] module 'hibernate3' has a non matching artifactId
      'jboss-as-hibernate3'</tt><tt><br>
    </tt><tt>[WARNING] module 'hibernate4' has a non matching artifactId
      'jboss-as-hibernate4'</tt><tt><br>
    </tt><tt>[WARNING] module 'kitchensink' has a non matching
      artifactId 'jboss-as-kitchensink'</tt><tt><br>
    </tt><tt>[WARNING] module 'kitchensink-ear' has a non matching
      artifactId 'jboss-as-kitchensink-ear'</tt><tt><br>
    </tt><tt>[WARNING] module 'kitchensink-html5-mobile' has a non
      matching artifactId 'jboss-as-kitchensink-html5-mobile'</tt><tt><br>
    </tt><tt>[WARNING] module 'kitchensink-jsp' has a non matching
      artifactId 'jboss-as-kitchensink-jsp'</tt><tt><br>
    </tt><tt>[WARNING] module 'kitchensink-ml' has a non matching
      artifactId 'jboss-as-kitchensink-ml'</tt><tt><br>
    </tt><tt>[WARNING] module 'kitchensink-ml-ear' has a non matching
      artifactId 'jboss-as-kitchensink-ml-ear'</tt><tt><br>
    </tt><tt>[WARNING] module 'log4j' has a non matching artifactId
      'jboss-as-log4j'</tt><tt><br>
    </tt><tt>[WARNING] module 'logging-tools' has a non matching
      artifactId 'jboss-as-logging-tools'</tt><tt><br>
    </tt><tt>[WARNING] module 'mail' has a non matching artifactId
      'jboss-as-mail'</tt><tt><br>
    </tt><tt>[WARNING] module 'numberguess' has a non matching
      artifactId 'jboss-as-numberguess'</tt><tt><br>
    </tt><tt>[WARNING] module 'payment-cdi-event' has a non matching
      artifactId 'jboss-as-payment-cdi-event'</tt><tt><br>
    </tt><tt>[WARNING] module 'richfaces-validation' has a non matching
      artifactId 'jboss-as-richfaces-validation'</tt><tt><br>
    </tt><tt>[WARNING] module 'servlet-async' has a non matching
      artifactId 'jboss-as-servlet-async'</tt><tt><br>
    </tt><tt>[WARNING] module 'servlet-filterlistener' has a non
      matching artifactId 'jboss-as-servlet-filterlistener'</tt><tt><br>
    </tt><tt>[WARNING] module 'servlet-security' has a non matching
      artifactId 'jboss-as-servlet-security'</tt><tt><br>
    </tt><tt>[WARNING] module 'tasks' has a non matching artifactId
      'jboss-as-tasks'</tt><tt><br>
    </tt><tt>[WARNING] module 'tasks-jsf' has a non matching artifactId
      'jboss-as-tasks-jsf'</tt><tt><br>
    </tt><tt>[WARNING] module 'temperature-converter' has a non matching
      artifactId 'jboss-as-temperature-converter'</tt><tt><br>
    </tt><tt>[WARNING] module 'tasks-rs' has a non matching artifactId
      'jboss-as-tasks-rs'</tt><tt><br>
    </tt><tt>[WARNING] module 'wicket-ear' has a non matching artifactId
      'jboss-as-wicket-ear-parent'</tt><tt><br>
    </tt><tt>[WARNING] module 'wicket-war' has a non matching artifactId
      'jboss-as-wicket-war'</tt><tt><br>
    </tt><tt>[WARNING] module 'xml-jaxp' has a non matching artifactId
      'jboss-as-xml-jaxp'</tt><tt><br>
    </tt><tt>[WARNING] module 'xml-dom4j' has a non matching artifactId
      'jboss-as-xml-dom4j'</tt><tt><br>
    </tt><tt>[WARNING] module 'cmt' has a non matching artifactId
      'jboss-as-cmt'</tt><tt><br>
    </tt><tt>[WARNING] module 'jts' has a non matching artifactId
      'jboss-as-jts-parent'</tt><tt><br>
    </tt><tt>[WARNING] module 'jax-rs-client' has a non matching
      artifactId 'jboss-as-jax-rs-client'</tt><tt><br>
    </tt><tt>[WARNING] module 'inter-app' has a non matching artifactId
      'jboss-as-inter-app-parent'</tt><tt><br>
    </tt><tt>[WARNING] module 'helloworld-mdb' has a non matching
      artifactId 'jboss-as-helloworld-mdb'</tt><tt><br>
    </tt><tt>[WARNING] module 'jta-crash-rec' has a non matching
      artifactId 'jboss-as-jta-crash-rec'</tt><tt><br>
    </tt><tt>[WARNING] module 'wsat-simple' has a non matching
      artifactId 'jboss-as-wsat-simple'</tt><tt><br>
    </tt><tt>[WARNING] module 'wsba-coordinator-completion-simple' has a
      non matching artifactId
      'jboss-as-wsba-coordinator-completion-simple'</tt><tt><br>
    </tt><tt>[WARNING] module 'wsba-participant-completion-simple' has a
      non matching artifactId
      'jboss-as-wsba-participant-completion-simple'</tt><tt><br>
    </tt><tt>D:\Dev\GitHub\jboss-as-quickstart\target\zips\quickstarts.xml
      generated</tt><tt><br>
    </tt><tt><br>
    </tt><tt><br>
    </tt><tt>[WARNING] 50 quickstart artifactIds mismatch with their
      folder name.</tt><tt><br>
    </tt><tt>This will prevent WTP from opening the proper url when
      running on a server.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>[INFO]
      ------------------------------------------------------------------------</tt><tt><br>
    </tt><tt>[INFO] BUILD SUCCESS</tt><tt><br>
    </tt><tt>[INFO]
      ------------------------------------------------------------------------</tt><tt><br>
    </tt><tt>[INFO] Total time: 5.506s</tt><tt><br>
    </tt><tt>[INFO] Finished at: Tue Oct 09 15:02:44 CEST 2012</tt><tt><br>
    </tt><tt>[INFO] Final Memory: 11M/490M</tt><tt><br>
    </tt><tt>[INFO]
      ------------------------------------------------------------------------</tt><br>
    <br>
    As hinted&nbsp; in the log, the examples wouldn't quite work perfectly
    OOTB.
    <a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/M2E-WTP_FAQ#How_do_I_change_the_context_root_of_my_project.3F">http://wiki.eclipse.org/M2E-WTP_FAQ#How_do_I_change_the_context_root_of_my_project.3F</a>
    explains how the context root is inferred from the pom.xml by
    m2e-wtp. However our own JBoss AS server adapter ignores the WTP
    project context root and bases its deployment on the project name,
    leading to 404s as seen in the video below.<br>
    <br>
    End result in JBT / Central : <a
href="http://www.screencast.com/users/fbricon/folders/Jing/media/464f8246-84bc-4941-b84c-7ae6420c2ac7">http://www.screencast.com/users/fbricon/folders/Jing/media/464f8246-84bc-4941-b84c-7ae6420c2ac7</a><br>
    <br>
    Now.<br>
    &nbsp;* are you guys ok to actually remove and replace the old examples
    with the JDF quickstarts<br>
    &nbsp;* if you're ok, I'll setup a CI job to deploy the quickstarts to
    download.jboss.org<br>
    &nbsp;* who's willing to give me a hand in validating the quickstarts
    properly work in JBT/JBDS. That includes :<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - checking the project belongs (or not) to JBT/JBDS<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - checking there's a proper project description<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - checking the projects are properly configured (I noticed
    some EARs are seen as 1.3 instead of 6.0) and compile without errors<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - checking the projects deploy OOTB on AS7/EAP6<br>
    <br>
    Regards,<br>
    <br>
    Fred Bricon &nbsp;&nbsp;&nbsp;&nbsp;
    <br>
    <br>
  </body>
</html>