• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error----web app could not find ejb module.

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am trying to use webapplication that calls a ejb using weblogic container.

I get the following error: weblogic.deployment.EnvironmentException: [J2EE:160167]The module WebApp.war in application WebApp uses ejb-links but no EJB modules were found for this application.

The location of ejb is in C:\Data\Project\client\TestApp\build\TestApp.jar
The location of web-app is C:\Data\Project\TestWeb\WebApp.war

The DD looks like this


Please help me on the same.

Regards,
Arjun.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The name in the ejb-link element is composed of a path name which is relative to the WAR file containing the Web application that is referencing the EJB. Check that your path name is correct.
 
Arjun Karthick
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roger,
I have given as
<ejb-link>../../clientpackage_new/TestApp/build/TestApp.jar#ClientEJB</ejb-link>

Still the error persist.

I have given the location of both ejb and web application in the previous post. Do you find any thing wrong in what i have given?

And one more doubt in servlet i have following code is there anything wrong in it.

Here the ClientEjb is the Ejb name. I have been previously trying with JNDI Name.

Can you please help in this ?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to understand how you are doing your deployment.

Have you built a single EAR file from your WAR and EJB JAR files, and then deployed the EAR file onto one server? If possible, this is the best deployment.

Or have you deployed your WAR file onto one server and the EJBs onto another server?
 
Arjun Karthick
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have the ejb as a jar and deployed in weblogic 9.1 And now i am trying to deploy the WAR in the same server,which will use the ejb as a service. I am forced to do so instead of WAR as it is my requirement.

thanks,
Arjun
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
web.xml===============


Remove the above from the web.xml . Its not needed as you are not deploying EJB module in the war, you should be directly able to do a JNDI lookup from the code of web app.
 
reply
    Bookmark Topic Watch Topic
  • New Topic