on 10-12-2009 12:57 PM
Hallo,
I want to use an EJB Session Bean as Model in a WebDynPro for Java.
We are on 7.11 SP 3.
Bean-Implementation:
package de.comp.test;
import javax.ejb.Stateless;
import de.comp.MessageList;
@Stateless
public class MiniBean implements MiniLocal {
public MessageList getMessage() {
MessageList msgList = new MessageList();
return msgList;
}
public void setMessage(MessageList s) {
...
}
}
Local-Interface:
package de.comp.test;
import javax.ejb.Local;
import de.comp.MessageList;
@Local
public interface MiniLocal {
public MessageList getMessage ();
public void setMessage (MessageList s);
}
Now when I want to import the EJB in a WebDynPro Model there is following exception:
com.sap.tc.cmi.exception.CMIException: JavaBean de.comp.MessageList does not provide read method for property message
at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.javaBeanAnalyser(EJBCMIRuntimeMetadataFactory.java:520)
at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.processSingleClass(EJBCMIRuntimeMetadataFactory.java:667)
at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.addReferencesToModelClassInfo(EJBCMIRuntimeMetadataFactory.java:469)
at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.createEJBModelInfo(EJBCMIRuntimeMetadataFactory.java:366)
at com.sap.tc.cm.ejb.modeltype.importer.dialog.EJBModelCreationDialog.afterEJBSelectPage(EJBModelCreationDialog.java:367)
at com.sap.tc.cm.ejb.modeltype.importer.dialog.EJBModelCreationDialog.nextPressed(EJBModelCreationDialog.java:172)
...
The EJB DC is deployed in an EAR DC. The WD DC has a dependency to the EAR DC. All Permissions and PP-Configuration should be ok, because when I use the Session Bean with a JNDI-Lookup in an WD-View-Method, it works.
Any idea?
Kind Regards,
Gerhard
Hello Gerhard,
How did you solve the problem?
Regards, Ashwini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.