GeeCON Prague 2014*
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


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
 
GeeCON Prague 2014
 
subject: Connecting Helper Java class to EJB