on 05-31-2007 6:26 AM
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?
thanks all,
create new tracker
recreate all dc ,deploy then every thing is ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i got it something wrong about the server ,
rebuild dc then everything is ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Hope it hepls!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.