Look up entitiy beans across DCs??

i want to look up entity beans from one Dcs to another DC. i hv written following code for lookup same as we write to look up in case of session beans and entity beans are in same DC. But i am not able to get reference of entity beans in other DC using following code. is there anyother way ??? Here i want look up entity beans from 2 different DC (DC1 appdm and DC2 jobposmg)
@PersistenceContext(unitName = "appdm", type = PersistenceContextType.TRANSACTION)
     public EntityManager emappdm;
     @PersistenceContext(unitName = "jobposmg", type = PersistenceContextType.TRANSACTION)
     public EntityManager emjobposmg;

i hv written following code for look up inside session bean.
@PersistenceContext(unitName = "appdm", type = PersistenceContextType.TRANSACTION)
     public EntityManager emappdm;
     @PersistenceContext(unitName = "jobposmg", type = PersistenceContextType.TRANSACTION)
     public EntityManager emjobposmg;
both persistence units , appdm and jobposmg , are from different DCs. In case of appdm its not showing any error , but not able to look up for persistence unit "jobposmg". i am sending u defaultTrace i got while executing webservice for this session bean business method.
#1.#0050569630A50032000001EC00007A2300E1E5C40FB91E18#1216008080728#com.sap.engine.services.ejb3.runtime#asianpaints.com/ereca
pp#com.sap.engine.services.ejb3.runtime#Guest#38008##apj2e_J2D_6358450##e1de9bd0515711dd8adb0050569630a5#HTTP Worker [4]##0#0
#Error##Java###System exception
[EXCEPTION]
#1#javax.ejb.EJBException: Exception in getMethodReady() for stateless bean asianpaints.com/erecapp*annotation|asianpaint
s.com~sessproc.jar*annotation|SelectionProcessRetrivalBean; nested exception is: com.sap.engine.services.ejb3.util.pool.PoolE
xception: javax.ejb.EJBException: Cannot perform injection over bean instance com.apl.erec.session.selectionprocessretrival.S
electionProcessRetrivalBean@77c6fee0 for bean asianpaints.com/erecappannotation|asianpaints.com~sessproc.jarannotation|Sele
ctionProcessRetrivalBean; nested exception is: com.sap.engine.lib.injection.InjectionException: Injection on field emjobposmg
of instance com.apl.erec.session.selectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 failed. Could not get a valu
e to be injected from the factory.
com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException: Cannot perform injection over bean instance com
.apl.erec.session.selectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 for bean asianpaints.com/erecapp*annotation|
asianpaints.com~sessproc.jar*annotation|SelectionProcessRetrivalBean; nested exception is: com.sap.engine.lib.injection.Injec
tionException: Injection on field emjobposmg of instance com.apl.erec.session.selectionprocessretrival.SelectionProcessRetriv
alBean@77c6fee0 failed. Could not get a value to be injected from the factory.
        at com.sap.engine.services.ejb3.util.pool.ContainerPool.translate(ContainerPool.java:288)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.doResizeOneStepUp(ContainerPoolImpl.java:378)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.ensureNotEmpty(ContainerPoolImpl.java:342)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.pop(ContainerPoolImpl.java:309)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.getMethodReady(StatelessInstanceLifecy
cleManager.java:64)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstan
ceGetter.java:14)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager
.java:133)
        at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationCont
ainer.java:180)
        at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessing
Environment.java:353)
        at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessi
ngEnvironment.java:329)
        at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingE
nvironment.java:211)
        at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.ja
va:155)
        at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWithLogging(ServletDispatcherImpl.
java:96)
        at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:66)
        at SoapServlet.doPost(SoapServlet.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
        at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
        at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
        at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
        at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
        at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
        at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
        at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
        at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
        at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
        at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
        at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
Caused by: javax.ejb.EJBException: Cannot perform injection over bean instance com.apl.erec.session.selectionprocessretrival.
SelectionProcessRetrivalBean@77c6fee0 for bean asianpaints.com/erecappannotation|asianpaints.com~sessproc.jarannotation|Sel
ectionProcessRetrivalBean; nested exception is: com.sap.engine.lib.injection.InjectionException: Injection on field emjobposm
g of instance com.apl.erec.session.selectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 failed. Could not get a val
ue to be injected from the factory.
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_DependencyInjection.invoke(Interceptors_DependencyInjection
.java:25)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_EJBContext30DependencyInjection.invoke(Interceptors_EJBCont
ext30DependencyInjection.java:11)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:
19)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ApplicationInstancesCreator.invoke(Interceptors_Application
InstancesCreator.java:53)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_NewBeanContext.invoke(Interceptors_NewBeanContext.java:17)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startCallback(DefaultInvocationChainsMana
ger.java:147)
at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.makeExist(StatelessInstanceLifecycleMa
nager.java:108)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.access$000(StatelessInstanceLifecycleM
anager.java:23)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager$PoolUserImpl.createObject(StatelessIns
tanceLifecycleManager.java:34)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.doResizeOneStepUp(ContainerPoolImpl.java:373)
        ... 48 more
Caused by: com.sap.engine.lib.injection.InjectionException: Injection on field emjobposmg of instance com.apl.erec.session.se
lectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 failed. Could not get a value to be injected from the factory.
        at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:115)
        at com.sap.engine.lib.injection.InjectionMatrix.inject(InjectionMatrix.java:45)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_DependencyInjection.invoke(Interceptors_DependencyInjection
.java:22)
        ... 64 more
Caused by: com.sap.engine.services.orpersistence.container.exceptions.ResourceException: Persistence unit 'jobposmg' requeste
d from archive 'asianpaints.com~sessproc.jar' is not present in application 'asianpaints.com/erecapp' or is not visible to th
e requested archive.
        at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getPersistenceUnitInfo(ORPersistenceObj
ectFactory.java:213)
        at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getObjectInstance(ORPersistenceObjectFa
ctory.java:59)
        at com.sap.engine.lib.injection.ReferenceObjectFactory.getObject(ReferenceObjectFactory.java:65)
        at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:113)
        ... 66 more
javax.ejb.EJBException: Exception in getMethodReady() for stateless bean asianpaints.com/erecapp*annotation|asianpaints.com~s
essproc.jar*annotation|SelectionProcessRetrivalBean; nested exception is: com.sap.engine.services.ejb3.util.pool.PoolExceptio
n: javax.ejb.EJBException: Cannot perform injection over bean instance com.apl.erec.session.selectionprocessretrival.Selectio
nProcessRetrivalBean@77c6fee0 for bean asianpaints.com/erecappannotation|asianpaints.com~sessproc.jarannotation|SelectionPr
ocessRetrivalBean; nested exception is: com.sap.engine.lib.injection.InjectionException: Injection on field emjobposmg of ins
tance com.apl.erec.session.selectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 failed. Could not get a value to be
injected from the factory.
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.getMethodReady(StatelessInstanceLifecy
cleManager.java:66)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstan
ceGetter.java:14)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager
.java:133)
        at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationCont
ainer.java:180)
        at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessing
Environment.java:353)
        at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessi
ngEnvironment.java:329)
        at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingE
nvironment.java:211)
        at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.ja
