Win a copy of Spark in Action this week in the Open Source Projects 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Connecting Helper Java class to EJB

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am using Weblogic 6.1 and i have an EJB deployed with the JNDI name "LerBD.LerHome".
I want to connect to this EJB through a Web Application that is also in the Weblogic 6.1 (the same server). For that i have Java Helper class that uses the url = "t3://localhost:7001"; and the JNDI_NAME=LerBD.LerHome.
When i run the Web application weblogic gives the following error: "java.lang.NoClassDefFoundError: LerBD.LerHome
at LigacaoEJB.class$(LigacaoEJB.java:11)
at LigacaoEJB.lookupHome(LigacaoEJB.java:42)
at LigacaoEJB.LerConteudo(LigacaoEJB.java:20)
at jsp_servlet._index._jspService(_index.java:102)".
If i use this class as a single Java class it works.
Can anyone help me? I hava no idea...
Thanks in advance
Claudia Vaz
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you show me your code?
The error shows that yours class is not found in your classpath.Check your classpath,or your may deploy your web app's class and ejb's class as one 'EAR'.
 
sam he
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be weblogic class loader 's problem .Look at this link ,you may find the problem.
http://edocs.bea.com/wls/docs70/programming/classloading.html#1029830
 
sam he
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be weblogic class loader 's problem .Look at this link ,you may find the problem.
http://edocs.bea.com/wls/docs70/programming/classloading.html#1029830
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic