Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

war can't find local ejb -

 
Max Tomlinson
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi-

Can someone please set me straight re: local ejbs and Weblogic? In particular ejb-links:

I�m getting the following error when I try to start my server:

[weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'epaymentEJB/weblogic-epaymentEJB.jar#EpaymentEJB' declared in the ejb-ref or ejb-local-ref 'EpaymentEJB' in the application module 'weblogic-brazil.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.]
}

weblogic-ejb-jar.xml:

<?xml version="1.0"?>
<!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>EpaymentEJB</ejb-name>
<stateless-session-descriptor>
<pool>
<initial-beans-in-free-pool>5</initial-beans-in-free-pool>
</pool>
<stateless-clustering>
<stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
<stateless-bean-load-algorithm>RoundRobin</stateless-bean-load-algorithm>
</stateless-clustering>
</stateless-session-descriptor>
<local-jndi-name>EpaymentEJB</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>

ejb-jar.xml:

<?xml version="1.0"?>
<!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>Epayment</display-name>
<ejb-name>EpaymentEJB</ejb-name>
<local-home>epayments.ejb.EpaymentLocalHome</local-home>
<local>epayments.ejb.EpaymentLocal</local>
<ejb-class>epayments.ejb.EpaymentBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor/>
</ejb-jar>

web.xml:

<ejb-local-ref>
<description>EpaymentEJB</description>
<ejb-ref-name>EpaymentEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>epayments.ejb.EpaymentLocalHome</local-home>
<local>epayments.ejb.EpaymentLocal</local><ejb-link>../epaymentEJB/weblogic-epaymentEJB.jar#EpaymentEJB</ejb-link>
</ejb-local-ref>
</web-app>

In my wls server, the ejb is deployed successfully in:

\stage\epaymentEJB\weblogic-epaymentEJB.jar

I�m building with ant, deploying the war and ejb in my config.xml (not an ear)

Many thanks!
Max
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic