m***@gmail.com
2012-10-09 23:23:17 UTC
Hi -
I have an EJB with the following resource injection:
@Resource(name="wm/WorkMgr",type=com.ibm.websphere.asynchbeans.WorkManager.class)
private WorkManager wm;
I also have the following in my ibm-ejb-jar-bnd.xml
<session name="MyEJBImpl">
<resource-ref name="wm/WorkMgr" binding-name="wm/WorkMgr"/>
</session>
This was working just fine in WebSphere 6.1.0.31 - we just upgraded to 6.1.0.45, and now we get the following error:
Caused by: com.ibm.ws.asynchbeans.exception.AsynchBeanException: ASYN0064E: The value null of the res-type resource reference element WorkManager is not right. Only the following values are allowed: com.ibm.websphere.asynchbeans.WorkManager, commonj.work.WorkManager.
at com.ibm.ws.asynchbeans.naming.WorkManagerFactory.validateWMResRef(WorkManagerFactory.java:374)
at com.ibm.ws.asynchbeans.naming.WorkManagerFactory.getObjectInstance(WorkManagerFactory.java:144)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:917)
I have an EJB with the following resource injection:
@Resource(name="wm/WorkMgr",type=com.ibm.websphere.asynchbeans.WorkManager.class)
private WorkManager wm;
I also have the following in my ibm-ejb-jar-bnd.xml
<session name="MyEJBImpl">
<resource-ref name="wm/WorkMgr" binding-name="wm/WorkMgr"/>
</session>
This was working just fine in WebSphere 6.1.0.31 - we just upgraded to 6.1.0.45, and now we get the following error:
Caused by: com.ibm.ws.asynchbeans.exception.AsynchBeanException: ASYN0064E: The value null of the res-type resource reference element WorkManager is not right. Only the following values are allowed: com.ibm.websphere.asynchbeans.WorkManager, commonj.work.WorkManager.
at com.ibm.ws.asynchbeans.naming.WorkManagerFactory.validateWMResRef(WorkManagerFactory.java:374)
at com.ibm.ws.asynchbeans.naming.WorkManagerFactory.getObjectInstance(WorkManagerFactory.java:144)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:917)