va:155)
        at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWithLogging(ServletDispatcherImpl.
java:96)
        at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:66)
        at SoapServlet.doPost(SoapServlet.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
        at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
        at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
        at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
        at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
        at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
        at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
        at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
        at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
        at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
        at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
        at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
        at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
Caused by: com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException: Cannot perform injection over bean i
nstance com.apl.erec.session.selectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 for bean asianpaints.com/erecapp*
annotation|asianpaints.com~sessproc.jar*annotation|SelectionProcessRetrivalBean; nested exception is: com.sap.engine.lib.inje
ction.InjectionException: Injection on field emjobposmg of instance com.apl.erec.session.selectionprocessretrival.SelectionPr
ocessRetrivalBean@77c6fee0 failed. Could not get a value to be injected from the factory.
        at com.sap.engine.services.ejb3.util.pool.ContainerPool.translate(ContainerPool.java:288)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.doResizeOneStepUp(ContainerPoolImpl.java:378)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.ensureNotEmpty(ContainerPoolImpl.java:342)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.pop(ContainerPoolImpl.java:309)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.getMethodReady(StatelessInstanceLifecy
cleManager.java:64)
        ... 45 more
Caused by: javax.ejb.EJBException: Cannot perform injection over bean instance com.apl.erec.session.selectionprocessretrival.
SelectionProcessRetrivalBean@77c6fee0 for bean asianpaints.com/erecappannotation|asianpaints.com~sessproc.jarannotation|Sel
ectionProcessRetrivalBean; nested exception is: com.sap.engine.lib.injection.InjectionException: Injection on field emjobposm
g of instance com.apl.erec.session.selectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 failed. Could not get a val
ue to be injected from the factory.
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_DependencyInjection.invoke(Interceptors_DependencyInjection
.java:25)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_EJBContext30DependencyInjection.invoke(Interceptors_EJBCont
ext30DependencyInjection.java:11)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:
19)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ApplicationInstancesCreator.invoke(Interceptors_Application
InstancesCreator.java:53)
  at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_NewBeanContext.invoke(Interceptors_NewBeanContext.java:17)
        at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
        at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startCallback(DefaultInvocationChainsMana
ger.java:147)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.makeExist(StatelessInstanceLifecycleMa
nager.java:108)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager.access$000(StatelessInstanceLifecycleM
anager.java:23)
        at com.sap.engine.services.ejb3.runtime.impl.StatelessInstanceLifecycleManager$PoolUserImpl.createObject(StatelessIns
tanceLifecycleManager.java:34)
        at com.sap.engine.services.ejb3.util.pool.ContainerPoolImpl.doResizeOneStepUp(ContainerPoolImpl.java:373)
        ... 48 more
Caused by: com.sap.engine.lib.injection.InjectionException: Injection on field emjobposmg of instance com.apl.erec.session.se
lectionprocessretrival.SelectionProcessRetrivalBean@77c6fee0 failed. Could not get a value to be injected from the factory.
        at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:115)
        at com.sap.engine.lib.injection.InjectionMatrix.inject(InjectionMatrix.java:45)
        at com.sap.engine.services.ejb3.runtime.impl.Interceptors_DependencyInjection.invoke(Interceptors_DependencyInjection
.java:22)
        ... 64 more
Caused by: com.sap.engine.services.orpersistence.container.exceptions.ResourceException: Persistence unit 'jobposmg' requeste
d from archive 'asianpaints.com~sessproc.jar' is not present in application 'asianpaints.com/erecapp' or is not visible to th
e requested archive.
        at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getPersistenceUnitInfo(ORPersistenceObj
ectFactory.java:213)
        at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getObjectInstance(ORPersistenceObjectFa
ctory.java:59)
        at com.sap.engine.lib.injection.ReferenceObjectFactory.getObject(ReferenceObjectFactory.java:65)
        at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:113)

