tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Tapestry > Environment
Date Mon, 11 Oct 2010 20:35:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/12/_/styles/combined.css?spaceKey=TAPESTRY&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/TAPESTRY/Environment">Environment</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~ccordenier">Christophe
Cordenier</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >Jetty Launcher is a plugin for Eclipse
that makes it easy to launch Jetty applications from within Eclipse. This is a great model,
since you can run or debug directly from you workspace without wasting time packaging and
deploying. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >Jetty Launcher was created by
Geoff Longman, and is available from <span class="diff-changed-words"><span class="diff-added-chars"style="background-color:
#dfd;">[</span>http://jettylauncher.sourceforge.net/<span class="diff-added-chars"style="background-color:
#dfd;">]</span>.</span> Installation is easy, simply point Eclipse&#39;s
update manager at [http://jettylauncher.sourceforge.net/updates/|http://jettylauncher.sourceforge.net/updates/].
<br></td></tr>
            <tr><td class="diff-unchanged" > <br>If you are behind a firewall,
you will need to set up a manual proxy configuration in Eclipse (Window, Preferences..., General,
Network Connections). <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >*Caution: this book is being written
in parallel with Tapestry 5. In some cases, the screenshots may not be entirely accurate and
the version number for Tapestry is in flux, with snapshot releases occurring frequently, and
new dot releases every few weeks. So, for example, is 5.0.5 is not available, you can use
5.0.4 instead.* <br> <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">[<span
class="diff-added-chars"style="background-color: #dfd;">|First][</span>Continue</span>
on to Chapter 2: Your First Tapestry <span class="diff-changed-words">Application|<span
class="diff-added-chars"style="background-color: #dfd;">TAPESTRY:</span>First]</span>
<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="Environment-Chapter1%3ASettingUpYourEnvironment"></a>Chapter
1: Setting Up Your Environment</h2>

<p>As much as I would like to dive into Tapestry right now, we must first talk about
your development environment. The joy and the pain of Java development is the volume of choice
available. There's just a bewildering number of JDKs, IDEs and other TLA1s out there.</p>

<p>Let's talk about a stack of tools, all open source and freely available, that you'll
need to setup. Likely you have some of these, or some version of these, already on your development
machine.</p>

<h3><a name="Environment-JDK1.5"></a>JDK 1.5</h3>

<p>Tapestry 5 makes use of features of JDK 1.5. This includes Java Annotations, and
a little bit of Java Generics.</p>

<h3><a name="Environment-Eclipse3.3"></a>Eclipse 3.3</h3>

<p>Since we're emphasizing a free and open source stack, we'll concentrate on the best
<em>free</em> IDE.</p>

<p>Eclipse 3.3 comes in various flavors, and includes a reasonable XML editor built-in.</p>

<h3><a name="Environment-Jetty5.1"></a>Jetty 5.1</h3>

<p>Jetty is an open source servlet container created by Greg Wilkins of Webtide (which
offers commercial support for Jetty). Jetty is high performance and designed for easy embedding
in other software. I've chosen the 5.1 release, rather than the cutting edge Jetty 6, because
it is compatible with Jetty Launcher (see below).</p>

<p>You can find out more about Jetty from its home page: <a href="http://mortbay.org"
class="external-link" rel="nofollow">http://mortbay.org</a>.</p>

<p>You can download Jetty from <a href="http://docs.codehaus.org/display/JETTY/Downloading+and+Installing"
class="external-link" rel="nofollow">http://docs.codehaus.org/display/JETTY/Downloading+and+Installing</a>.</p>

<p><b>Note about Log4J</b>: Jetty includes an incompatible version of Log4J.
If using Jetty 5, you must get a more recent copy of Log4J, version 1.2.14 or later, and replace
the copy of log4j.jar in the Jetty <em>ext</em> (external libraries) directory.
Just delete the old log4j.jar and copy the new one in its place.</p>

<h3><a name="Environment-JettyLauncher"></a>Jetty Launcher</h3>

<p>Jetty Launcher is a plugin for Eclipse that makes it easy to launch Jetty applications
from within Eclipse. This is a great model, since you can run or debug directly from you workspace
without wasting time packaging and deploying.</p>

<p>Jetty Launcher was created by Geoff Longman, and is available from <a href="http://jettylauncher.sourceforge.net/"
class="external-link" rel="nofollow">http://jettylauncher.sourceforge.net/</a>. Installation
is easy, simply point Eclipse's update manager at <a href="http://jettylauncher.sourceforge.net/updates/"
class="external-link" rel="nofollow">http://jettylauncher.sourceforge.net/updates/</a>.</p>

<p>If you are behind a firewall, you will need to set up a manual proxy configuration
in Eclipse (Window, Preferences..., General, Network Connections).</p>

<p><b>Caution: JettyLauncher is only compatible with Jetty 4 and Jetty 5. It does
not work with Jetty 6.</b></p>

<h3><a name="Environment-Maven2.0.8"></a>Maven 2.0.8</h3>

<p>Maven is a software build tool of rather epic ambitions. It has a very sophisticated
plugin system that allows it to do virtually anything, though compiling Java code, building
WAR and JAR files, and creating reports and web sites are its forte.</p>

<p>Perhaps the biggest advantage of Maven over, say, Ant, is that it can download project
dependencies (such as the Tapestry JAR files, and the JAR files Tapestry itself depends on)
automatically for you, from one of several central repositories.</p>

<p>We'll be using Maven to set up our Tapestry applications. Maven 2.0.8 is available
from <a href="http://maven.apache.org/download.html" class="external-link" rel="nofollow">http://maven.apache.org/download.html</a>.</p>

<h3><a name="Environment-MavenPlugin"></a>Maven Plugin</h3>

<p>The Maven Plugin for Eclipse integrates Maven and Eclipse. It includes some features
for editing the pom.xml (the Maven project description file which identifies, among many other
things, what JAR files are needed by the project). More importantly, a Maven-enabled project
automatically stays synchronized with the POM, automatically linking Eclipse project classpath
to files from the local Maven repository.</p>

<p>The plugin is available by pointing the Eclipse update manager at <a href="http://m2eclipse.codehaus.org/update/"
class="external-link" rel="nofollow">http://m2eclipse.codehaus.org/update/</a>. Make
sure to use version 0.0.10.</p>

<h3><a name="Environment-Tapestry5.0.x"></a>Tapestry 5.0.x</h3>

<p>You should not have to download this directly; as we'll see, Maven should take care
of downloading Tapestry, and its dependencies, as needed.</p>

<p><b>Caution: this book is being written in parallel with Tapestry 5. In some
cases, the screenshots may not be entirely accurate and the version number for Tapestry is
in flux, with snapshot releases occurring frequently, and new dot releases every few weeks.
So, for example, is 5.0.5 is not available, you can use 5.0.4 instead.</b></p>

<p><a href="/confluence/display/TAPESTRY/First" title="First">First</a><a
href="/confluence/display/TAPESTRY/First" title="First">Continue on to Chapter 2: Your
First Tapestry Application</a></p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/TAPESTRY/Environment">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=23340345&revisedVersion=2&originalVersion=1">View
Changes</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message