This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes war can't find local ejb  - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "war can Watch "war can New topic
Author

war can't find local ejb -

Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
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
 
Consider Paul's rocket mass heater.
 
subject: war can't find local ejb -
 
Similar Threads
EJB 1.1 Migration from WebLogic 5 to WebLogic 10
need to change weblogic-ejb-jar.xml to jboss.xml
when the home object will be created??
BMP Deployment descriptors
weblogic 8 to 10 migration..ErrorCouldnot locate bean ejb-jar.xml with EJB1.1