I have looked into it further and thought it was a missing <ejb-link> tag in
web.xml to no avail.  I have noticed that the <ejb-ref-mapping> tags are
being created by Orion when it deploys the web application in the
orion-web.xml file.  This is a very bizarre problem for me. Here is the
error from the std-out.log:
javax.naming.NameNotFoundException: ProfileEntity not found
        at com.evermind.server.rmi.RMIContext.lookup(JAX)
        at com.evermind.server.hi.f_(JAX)
        at com.evermind.server.hi.lookup(JAX)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at
com.micronpc.api.configurator.ActiveModelBean.<init>(ActiveModelBean.java:16
9)
        at
com.micronpc.api.configurator.ActiveModelBean.<init>(ActiveModelBean.java:11
5)
        at
com.micronpc.api.configurator.ActiveModelBean.<init>(ActiveModelBean.java:93
)
        at
com.micronpc.api.configurator.ConfigRequestXmlHandler.extractConfigRequest(C
onfigRequestXmlHandler.java:127)
        at
com.micronpc.api.configurator.ConfigRequestXmlHandler.getActiveModel(ConfigR
equestXmlHandler.java:59)
        at ModelHTML.setXmlFileName(ModelHTML.java:278)
        at
__jspPage2_VND_RSEntry_configurator_jsp._jspService(__jspPage2_VND_RSEntry_c
onfigurator_jsp.java:41)
        at com.orionserver.http.OrionHttpJspPage.service(JAX)
        at com.evermind.server.http.HttpApplication.w5(JAX)
        at com.evermind.server.http.JSPServlet.service(JAX)
        at com.evermind.server.http.d1.si(JAX)
        at com.evermind.server.http.d1.forward(JAX)
        at com.evermind.server.http.ed.sp(JAX)
        at com.evermind.server.http.ed.so(JAX)
        at com.evermind.util.f.run(JAX)

Here is what the orion-web.xml looks like:
<?xml version="1.0"?> <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion
Web Application 2.3//EN" "http://www.orionserver.com/dtds/orion-web.dtd">
<orion-web-app
        deployment-version="1.3.8"
        development="true"
        jsp-cache-directory="./persistence"
        temporary-directory="./temp"
        servlet-webdir="/servlet/"
>       <session-tracking />    
        <ejb-ref-mapping name="QuoteEntity" />  
        <ejb-ref-mapping name="ModelQuoteEntity" />     
        <ejb-ref-mapping name="ProfileEntity" />        
        <ejb-ref-mapping name="ConfiguratorSession" />  
        <ejb-ref-mapping name="B2BLookupEntity" /> 
</orion-web-app> 

My ActiveModelBean has a main that works fine from a remote machine or from
the server on the command line.  All it does is call the constructor which
creates/loads 3 entity beans.  On the web server I have a
Servlet(ConfigRequestXmlHandler) that tries to construct the object.  It
creates the context within the object fine, but as soon as I try to fetch
the first interface it throws the error. 

Any ideas?

Greg


-----Original Message-----
From: J Davis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 5:10 PM
To: Orion-Interest
Subject: EJB Problem


I am having a problem that is probably really simple but I can't seem to
figure it out.  I have deployed some EJBs on the server and I can connect to
them fine from a remote application using the jndi.properties and
application-client.xml file.  But when I try to hit the EJBs from the same
bean within a servlet on the same server it throws a namingException saying
it can't find my EJB in the namespace.  I ensured the ejb-ref tags were in
the web.xml file in WEB-INF of the web space. Is there any other place I
need to reference the ejbs for the web-server side of orion?

Thanx,

Greg




Reply via email to