<!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="http://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;">
    My issues (or missunderstandings) with Jboss Tools
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/Kragoth">Tim Evers</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/592592#592592">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hey everybody.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Let me preface this by saying that my complaints may be completely unfounded and if anyone can help me solve my problems I will be most greatful.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, let me describe the application I'm working on.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We have 2 tier design with Hibernate and Spring being the basis of our service layer and Seam/JSF being the basis of our web layer. Obviously there are other technologies/libs involved but...that's they are the foundations.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>BUT!!!! (And this seems to be where jboss tools and to a certain extent eclipse itself falls to the ground and becomes a very annoying tool) I am not a 1 man team. Not only am I not alone, Eclipse is NOT the only IDE being used. Infact the structure of the app was designed in InteliJ (IDEA). </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So. let me explain our structure.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>root</p><p>&#160;&#160;&#160;&#160; -&gt; code</p><p>&#160;&#160;&#160;&#160; -&gt; workspace //The eclipse workspace for my project is here outside my codebase</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Inside the code folder</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>code</p><p>&#160;&#160;&#160;&#160; -&gt; gekko-build //Yeah I had to use linked resources to make this work cause ecipse is stupid about only compiling inside the project space</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; gekko-services //All our .java files from ../gekko/gekko-services (see description below) compile there .class files to here</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; gekko-web&#160;&#160;&#160;&#160;&#160;&#160; //Same as above except all the .class files from the compiled ../gekko/gekko-web/*.java files</p><p>&#160;&#160;&#160;&#160; -&gt; gekko</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; gekko-services //All our Hibernate and Spring stuff are here. Entities, Spring Components and Services</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; gekko-web</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; config</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; seam/WEB-INF/classes </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; spring/WEB-INF/classes</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; web/WEB-INF&#160; //Contains things like web.xml and other files that will deploy into the war WEB-INF directory</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt;tags&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; prod-src</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; java //This is where all our Seam beans are.</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; resources //.properties files for messages etc</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -&gt; web //All our .xhtml files are here</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, that's a fairly accurate view of our folder structure.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, let's try getting jBoss tools to play nice with this project... Older versions of the jboss tools worked OK. They had issues but auto complete in EL expressions and other features that really were quite helpful worked. There was a lot of stuff that didn't but I could live with it. As new versions came out it would take me longer and longer to get them working with our structure up till now. Now I can't get it working at all.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, I do the Add Seam Support</p><p>Seam support - checked</p><p>Seam Runtime - created a new runtime to the directory I have in a sibling project...once again WHY!!! can't I put in a project relative path *SIGH* (I want to share these settings to others in my team...why make them hardcoded directories?)</p><p>Deployment - WAR (I really don't want you to care about how I deploy, I just want you to allow me to have the features of EL expression auto complete etc)</p><p>View Folder - Well, I tried blank and /gekko/gekko-web/web but no idea if it is doing anything for me</p><p>Model - blank....We dont use extended persistence context Spring is our transaction manager.</p><p>Action/Form/Conv - gekko/gekko-web/prod-src/java - But....the Seam beans are not detected *sigh*</p><p>package - gekko.web</p><p>Test - left unchecked</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, click apply and nope not working.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Now, I've played around a bit with this and I notice that the Seam buildier is not appearing in my list of builders. *sigh*</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, I go check out the project Facets. Seam is not checked...if I try check it it tells me I have constraints not met. OK</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But....all the required constraints now try to enforce a structure on my app. WTH? It should NOT matter how my uncompiled app is structured.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, not to be out done I add the seam builder to my .project file manually. BOOM! All my Seam Beans now appear in the Seam Component view and auto complete in my EL expressions now shows my Seam beans. OK, making progress.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But, I don't get any of the features that I was hoping to get. Thinks like finding all usages of a method in my xhtml.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Anyway, I've had my rant. I'm frustrated. Why is it so easy for developers using InteliJ to just tell the facet here is the web.xml, here is the faces-config.xml and it just works for them. WHY does eclipse / jboss tools/ whatever other plugin jboss tools relies go bananas if I don't have my project set out like it wants it.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Has anyone had success in getting all the features of jboss tools to work on a project where the layout is not 'standard'.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/592592#592592">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>