Here is the weblogic-ejb-jar.xml
====Begin weblogic-ejb-jar.xml ====
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Cart</ejb-name>
<jndi-name>Cart</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
====End weblogic-ejb-jar.xml====
Here is the ejb-jar.xml
=== Begin ejb-jar.xml ======
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<display-name>Cart</display-name>
<ejb-name>Cart</ejb-name>
<home>cart_session.CartHome</home>
<remote>cart_session.Cart</remote>
<ejb-class>cart_session.CartBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Cart</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
=== End ejb-jar.xml==============
I converted the context object to
string and this is what I get:
javax.naming.InitialContext@19b04e2 -- Eventhough the exception says
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
====================================
Thanks for your help