I am able to import the EJB projects (compromising of Session and Entity beans). The EJB project is using WAS 5 jars in the classpath. I have made the relevant changes also for the Bean to table mappings (Map.xmimap file), but moment I run the "Prepare For Deployment" command it throws following exception:
---------------------------------------------------------------------
com.ibm.etools.ejbdeploy.plugin.InternalErrorGenerationException: Error generating findByPrimaryKeyWithReadAhead query for bean User (Abstract schema name=User). Error=java.lang.NullPointerException null at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCache.initReadAheadQueries(Unknown Source) at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCache.initQueryCache(Unknown Source) at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheHelper.<init>(Unknown Source) at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheCache.initQueries(Unknown Source) at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheCache.init(Unknown Source) at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.generateQueries(Unknown Source) at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.getClassMapsForBackend(Unknown Source) at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.invokeCodeGeneration(Unknown Source) at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doRun(Unknown Source) at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run(Unknown Source) at com.ibm.etools.ejbdeploy.EJBDeployer.visit(Unknown Source) at com.ibm.etools.ejbdeploy.EJBDeployer.doExecute(Unknown Source) at com.ibm.etools.ejbdeploy.EJBDeployer.execute(Unknown Source) at org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.deploy(Unknown Source)
-------------------------------------------------------------------------------------
We are stuck at the moment - I have recreated the mapping etc hundred times but it still doesn't work. Interestingly, it works to an extent when I export the EJB jar and run the ejdeploy utility ("C:\Program Files\IBM\SDP70\runtimes\base_v61\bin") from command line. It generates relevant EJB classes but along with it there are host of compilation errors. This could be due the class path which is pointing to WAS 5 runtime lib rather than WAS 6? Not sure.
Any Help will be more than welcome.
Error message
Deployment from com.ibm.etools.ejbdeploy.EJBDeployer had errors:
Error During generation of deployment code : null
Is there any problem in the app server or need to install any fixes?
i tried the steps that you posted but is not working out, though it worked in my friends machine.
Could any have face same problem? pls let me know workaround.
Thanks in Advance