on 12-10-2012 7:55 PM
I am migrating a Webdynpro application from the 7.0 to 7.3. The previous version was using directly Initial context to lockup the bean. Actually I created an Enterprise JavaBean Model to access the EJB.
However I am getting the following error when the model is instantiated (AtrEjbModel model = new AtrEjbModel();)
com.sap.tc.cmi.exception.CMIException: No resources found on the file system for application weg.net/atrapp. Make sure it has been deployed properly.
The jndiName is apparently ok, it is ejb:/appName=weg.net/atrapp, beanName=MainSessionBean, interfaceName=net.weg.atr.session.MainSessionBeanLocal. I tested the EBJ Session Bean with the EJB Explorer tool, and it is working fine too.
Do you have any suggestions?
It is working now.
I recreated the EJB in the new version 3.0 and copy and paste all code. I did some adjusts on the EJB to use resourse.
After that, I tried again the lockup and it is working: jndi .lookup("ejb:/appName=weg.net/xxxx, beanName=xxxx, interfaceName=xxxxLocal");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cleiton,
I have same problem. I used your correct answer but I could not solved.
My code is:
InitialContext ctx = new InitialContext();
objref = ctx.lookup("ejb:/appName=XXX.com/xxx~yyy~ear, jarName=XXX.com~appl~xxx~ejb.jar, beanName=XXXBean, interfaceName=com.xxx.yyy.model.myclassHome");
home =(myclassHome)javax.rmi.PortableRemoteObject.narrow(objref,myclassHome.class);
ejb = home.create();
Can you help me?
Regards.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.