1

Oracle Java Cloud Serviceにアプリケーションをデプロイしようとしています。ステートレス ejb (3.0) を作成しました。

@Stateless(name = "PTOnlineSessionEJB", mappedName = "ejb/PtOnlineBean")
@Local(PTOnlineSessionEJBLocal.class)
public class PTOnlineSessionEJBBean implements PTOnlineSessionEJBLocal {

ローカル インターフェイスを使用する場合:

@Local
public interface PTOnlineSessionEJBLocal {

次に、ejb にアクセスしようとします。

@WebService(serviceName = "PTOnlineService", portName = "PTOnlineServiceSoap12HttpPort")
@BindingType(SOAPBinding.SOAP12HTTP_BINDING)
public class PTOnlineService {
    @EJB(name = "ejb/PtOnlineBean")
    PTOnlineSessionEJBLocal PtOnlineBean;

クラウド サーバーにデプロイしようとすると、次のエラーが発生します。

Caused by: weblogic.deployment.EnvironmentException: [J2EE:160200]Error resolving ejb-ref 'ejb****' from module 'PTOnlinev6-ViewController-context-root' of application 'PTOnline'. The ejb-ref does not have an ejb-link and the JNDI name of the target bean has not been specified. Attempts to automatically link the ejb-ref to its target bean failed because no EJBs in the application were found to implement the 'it.enigen.pt.online.ejb.PTOnlineSessionEJBLocal' interface. Please link or map this ejb-ref to its target EJB and ensure the interfaces declared in the ejb-ref are correct.

weblogic のローカル インターフェイスで ejb を公開して使用するにはどうすればよいですか?

4

0 に答える 0