Have you checked the other configurtation files to ensure that you've not mistyped the jndi name, you should take a look at your applicatoin.xml. At what point did you recieve the error, was it deployment or runtime?
Hi I'm starting to work with Geronimo and would really like to make the switch form jboss to Geronimo, my problem is when I deploy my ears I got a javax.naming.NameNotFoundException: ejb
I would believe there is something wrong with my openejb-jar.xml
here it is:
<?xml version="1.0"?>
<openejb-jar
xmlns="http://www.openejb.org/xml/ns/openejb-jar"
configId="com/bat/cl/arquitectura"
parentId="org/apache/geronimo/Server">
<enterprise-beans>
<session>
<ejb-name>Functions</ejb-name>
<jndi-name>ejb/Functions</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>DataBaseEngine</ejb-name>
<jndi-name>ejb/DataBaseEngine</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>FunctionExecuter</ejb-name>
<jndi-name>ejb/FunctionExecuter</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>ServiceExecuter</ejb-name>
<jndi-name>ejb/ServiceExecuter</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>Services</ejb-name>
<jndi-name>ejb/Services</jndi-name>
<method-attributes>
</method-attributes>
</session>
</enterprise-beans>
</openejb-jar>
I builded this based on the one in the Geronimo Wiki at http://wiki.apache.org/geronimo/Deployment#head-e0e0f00a4eae99eb5b4a22fb05287ffb6f10e72d
My Jboss.xml file look as:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<jboss>
<enterprise-beans>
<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jboss-beans.xml that contains
the <session></session>, <entity></entity> and <message-driven></message-driven>
markup for those beans.
-->
<session>
<ejb-name>Functions</ejb-name>
<jndi-name>ejb/Functions</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>DataBaseEngine</ejb-name>
<jndi-name>ejb/DataBaseEngine</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>FunctionExecuter</ejb-name>
<jndi-name>ejb/FunctionExecuter</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>ServiceExecuter</ejb-name>
<jndi-name>ejb/ServiceExecuter</jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>Services</ejb-name>
<jndi-name>ejb/Services</jndi-name>
<method-attributes>
</method-attributes>
</session>
<!--
write a merge file jboss-webservices.ent for webservice-description
-->
</enterprise-beans>
<!--
To specify your own assembly descriptor info here, add a file to your
XDoclet merge directory called jboss-assembly-descriptor.xml that contains
the <assembly-descriptor></assembly-descriptor> markup.
-->
<assembly-descriptor>
<!-- message destinations -->
<!--
To specify additional message-destination elements, add a file in the merge
directory called jboss-message-destinations.ent that contains them.
-->
</assembly-descriptor>
<resource-managers>
</resource-managers>
<!--
| for container settings, you can merge in jboss-container.xml
| this can contain <invoker-proxy-bindings/> and <container-configurations/>
-->
</jboss>
Could any help with find my error?
Regards
Alejandro