Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Connecting Helper Java class to EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Connecting Helper Java class to EJB" Watch "Connecting Helper Java class to EJB" New topic
Author

Connecting Helper Java class to EJB

Claudia Vaz
Ranch Hand

Joined: Nov 13, 2001
Posts: 44
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

Joined: Jun 28, 2002
Posts: 12
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

Joined: Jun 28, 2002
Posts: 12
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

Joined: Jun 28, 2002
Posts: 12
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting Helper Java class to EJB
 
Similar Threads
Problem to access the ejb components
Accessing Entity Beans by JSP client in Weblogic 6.1
Accessing Entity Beans by JSP client in Weblogic 6.1
Creating Web Application in Weblogic 6.1
Problem Deploying Session Bean