Greetings,

I have created an ejb with the ejbmaker and used the
provided ejb-jar, but when I build with ANT the server
gives me:

Auto-unpacking
C:\SMU\javaHW\SMUTree\code\build\TOK.ear... done.
Error in application tok: Error loading package at
file:/C:/SMU/javaHW/SMUTree/c
ode/build/TOK/TOK-ejb.jar, Class
'com.joefair.tok.ejb.KTreeEJB' not found

Buth that jar has the files in question in it, and in
the proper directories.  I've tried EJB version 2.0
and 1.1, with different beans, but I get the same
result.  Is there some other setting I should change
to use these EJBs?

ejb-jar:

<?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></description>

                        <ejb-name>com.joefair.tok.ejb.KTree</ejb-name>

                        <home>com.joefair.tok.ejb.KTreeHome</home>

                        <remote>com.joefair.tok.ejb.KTree</remote>

                        <ejb-class>com.joefair.tok.ejb.KTreeEJB</ejb-class>

                        <persistence-type>Container</persistence-type>

                        <prim-key-class>java.lang.Long</prim-key-class>

                        <reentrant>False</reentrant>

                        <cmp-field><field-name>id</field-name></cmp-field>
                
<cmp-field><field-name>title</field-name></cmp-field>
                
<cmp-field><field-name>description</field-name></cmp-field>
                
<cmp-field><field-name>headNode</field-name></cmp-field>
                        <primkey-field>id</primkey-field>

                </entity>

        </enterprise-beans>

        <assembly-descriptor>

                <container-transaction>

                        <method>

                                <ejb-name>com.joefair.tok.ejb.KTree</ejb-name>

                                <method-name>*</method-name>

                        </method>

                        <trans-attribute>Supports</trans-attribute>

                </container-transaction>

        </assembly-descriptor>

</ejb-jar>

Any clues would be greatly appreciated.
Thanks,
Joe

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to