Resource reference and mixed-component type failures

In either of these situations, you see errors similar to these:

Warning: Component 'MyEjb/MyEjb ' is not migrateable because it contains a resource-ref which links to an unmigrateable ConnCache
Warning: Cannot migrate Application 'MyApp' because the Package 'MyEjb' contains unmigrateable components or a mix of component types.