<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    JBoss Source Lookup
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="https://community.jboss.org/people/snjeza">Snjezana Peco</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/community/tools/blog/2012/01/24/jboss-source-lookup">View the full blog post</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>The JBoss Tools Source Lookup plugin automatically adds a source attachment when debugging JBoss AS servers. </p><p>The plugin has been tested with JBoss AS 7.x and JBoss AS 6.1. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h4>Installing the JBoss Source Lookup plugin</h4><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>install JBoss Tools 3.3, as described in&#160; <a class="jive-link-blog-small" href="https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee-6-quickly-using-jboss-central">Learn Java EE 6 quickly using JBoss Central</a></li><li>call Help&gt;Install New Software..., click the Add button and enter the following update site: </li></ul><p><a class="jive-link-external-small" href="https://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/org.jboss.tools.as.sourcelookup.updatesite/">https://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/org.jboss.tools.as.sourcelookup.updatesite/</a></p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/38-4482-17822/lookupblog1.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4482-17822/450-382/lookupblog1.png </span></a></p><p>Install the JBoss Tools Source Lookup category and restart Eclipse.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h4>Using the JBoss Source Lookup plugin</h4><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>set up the central JBoss Maven repository as explained in: <a class="jive-link-wiki-small" href="https://community.jboss.org/docs/DOC-15169">Maven Getting Started - Users</a></li><li>create the jboss-as-helloworld project by following the instructions in <a class="jive-link-blog-small" href="https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee-6-quickly-using-jboss-central">Learn Java EE 6 quickly using JBoss Central</a>. </li><li>wait for Maven to refresh indexes. </li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The use and debugging of this plugin is demonstrated in the following screencast: <a class="jive-link-external-small" href="http://screencast.com/t/i6k9hzkjViOs">Debugging JBoss AS server</a>.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The JBoss Source Lookup plugin enhances source attachment in the following way: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>archive file doesn't have to be in the maven classpath</li><li>archive file doesn't have to be included in the classpath (jbossweb-*.jar, for instance). The JBoss Source Lookup plugin will find a class within a JBoss AS distribution and, if it is a Maven artifact, the plugin will attach the corresponding source.</li><li>archive file doesn't have to be in the m2e index (jbossjts-4.16.0.Final.jar, for instance)</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>You don't have to add any JBoss AS Runtime to the classpath. I have added it in order to ensure the classes within the runtime are included in the Java Search and in order to be easier to add a breakpoint. </p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="https://community.jboss.org/community/tools/blog/2012/01/24/jboss-source-lookup">going to Community</a></p>

</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>