Connecting Helper Java class to EJB

Claudia Vaz

Ranch Hand

Posts: 44

posted 15 years ago

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

posted 15 years ago

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'.