Help!
I'm trying to deploy an EJB in Orion.  At first I
thought I had problems with the naming/lookup, but thanks
to the graphical browser (-console2) I can see my EJB is
not being deployed at all.

"No default cmt-datasource and no source specified"


This is a show stopper, because I cannot test the actual
functionality of the EJB!

Here is the full console error:

C:\java\orion>java -DPROPERTY_STORE=file:///c:\dev\aspi-ejb\properties.conf 
-jar
 orion.jar -console2
Auto-deploying user-ejb.jar... Error compiling
file:/C:/dev/aspi-ejb/build/user/user-ejb.jar:
No default cmt-datasource and no source specified
Orion/1.1.30 initialized



Here is my ejb-jar.xml:

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

<ejb-jar>
<description></description>
<enterprise-beans>
<entity>
        <description>This bean represents a User</description>
        <ejb-name>UserBean</ejb-name>
        <home>com.apama.aspi.ejb.user.UserHome</home>
        <remote>com.apama.aspi.ejb.user.User</remote>
        <ejb-class>com.apama.aspi.ejb.user.UserBean</ejb-class>
        <persistence-type>Bean</persistence-type>
        <prim-key-class>com.apama.aspi.ejb.user.UserPK</prim-key-class>
        <reentrant>False</reentrant>
</entity>
</enterprise-beans>

<assembly-descriptor>
<security-role>
        <description>
        This role represents everyone who is allowed
        full access to the User bean.
        </description>
        <role-name>everyone</role-name>
</security-role>

<method-permission>
        <role-name>everyone</role-name>
        <method>
                <ejb-name>UserBean</ejb-name>
                <method-name>*</method-name>
        </method>
</method-permission>

<container-transaction>
        <method>
                <ejb-name>UserBean</ejb-name>
                <method-name>*</method-name>
        </method>
        <trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>



Can someone point me in the right direction please?
Notes: I don't use any datasources directly in the bean
- everything is done via CORBA (the EJB is the client).

Hope you can help.  Thanks,

        Kev

---
Dr. Kevin Palfreyman
 APAMA Ltd


Reply via email to