Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing local interface

Status
Not open for further replies.

Undeployed

Programmer
Sep 12, 2003
3
IN
Hi,
I've deployed an Entity ejb in jar file EmployeeJAR.jar in weblogic 7.
EJB Name : EmployeeEJB
JNDI Name : EmployeeEJB
LocalJNDI name : LocalEmployeeEJB


There is DefaultWebApp web application deployed(in exploded form).
I've jsp in defaultwebApp, which accesses this EJB.
When i access it through it's remote interface, its fine.
But when i tried through local interface, it threw exception.
I tried to put ejb-ref element in web.xml of defaultWebApp, but it makes the web application to fail to deploy.

weblogic.deployment.EnvironmentException: Could not resolve ejbLink: EmployeeEJB


I'm pasting ejb-ref element below.

<ejb-ref>
<ejb-ref-name>LocalEmployeeEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>beans.entity.cmp.LocalEmployeeHome</home>
<remote>beans.entity.cmp.LocalEmployee</remote>
<ejb-link>EmployeeEJB</ejb-link>
</ejb-ref>

Plz help.
plz ask if you need more info.
 
Hi, I have the same problem.
Please let me know, how you solved it. please....
Thanks a lot in advance
 
If you are trying to access a local entity bean make the appropriate changes....

ejb-ref>
<ejb-ref-name>LocalEmployeeEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>beans.entity.cmp.LocalEmployeeHome</home>
<local>local path</local>
<ejb-link>EmployeeEJB</ejb-link>
</ejb-ref>
 
Thanks omsantosh.
But my problem is as follows...
it works fine, when i access my local session bean.
But, gives compilation errors, when i access the remote session bean, though i made the appropriate changes in web.xml
Please help..
Thanks in advance.
 
the problem is your ejb-jar package and webapp-war package can not see each other.
the solution is to make a ear package which include this two package, and redeploy this ear package instead of that two old package.
this can work, i've tried.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top