Similar Messages

  • Error while Look up session bean (EJB 3.0) in WebDynpro

    hi ,
                 I want to look up session bean inside webdynpro. I hv written following code inside init of component controller. but not able to look up session bean
    try{
                   InitialContext context = new InitialContext();
                   ApplicationFetcherLocal applicationFetcherLocal = null;
                 applicationFetcherLocal = (ApplicationFetcherLocal)context.lookup((ApplicationFetcherLocal.class.getName());
              catch (Exception ex){
                   System.err.println("LookUp Failed\n\n"+ex.getMessage());

    Have you read my latest reply in your other [thread|session bean look up  across DCs in EJB3.0;?
    What's the value of asking the same question again if you don't care about the answer?
    Regards,
    -- Vladimir

  • JPA Inheritance across DCs

    Hi,
    I'm trying to learn how to implement JPA inheritance across DCs.
    For this purpose, I have created one application "base" (EAR + EJB) that contains a "Person" entity supporting inheritance type JOINED. This application contains also Stateless Session Bean for managing Persons.
    A second application "top" contains an "Employee" entity that inherits from "Person". This application contains a Stateless Session Bean for managing Employees that delegates some of the calls to the Person DAO.
    When everything is together in one application, it works perfectly well. Splitting it up in two applications, I left the data-source-aliases.xml and persistence.xml in the base application the same.
    I created dependencies (both COMPILATION and ASSEMBLY) from the "top" application to the "base" application and exposed everything in these public parts.
    I also created an application reference in the "top" application application-j2ee-engine.xml.
    Now I'm getting various errors depending on how I modify the "top" application.
    I tried adding identical data-source-aliases.xml and persistence.xml files - didn't work.
    I tried adding "<jar-file>aoksystems.debottomearpp_***.jar</jar-file>" in the persistence XML and removing the <jta-data-source> tag.
    When deploying the "top" application, I get a warning in NWDS but errors in the log in NWA.
    [ERROR CODE DPL.DS.5030] Clusterwide exception: [server ID 9858650:[ERROR CODE DPL.DS.5029] Exception in operation [startApp] with application [aoksystems.de/jpasecond~ear].
    -> [ERROR CODE DPL.DS.5030] Clusterwide exception: [com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of JPA_DEFAULT.
    I hope the JPA gurus can help me get this to work. Thanks a lot in advance!
    Cheers,
    Thorsten

    Hi Adrian,
    Thank you for your input. I hoped very much that you would reply.
    I think I haven't motivated the situation sufficiently, so let me explain why it is not entirely pathological.
    Suppose you're constructing a contract management application for an insurance company. There are different types of insurances (life insurance, car, building), each with different data structures and business processes, but with a common core.
    Now you split the development up and say you create one component with the common core that is identical for all aspects of insurance contract management: a "contract" root entity with common attributes, DAOs for this entity, business partner management, a generic billing engine, etc.
    Furthermore, in software components on top of the core/framework, you create components for the specialties of life insurance, building insurance, and car insurance. These are dependend on the core and use its generic functions but add extra functionalities such as life-specific business processes, UIs, business logic, contract attributes in additional database tables and attributes of subclasses or classes joined through composition.
    Clearly, a cyclic dependency between life and core is not possible or desired. Core should not know life, car, and building, but its generic services should be able to operate on their objects. This architecture is quite common and nothing out of the ordinary. Life, car, and building would just use (implement) the interfaces provided by core and thus enable core to operate on their objects in a polymorphic fashion.
    Take Web Dynpro as an example. Core provides a dialogue framework that leaves some things blank and exposes WD interfaces. Life implements these interfaces. At run time, core looks up the names of life's WD DCs and components and joins them in without any static references. The reference is entirely dynamical because it relies on a configuration that is deployed with Life and not with Core.
    Now to get the same kind of behaviour for a core JPA entity and DAO seems to be problematic. The ability to operate on unknown (at design time/build time) subclasses of a known class that are deployed in an archive that is also unknown at design time but known at run time from a configuration (file, JNDI, ...) is quite normal in framework programming IMHO.
    Thanks a lot for reading through all this.
    Cheers,
    Thorsten

  • Problem in deploy a entitiy bean in WAS5.0 (URGENT)

    ANYONE Pl Give u r suggestions
    I am trying to deploy a entitiy bean in WebSphere Application Version 5. I have followed all the steps provided by the User Interface. I am connecting to Oracle 9i driver. I am trying to validate and install the ear. the validation and installation are happenning properly. but when I try to start the services, it is failing to start with the following exception:
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is javax.naming.NamingException: Failed to lookup the object configured with a null or empty name
         at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory$1.run(IndirectJndiLookupObjectFactory.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstance(IndirectJndiLookupObjectFactory.java:92)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
         at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
         at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:135)
         at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1227)
         at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1203)
         at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1257)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)
         at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanClassExtensionImpl.lookup(ConcreteBeanClassExtensionImpl.java:727)
         at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanClassExtensionImpl.getConnectionFactory(ConcreteBeanClassExtensionImpl.java:260)
         at com.ibm.ws.ejbpersistence.beanextensions.PMModuleCookieImpl.beanInstall(PMModuleCookieImpl.java:98)
         at com.ibm.ws.ejbpersistence.beanextensions.PersistenceManagerImpl.beanInstall(PersistenceManagerImpl.java:69)
         at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1293)
         at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:958)
         at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:881)
         at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:860)
         at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1249)
         at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:982)
         at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1456)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:743)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:337)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:531)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:458)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(MMBInvoker.java:46)
         at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(MMBInvoker.java:115)
         at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke(DynamicModelMBeanSupport.java:409)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:323)
         at com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178)
         at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113)
         at com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290)
         at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:655)
         at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:137)
         at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.perform(ApplicationDeploymentCollectionAction.java:239)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

    hello there
    when u are deploying ur component there will be a screen that will show components present in ur jar/ear and will ask for JNDI name.U will have to fill the JNDI name manually and deploy the bean..
    If even after that u are facing the same problem, use AAT(Application Assembly Tool) to create ur jar / ear ... there is a seperate link for giving JNDI names (namely JNDI Bindings) .use this tab to specify ur JNDI name and create the jar/ear.deploy as such in WAS and i am sure the error will not occur
    Ganesh V

  • Keeping the values in Request bean across more than 2 pages

    Hi...,
    I have created a Bean with request scope & want to access it across 3 different pages.
    From the 1st page once I submit the values , I do a forward (redirect=no) to the second page where I can print the values . From the 2nd page I then do a forward to the 3rd page (redirect=no) & I loose the values.
    How do I keep the request bean active across multiple pages. But I don't want to make it session as this is a form to enter values & our users might open multiple forms as the same time.
    Regards,
    Praveen

    Hi....Balu,
    We are having a issue when using ajax on top of JSF . Setting the variable hidden is somehow not working.
    Secondly, what is requestMap & where can I find the information.
    Regards,
    Praveen

  • Hi , i think i will have a look an te AVI tools, what i am most interested in is looking at sending voice across the internet in real time.

    Hi Kyle, what i am looking at is sending voice in real time across the internet using labView functions i dont want to bring in another application and make things more complicated.

    I am not sure exactly what you are asking. If you have a previous post which Kyle answered I would suggest just posting back to it.
    However if you want to send data across TCP in LabVIEW there are some TCP VIs that are quite easy to use. You open a connection, write and read from that connection, and then close it. However data send over TCP using the TCP VIs is sent as a string, not as "voice" however I am not sure what data type you are currently using.

  • Aperture extra large book two-page spread looks not connected correctly across gutter

    Just previewed a extra large photo book in Aperature 3 before buying and in their preview .pdf the hook-up across2-page photo spread looks slightly offset—not connected correctly where image meets in the gutter. Is this a real representation or will it print correctly?

    Hi, Nubz!
    Yes, I just saw that, and am still chuckling.
    Maybe that will mollify the Jive gods?
    Thanks again,
    Jim

  • How to limit the number of Entitiy Beans returned by an EJBQL ??

    Hi developpers,
    I'm working on an application using EJB 3.0, TOPLINK and JSF with JDeveloper 10g,
    I want to get just the four first items from a database using an entity bean so i used this query :
    @NamedQuery(name="chercherNDerniersDSalaire", query="select object(o) from DSalaire o where o.dImmatricule.immVNumImm = :nCNSS ORDER BY o.salNAnnee DESC, o.salNPeriode DESC LIMIT 4")
    but it returns all the items (10) !!
    please help me :-( I don't know why it ignores the LIMIT clause
    thanks all

    Hello
    Rownum works fine with oracle target database and query in sql mode instead of ejb-ql. Ejb-ql Limit declaration is normally translated as sql rownum <= and rownum > form.
    I didn't find anything in the ejb 3.0 final release specification about the limit declaration in a ejb-ql order by clause.
    May be it will be interesting to debug the sql statement that is generated for the database.

  • Garbage on console when using read-only entitiy beans

    Hi.
    I added some RO beans to out deployment, and it seems that it resulted
    degredation in performance. The reason might be is that for every call for a
    RO bean, there is something written in the weblogic window:
    ejbContext == null- false
    lockClient.equals pk- false
    is it some leftover from debugging ? ;-)
    it doesn't show on the weblogic.log though.
    anyhhow, I'm using WLS 5.1, SP3, on NT and Solaris.
    thanks.
    -- Eran

    Please read "Service Pack 3 messages" in interest.ejb.
    Cheers - Wei
    Eran Erlich <[email protected]> wrote in message
    news:8jaaud$18e$[email protected]..
    Hi.
    I added some RO beans to out deployment, and it seems that it resulted
    degredation in performance. The reason might be is that for every call fora
    RO bean, there is something written in the weblogic window:
    ejbContext == null- false
    lockClient.equals pk- false
    is it some leftover from debugging ? ;-)
    it doesn't show on the weblogic.log though.
    anyhhow, I'm using WLS 5.1, SP3, on NT and Solaris.
    thanks.
    -- Eran

  • Passing beans across JSR Portlet Requests

    I'm new to portlet development and having trouble getting my head around the following...
    All I wan't to do is display a simple form, process the data and display some results.
    I would expect to do this through a combination of processAction method and a doView method, however it seems incredibly difficult to get the data created in processAction method into my JSP.
    If I was writing a servlet I'd simply create a bean and store it as an attribute in the request scope, but this doesn't seem posible within portlets.
    The sun examples use setRenderParameter(), but this only takes strings.
    I'd could add the bean to the PortletScope but would rather not as
    1. The bean will hang around for the lifetime of the portlet rather than the lifetime of the request
    2. The Portlet Specification stes that "Attributes stored in the PORTLET_SCOPE are not protected from other web components of the portlet application.
    Surely it can't be this hard to create a bean in the processAction method and access it from the JSP. Please tell me I'm missing something!

    I have the same problem with WebLogic Portal, so I
    think there's a problem of clarification with the spec, and I
    hope this will be clarified once theres a new version of
    the portlet API.
    If attributes set in ActionRequest cannot be seen in
    the render() methods, I simply see no point in defining
    setAttribute() and getAttribute() methods on the base
    PortletRequest interface ( from which both
    RenderRequest and ActionRequest inherit ).
    I've checked JSR 168 and PLT3.1 states that
    "Attributes set in the portlet request are
    available in the included servlet request", but
    from the above it seems that this is only true of
    renderRequests. Is this a bug in my Portal server
    (Vignette 7 Trial Edition)?

  • Include jsp's across DCs

    Hi SDNers,
    I am trying to use the <jsp:include> tag to include jsps from one DC to another. The <jsp:include> works fine when including jsp's in the same DC. However, if I try to include a jsp from another DC it throws an error that the file cannot be found.
    I have created an API public part for JSP B which resides in DC B. In DC A, I added DC B as a Used DC and also specified DC B as Sharing Reference in the portalapp.xml of DC A. I have depolyed both the DC's.
    However, in JSP A of DC A the <jsp:include page="JSP B" flush="true" /> does not work for the JSP B of DC B.
    Could someone guide me as to how to include a jsp from one DC into another DC.
    Regards,
    Melwyn.

    Hi All,
    I have a similar requirement. I need to include a jsp file into another jsp file of another DC.
    How to access the jsp files accross DCs?
    any points regarding this would be more helpful.
    Thanks,
    Ravi

  • Sharing backing beans across sessions

    HI,
    After doing some simple investigations I could see that different sessions were using the same backing bean instance.
    I was wondering is there any way you can configure in the JSF framework to use their own instance of the backing bean?
    Thanks.

    Declare them as session- scoped, e.g.@SessionScoped.

  • Looking for struts bean:write   Equivalent function/ tag in jsf??

    Hi to all,
    I am quite new to jsf. Soi might be asking a stupid question.
    I just wanna to know is there an equivalent tag or simple scriplet that can provide the same function as strut <bean:write>?
    Thanks and regards,
    Chin Tat

    ok i am not a struts programmer but from a quick search i am assuming <bean:write> outputs in html the value of a property in your java bean?
    if this is the case then you simply use
    #{beanName.propertyName}
    i.e
    <h:outputText value="#{beanName.propertyName}"/>
    note your bean will have to be registered in you facesContext as a managed bean to do this (where beanName is the name of your managedBean)
    if bean:write doesn't do this sorry :) forget my answer

  • My macbook pro has been freezing up randomly and barcode looking lines go all across the screen. Does anyone know if Apple had a recall on a 2012 model macbook pro that would explain any of this?

    Does anyone know what I can do about this? I'm pretty certain that I didn't do anything wrong, and I already got it checked for viruses and it is not that.
    Thank you so much,
    ~Poor college kid trying to get by.

    Hard to say, you'd have to shop around. Check first with authorized service providers - https://locate.apple.com/au/en/#
    If they're not authorized, make sure they give a warranty on the repair and hopefully have some good reviews on Google/Yelp etc.
    Also make sure you test it when you get it back, it's common for the replacements to fail unfortunately (from Apple at least, probably anywhere).

  • Look for missing items across 2 tables

    Hi All
    Basically I have following 4 tables (including two lookup tables)
    My intention is Basically first needs to find out what are the matching records
    between ModTab and MedTab through link keys (ItemID & TrfCode through Lookup1) and then
    missing OptCodes in MedTab which are in ModTab and viceversa.
    Can I do this with one go
    Key fields are the one with same name.
    When linking MedTab & Lookup2 needs to use both StateCode and OptCode
    ModTab
    ======
    Component
    Item ID
    MedTab
    ======
    TrfCode
    OptCode
    StateCode
    Lookup1
    =======
    Item ID
    TrfCode
    Lookup2
    ========
    Component
    StateCode
    OptCode
    How should I do it
    Appreciate your guidence
    Cheers
    Shabar

    shabar wrote:
    In case if I want to do the Lookup2.StateCode = MedTab.StateCode as follows how it is possible
    If get Lookup2.StateCode value as "A1" needs to check "T1", "T2" values in MedTab.StateCode
    But for other values needs to check one to one if there is no T1 or T2 values in Lookup2.StateCode, you can easily change left join as follows:
    left join Lookup2
        on Lookup2.OptCode = MedTab.OptCode
        and Lookup2.StateCode = decode(MedTab.StateCode, 'T1', 'A1', 'T2', 'A1', MedTab.StateCode)if you have T1/T2 values too in Lookup2.StateCode, it can be:
    left join Lookup2
        on Lookup2.OptCode = MedTab.OptCode
        and (
              (Lookup2.StateCode = 'A1' and MedTab.StateCode in ('T1','T2'))
            or
              Lookup2.StateCode = MedTab.StateCode
        )

Maybe you are looking for

  • Mail server setup question

    i am setting up a mac pro with the leopard server. After 3 reinstallations of the os i keep reaching the same situation. Once i have setup mail services the mails can only be relayed within the local lan and mail sent via smtp can go to the internet.

  • How can i fix my iphone 4s ? the screen went black and wont turn back on.

    ugh

  • Ipod Shuffle Cannot Be Read or written to :(

    hi ppl, i got a 512Mb shuffle, when i just got it, it works fine, but after a while it refuses to let me put any songs on it, it says "ipod cannot be read or written to" any1 have any suggestions?? i also have a 60GB video ipod and it works fine... i

  • Converting UNPROTECTED Mp4 files to Mp3 format?

    I have some unprotected Mp4 files that I can't seem to convert to Mp3 format. The weird thing is, under Advanced, when I try to convert Protected Mp4 videos, there's an option that says "Convert to Mp3 format", but with my unprotected Mp3 files, ther

  • Mail will not stop downloading

    I have a flat screen iMac 800 w/ OS 10.3.9 and mail 1.3.11. The mail continuously downloads nonstop. How do I stop this? If I delete the mail it just downloads the same stuff again. The server wil not let the mail be deleted by Mac mail once it is do