Bom dia,
Galera eu estou tendo esse meu SessionBean Boleto, detalhe tenho outros sessionbeans que estão todos ok, não estou entendo pq esse está falhando:
java.lang.RuntimeException: javax.naming.NameNotFoundException: cim/Boleto
Segue meu jboss.xml:<?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>
<security-domain>java:/jaas/mic</security-domain>
<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>Boleto</ejb-name>
<jndi-name>cim/Boleto</jndi-name>
<configuration-name>SSL Clustered Stateless SessionBean</configuration-name>
<clustered>true</clustered>
<cluster-config>
<partition-name>Greenline</partition-name>
<home-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</home-load-balance-policy>
<bean-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</bean-load-balance-policy>
</cluster-config>
<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>
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 >
<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
<session >
<description><![CDATA[]]></description>
<ejb-name>User</ejb-name>
<home>br.com.greenlinesaude.cim.service.interfaces.UserHome</home>
<remote>br.com.greenlinesaude.cim.service.interfaces.User</remote>
<ejb-class>br.com.greenlinesaude.cim.service.ejb.UserSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<session >
<description><![CDATA[]]></description>
<ejb-name>Boleto</ejb-name>
<home>br.com.greenlinesaude.cim.service.interfaces.BoletoHome</home>
<remote>br.com.greenlinesaude.cim.service.interfaces.Boleto</remote>
<ejb-class>br.com.greenlinesaude.cim.service.ejb.BoletoSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<!--
To add session beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called session-beans.xml that contains
the <session></session> markup for those beans.
-->
<!-- Entity Beans -->
<!--
To add entity beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called entity-beans.xml that contains
the <entity></entity> markup for those beans.
-->
<!-- Message Driven Beans -->
<!--
To add message driven beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called message-driven-beans.xml that contains
the <message-driven></message-driven> markup for those beans.
-->
</enterprise-beans>
<!-- Relationships -->
<!-- Assembly Descriptor -->
<!--
To specify your own assembly descriptor info here, add a file to your
XDoclet merge directory called assembly-descriptor.xml that contains
the <assembly-descriptor></assembly-descriptor> markup.
-->
<assembly-descriptor >
<!--
To specify additional security-role elements, add a file in the merge
directory called ejb-security-roles.xml that contains them.
-->
<security-role>
<description><![CDATA[description not supported yet by ejbdoclet]]></description>
<role-name>sys</role-name>
</security-role>
<!-- method permissions -->
<!--
To specify additional method-permission elements, add a file in the merge
directory called ejb-method-permissions.ent that contains them.
-->
<method-permission >
<description><![CDATA[description not supported yet by ejbdoclet]]></description>
<role-name>sys</role-name>
<method >
<description><![CDATA[description not supported yet by ejbdoclet]]></description>
<ejb-name>User</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
<method-permission >
<description><![CDATA[description not supported yet by ejbdoclet]]></description>
<role-name>sys</role-name>
<method >
<description><![CDATA[description not supported yet by ejbdoclet]]></description>
<ejb-name>Boleto</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
<!-- transactions -->
<!--
To specify additional container-transaction elements, add a file in the merge
directory called ejb-container-transactions.ent that contains them.
-->
<!-- finder transactions -->
<!-- message destinations -->
<!--
To specify additional message-destination elements, add a file in the merge
directory called ejb-message-destinations.ent that contains them.
-->
<!-- exclude list -->
<!--
To specify an exclude-list element, add a file in the merge directory
called ejb-exclude-list.xml that contains it.
-->
</assembly-descriptor>
</ejb-jar>