This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

war can't find local ejb -

 
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
 
We don't have time to be charming! Quick, read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!