Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting Helper Java class to EJB

 
Claudia Vaz
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
 
sam he
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic