cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro + J2EE

Former Member
0 Kudos

Hi!

I'm trying to develop an WebDynpro applicattion using J2EE to connect to database. The session bean communicates whit the dynpro and executes a calculation correctly but in next step must call to entity bean for communication whit database and returns an error message:

"Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ejb/MiEntityBean".

(MyEntityBean is the JNDI).

I could't find ani step by step tutorial to create a complete application using EJBs to communicate with databases and WD. Can someone help me?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

hi denisa,

plz go through

[Accessing EJB table using Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]

[Create EJB WS with MSSQL|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]

nikhil

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi,

double check your j2ee descriptors and JNDI reference

  • Is java:comp/env/ejb/MiEntityBean mistyped only on this forum? (the 'i' instead of 'y' after 'M')

  • The session bean has declared a reference (local or remote) to the entity bean?

  • The name of this reference should be used in the lookup string: i.e, if reference is ejb/MyEntityBean, use java:comp/env/ejb/MyEntityBean

PradeepBondla
Active Contributor
0 Kudos

Hi,

here are good tutorials

[Using EJB's in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]

[J2EE_QuickCarRental project|http://help.sap.com/saphelp_nw04/helpdata/en/80/c12041aa7df323e10000000a155106/frameset.htm]

[Java Bean Model Importer in Web Dynpro|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2275] [original link is broken] [original link is broken] [original link is broken];

[WebDynpro: Importing Java Classes as model|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/839] [original link is broken] [original link is broken] [original link is broken];

[Importing Complex JavaBean model into WebDynpro|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3511] [original link is broken] [original link is broken] [original link is broken];

[Getting a Connection to the Database|http://help.sap.com/saphelp_nw04/helpdata/en/82/fdbf2085f65f43a71e755fc904478d/frameset.htm]

PradeeP