• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

war can't find local ejb -

 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic