Announcement Announcement Module
Collapse
No announcement yet.
EJB Lookup error in WebLogic Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EJB Lookup error in WebLogic

    Hi

    I got the following error when I have the following set up.
    <bean id="firstService"
    class="net.qpass.cingular.services.optin.CingularO ptInServiceImpl">


    <property name="secondService"
    ref="secondService" />
    </bean>
    <bean id="secondService"
    class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean">
    <property name="businessInterface"
    value="secondServiceEJB" />
    <property name="jndiName" value="secondServiceHome" />

    </bean>

    firstService and secondService are implemented as Stateless Session Beans. They are in the same ear. What is the proper way for the first ejb to access the second ejb? Second ejb is implemented as remote ejb because it also could have remote clients. I can get around this error by instantiating the service impl directly and inject the dependency to firstService.

    I can also look up other ejb that are in different ears but on the same server. i am using weblogic server wls-8.1.3.0. any help appreciated.

    -----------------------------------------------------------------------------------------------------------------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Environment not found on thread ]
    at weblogic.jndi.internal.NamingNodeReplicaHandler.<i nit>(NamingNodeReplicaHandler.java:150)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at weblogic.common.internal.ChunkedObjectInputStream. readObject(ChunkedObjectInputStream.java:98)
    at weblogic.common.internal.ChunkedObjectInputStream. readObjectWL(ChunkedObjectInputStream.java:167)
    at weblogic.common.internal.ChunkedObjectInputStream$ NestedObjectInputStream.readObjectWL(ChunkedObject InputStream.java:341)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.readExt ernal(ReplicaAwareRemoteRef.java:384)
    at java.io.ObjectInputStream.readExternalData(ObjectI nputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1845)
    at java.io.ObjectInputStream.defaultReadObject(Object InputStream.java:452)
    at weblogic.rmi.internal.StubInfo.readObject(StubInfo .java:116)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:838)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1746)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:324)
    at weblogic.common.internal.ChunkedObjectInputStream. readObject(ChunkedObjectInputStream.java:119)
    at weblogic.common.internal.ChunkedObjectInputStream. readObjectWL(ChunkedObjectInputStream.java:167)
    at weblogic.common.internal.ChunkedObjectInputStream$ NestedObjectInputStream.readObjectWL(ChunkedObject InputStream.java:341)
    at weblogic.jndi.internal.WLContextImpl.readExternal( WLContextImpl.java:430)
    at weblogic.jndi.internal.WLEventContextImpl.readExte rnal(WLEventContextImpl.java:378)
    at java.io.ObjectInputStream.readExternalData(ObjectI nputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1845)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1769)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1845)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1769)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1845)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1769)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1845)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1769)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1845)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1769)
    .......................

  • #2
    Originally posted by adandan01 View Post
    class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean">
    <property name="businessInterface"
    value="secondServiceEJB" />
    This seems incorrect, as "secondServiceEJB" is no valid classname. Here, the fully qualified name of the business interface is expected (possibly "net.qpass.cingular.services.optin.CingularOptInSe rvice").

    Regards,
    Andreas

    Comment

    Working...
    X