<!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;">
    Re: JNDI binding and NameNotFoundException
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/edwardpig">David Bailey</a> in <i>JNDI and Naming</i> - <a href="http://community.jboss.org/message/641303#641303">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>@Wolf-Dieter: I know my .ear is deployed, because I can access the HTML pages I put in it.&#160; When I make changes and redeploy, I see the changes.&#160; User interaction is as expected until execution hits the point where I'm trying to access the ScoreComputer bean.&#160; I know the JNDI binding is not correct because I don't see my bean listed anywhere in the JMX console.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>@jaikiran: Here is the directory structure in my development directory:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>${basedir}</p><p>&#160; |--src (standard Java source directory structure)</p><p>&#160; |--build</p><p>&#160; |--dist</p><p>&#160; |--lib</p><p>&#160; |--webinf</p><p>&#160;&#160;&#160;&#160;&#160; |--static (contains .css, .js)</p><p>&#160;&#160;&#160;&#160;&#160; |--velocity (contains Velocity .vm templates)</p><p>&#160;&#160;&#160;&#160;&#160; |--application.xml</p><p>&#160;&#160;&#160;&#160;&#160; |--scpoc-servlet.xml</p><p>&#160;&#160;&#160;&#160;&#160; |--web.xml</p><p>&#160; |--build.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>And here is my build.xml file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>{code:xml}&lt;?xml version="1.0"?&gt;</p><p>&lt;project name="scpoc" basedir="." default="ear"&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;property name="build" value="${basedir}/build" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="content" value="${basedir}/content" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="deployDir" value="D:/Applications/jboss-5.1.0.GA/server/default/deploy" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="dist" value="${basedir}/dist" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="jboss_lib" value="D:/Applications/jboss-5.1.0.GA/common/lib" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="lib" value="${basedir}/lib" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="src" value="${basedir}/src" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="webinf" value="${basedir}/webinf" /&gt;</p><p>&#160;&#160;&#160; &lt;property name="version" value="0.1" /&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;path id="build.classpath"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;fileset dir="${jboss_lib}" includes="**/*.jar" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;fileset dir="${lib}" includes="**/*.jar" /&gt;</p><p>&#160;&#160;&#160; &lt;/path&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;target name="clean"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;delete dir="${build}" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;delete dir="${dist}" /&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;target name="init"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160; &lt;tstamp /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;mkdir dir="${build}" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;mkdir dir="${dist}" /&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;target name="compile" depends="init"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;javac srcdir="${src}" destdir="${build}" optimize="on"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;classpath refid="build.classpath" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/javac&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;target name="war" depends="compile"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;war destfile="${dist}/${ant.project.name}.war" webxml="${webinf}/web.xml"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;lib dir="${lib}" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;classes dir="${build}" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;webinf dir="${webinf}"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;exclude name="web.xml" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;exclude name="application.xml" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/webinf&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/war&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;target name="ear" depends="war"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ear destfile="${dist}/${ant.project.name}-${version}.ear" appxml="${webinf}/application.xml"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;fileset dir="${dist}" includes="*.war" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/ear&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; &lt;target name="deploy" depends="ear"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;copy todir="${deployDir}"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;fileset dir="${dist}" includes="*.ear" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/copy&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p>&lt;/project&gt;{code}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks.</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/641303#641303">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>