<!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.  When I make changes and redeploy, I see the changes.  User interaction is as expected until execution hits the point where I'm trying to access the ScoreComputer bean.  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;"> </p><p>@jaikiran: Here is the directory structure in my development directory:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>${basedir}</p><p>  |--src (standard Java source directory structure)</p><p>  |--build</p><p>  |--dist</p><p>  |--lib</p><p>  |--webinf</p><p>      |--static (contains .css, .js)</p><p>      |--velocity (contains Velocity .vm templates)</p><p>      |--application.xml</p><p>      |--scpoc-servlet.xml</p><p>      |--web.xml</p><p>  |--build.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And here is my build.xml file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>{code:xml}<?xml version="1.0"?></p><p><project name="scpoc" basedir="." default="ear"></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <property name="build" value="${basedir}/build" /></p><p>    <property name="content" value="${basedir}/content" /></p><p>    <property name="deployDir" value="D:/Applications/jboss-5.1.0.GA/server/default/deploy" /></p><p>    <property name="dist" value="${basedir}/dist" /></p><p>    <property name="jboss_lib" value="D:/Applications/jboss-5.1.0.GA/common/lib" /></p><p>    <property name="lib" value="${basedir}/lib" /></p><p>    <property name="src" value="${basedir}/src" /></p><p>    <property name="webinf" value="${basedir}/webinf" /></p><p>    <property name="version" value="0.1" /></p><p>    </p><p>    <path id="build.classpath"></p><p>        <fileset dir="${jboss_lib}" includes="**/*.jar" /></p><p>        <fileset dir="${lib}" includes="**/*.jar" /></p><p>    </path></p><p>    </p><p>    <target name="clean"></p><p>        <delete dir="${build}" /></p><p>        <delete dir="${dist}" /></p><p>    </target></p><p>    </p><p>    <target name="init"></p><p>       <tstamp /></p><p>        <mkdir dir="${build}" /></p><p>        <mkdir dir="${dist}" /></p><p>    </target></p><p>    </p><p>    <target name="compile" depends="init"></p><p>        <javac srcdir="${src}" destdir="${build}" optimize="on"></p><p>            <classpath refid="build.classpath" /></p><p>        </javac></p><p>    </target></p><p>    </p><p>    <target name="war" depends="compile"></p><p>        <war destfile="${dist}/${ant.project.name}.war" webxml="${webinf}/web.xml"></p><p>            <lib dir="${lib}" /></p><p>            <classes dir="${build}" /></p><p>            <webinf dir="${webinf}"></p><p>                <exclude name="web.xml" /></p><p>                <exclude name="application.xml" /></p><p>            </webinf></p><p>        </war></p><p>    </target></p><p>    </p><p>    <target name="ear" depends="war"></p><p>        <ear destfile="${dist}/${ant.project.name}-${version}.ear" appxml="${webinf}/application.xml"></p><p>            <fileset dir="${dist}" includes="*.war" /></p><p>        </ear></p><p>    </target></p><p>    </p><p>    <target name="deploy" depends="ear"></p><p>        <copy todir="${deployDir}"></p><p>            <fileset dir="${dist}" includes="*.ear" /></p><p>        </copy></p><p>    </target></p><p></project>{code}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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>