I tried a few other things, but I am still not able to see the bean bound to
the naming context.  Could someone shed some light at what configuration
files I should look at:

SERVER.XML:

<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "Orion Application Server Config"
"http://www.orionserver.com/dtds/application-server.dtd">

<application-server>
        <!-- Path to the libraries that are installed on this server. These
will be
        accesable for the servlets etc -->
        
        <library path="../lib;../lib/classes111.zip;../../citysearch" />
        
        <rmi-config path="./rmi.xml" />
        <!-- JMS-server config link, uncomment to activate the JMS service
-->
        <!-- <jms-config path="./jms.xml" /> -->
        <data-sources path="./data-sources.xml" />
        <principals path="./principals.xml" />
        
        <log>
                <file path="../log/server.log" />
        </log>
        
        <global-application name="default" path="application.xml" />

        <global-web-app-config path="global-web-application.xml" />
        
        <application name="citysearch" path="../../citysearch" />
                
        
        <!-- <web-site path="./default-web-site.xml" /> -->

        <!-- Compiler, activate this to specify an alternative compiler such
                as jikes for EJB/JSP compiling. -->
        <!-- <compiler executable="jikes"
classpath="/myjdkdir/jre/lib/rt.jar" /> -->
        
</application-server>

APPLICATION.XML:

<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">

<application>
  <display-name>CitySearch</display-name>
  <module>
    <ejb>com/citysearch/ejb/ClassType</ejb>
  </module>
</application>

EJB-JAR.XML:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.2//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_2.dtd">

<ejb-jar>
  
  <enterprise-beans>
    <entity>
            <ejb-name>com.citysearch.ejb.ClassType</ejb-name>
            <home>com.citysearch.ejb.ClassType.ClassTypeHome</home>
            <remote>com.citysearch.ejb.ClassType.ClassType</remote>
            <ejb-class>com.citysearch.ejb.ClassType.ClassTypeEJB</ejb-class>
            <primkey-class>java.lang.Integer</primkey-class>
            <reentrant>True</reentrant>
            <persistence-type>Bean</persistence-type>
    </entity>
  </enterprise-beans>
  
  <assembly-descriptor>
  
    <container-transaction>
      <method>
        <ejb-name>com.citysearch.ejb.ClassType</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    
  </assembly-descriptor>
</ejb-jar>

ORION-EJB-JAR.XML:

<?xml version="1.0"?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1
runtime//EN" "http://www.orionserver.com/dtds/orion-ejb-jar.dtd">

<orion-ejb-jar deployment-version="0.9.4" deployment-time="de079e9785">
  <enterprise-beans>
    <entity-deployment name="com.citysearch.ejb.ClassType"
location="SHIT/ClassType" wrapper="EntityHomeWrapper1"
table="AUSTXDEV.CLASS_TYPES">                 
    </entity-deployment>         
  </enterprise-beans>
  <assembly-descriptor>
    <default-method-access>                         
       <security-role-mapping impliesAll="true" />                 
    </default-method-access>         
  </assembly-descriptor>
</orion-ejb-jar>

I have been trying this for 2 days now, with no luck.  What am I missing?

Thanks.
-AP_

-----Original Message-----
From: Alex Paransky [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 20, 2000 4:59 PM
To: Orion-Interest
Subject: Deploying EJB bean, does not bind home in to naming context...


I created an EJB bean, and deployed it.  

E:\work\orion>java -jar d:\java\orion\orion.jar
Auto-deploying ClassType... done.
Orion/0.9.4 initialized

Since I am not getting any error messages, I assume that everything went
fine.  After this, I try to run the client to display the names of beans
bound to JNDI context (using Context.list).  Here is what I see:

E:\work>java com.citysearch.ejb.ClassType.ClassTypeClient
Context: jdbc
  Binding: DefaultPooledDS -->
com.evermind.sql.DefaultConnectionPoolDataSource
  Context: xa
    Binding: DefaultXADS --> com.evermind.sql.DefaultXADataSource
  Binding: DefaultDS --> com.evermind.sql.ConnectionDataSource
Context: java:comp
  Binding: ServerAdministrator --> Proxy0
  Binding: Administrator --> Proxy1
  Binding: ResourceFinder --> Proxy2

But I do not see the class I just deployed.  I must be missing something.
Is there a configuration file which I am missing?

Thanks.
-AP_

Reply via email to