cancel
Showing results for 
Search instead for 
Did you mean: 

deploy application throw JDI

Former Member
0 Kudos

my app it base on SAP WAS 7.0,we use ejb & webdynpro,oracle db

this app is runing perfect in my dev server, then dyploy these app to EP SERVER,

we i test it ,the webdynpro app throw " classcast exception"(where the app look up jnid ),

so i 've chang the look up method ,the app still throw " classcast exception or classnotfound exception",but the app is runing perface in dev server,

so i rebuid the DC try it,still error,then i create new dc copy sourcecode,deploy,still throw error in ep server ,in dev server everything is ok, parms about ejb is same ,

oh ,my god ,what can i do?

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

thanks all,

create new tracker

recreate all dc ,deploy then every thing is ok

Former Member
0 Kudos

thanks all

Former Member
0 Kudos

i got it something wrong about the server ,

rebuild dc then everything is ok

Former Member
0 Kudos

hi Yaiza Hernandez :

yes , i 've deploy dc & ejb

the app is my first app base on webdynpro,so ejb using mode is classic ,

create entity bean & session bean webdynpro app find ejb loclalhome throw jdni lookup,i can not understand why the app just can find ejb loclalhome in dev sever,

Former Member
0 Kudos

it's awful that my app work perfect on dev server .

but in the progress of development , my dc has been recreate 2 times ,because developer did not active & release change ,there is a lot of change need to active ,so i create new dc and copy source code under /src to new dc ,then active ,release . test , error.

by the way my ejb is local app, deployed by hand.

i doubt that , when i deploy my app, does JDI complied DC & ejb correctly?

Former Member
0 Kudos

Hello Frank,

You have to deploy the ejb and after the DC... How are you using your ejb in your DC? are you using a Java Command Bean model?

Regards

Former Member
0 Kudos

Yaiza Hernandez :

u can get remote interface use this method ,

my code like this ' lookup("Localejs/mybeans")'

it's strangely the app work well on one server but can not run on other server

Former Member
0 Kudos

Hi Frank,

have you solved this problem?

If it's not, check that <b>you have deployed your ejb</b> (.ear file) to EP.

Remember the JNDI should be unique and you have to add a reference in the WD project to the ejb application.

Example:

ejb-j2ee-engine.xml --> <jndi-name>VendorMDMRecordBean</jndi-name>

application.xml --> <display-name>VendorMDMWService</display-name>

When you want to look up the EJB:

InitialContext ctx = new InitialContext();

Object ob = ctx.lookup("<b>VendorMDMRecordBean</b>");

In your WD Project: Properties->WD references->Sharing References:

mycompany.com/<b>VendorMDMWService</b>

You can have a look to the manual: <u>Using EJB in WD projects</u> in:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85...

Hope it hepls!

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Its expecting some jars to look up at runtime like(class12.jar).

Add to the DC by following the weblog a bit of impracticle scripting by valery.

Regards,

Vijai