MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
wowfee
Post subject: Exploded deployment using dbtype DB2UDBNT_V82_1  PostPosted: Feb 19, 2008 - 07:10 PM



Joined: Feb 06, 2008
Posts: 14

We want to migrate from WSAD 5.1 to MyEclipse Blue for obvious reasons.

Our application is packaged as an EAR, and contains an entity bean jar with ibm-ejb-jar-bnd.xmi specifying currentBackendId="ORACLE_V9_1".

When we use MyEclipse Blue M1 to perform exploded deployment, and then start the application in WAS 6.1, we get this error:

com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerException: PMGR1012E: The current backend id DB2UDBNT_V82_1, does not match the datasource connected to.

It appears that the deployment is generated to use DB2, not Oracle.

Searching the net for this error reveals IBM's workaround to specify -deployejb.ejbtype=="ORACLE_V9_1" to ejbDeploy. In fact, if I use MyEclipse (Standard or Blue) to package our application as a Packaged Archive, then use the WAS 6.1 Integrated Solutions Console to deploy the ear, specifying database type "ORACLE_V9_1", all works well. However, this defeats the goal of using MyEclipse Blue to perform hot deployment!

The question is: How do we get MyEclipse Blue M1 to specify -deployejb.ejbtype=="ORACLE_V9_1" (or equivalent) to ejbDeploy?

I did not find an option in the GUI to specify dbtype or any other related ejbDeploy option. Is there a plugin config file where I can provide these properties? Or is there some other artifact WAS 6.1 ejbdeploy uses to override the default dbtype other than ibm-ejb-jar-bnd.xmi?

This appears to be the only remaining issue blocking our success at using MyEclipse Blue to supplant WSAD 5.1.

Regards,

Ralph Harnden
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
wowfee
Post subject: RE: Exploded deployment using dbtype DBUDBNT_V82_1  PostPosted: Feb 19, 2008 - 11:22 PM



Joined: Feb 06, 2008
Posts: 14

I was able to hack the installEAR.jacl and installEjbModule.jacl scripts to include "-deployejb.dbtype ORACLE_V9I" to force using Oracle instead of the default DB2. I am not sure if I had to modify both of these scripts, but this workaround got me back in business.

This, however, is not a good long term solution, as it does not allow me to use other databases with the same installation without changing the jacl scripts.

It seems like MyEclipse Blue should expose the same deployment options available through the Integrated Solutions Console, and pass those options to EJBDeploy.

Thoughts?

Ralph Harndne
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
support-greg
Post subject: RE: Exploded deployment using dbtype DBUDBNT_V82_1  PostPosted: Feb 20, 2008 - 01:55 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1611

Hello Ralph,

I'd glad to hear that you have been able to app to deploy, however I do agree it isn't a long term solution. The MyEclipse Blue development team is hard at work on the next version of the Blue edition and I will be sure and send your comments along. I do know that a feature very similar to what you are asking about is already on the dev team's radar for including support for specifying db resources on project deployments.

Thanks for your feedback.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
markvieira
Post subject: RE: Exploded deployment using dbtype DBUDBNT_V82_1  PostPosted: Mar 18, 2008 - 12:09 AM



Joined: Mar 18, 2008
Posts: 1

This problem still exists in the 6.1.0 GA release. When using the in IDE deployer the current backend id isn't being passed to the ejbdeploy tool and requires manually editing the .jacl scripts. Is this something that is going to be fixed in the next release?

Also, as far as specifying db resources, is that also something that is up in the next release. Something similar to the server configurator in WSAD. It would be nice to be able to setup datasources from within the IDE rather than manually with the server admin console.
 
 View user's profile Send private message  
Reply with quote Back to top
support-michael
Post subject: RE: Exploded deployment using dbtype DBUDBNT_V82_1  PostPosted: Mar 18, 2008 - 06:20 AM
Moderator
Moderator


Joined: May 05, 2003
Posts: 1042

Quote:

Also, as far as specifying db resources, is that also something that is up in the next release. Something similar to the server configurator in WSAD


This feature is absolutely on our radar for an upcoming release. This problem report is already being tracked in our feature mgmt system. We had hoped to get the feature into the 6.1 release but we got pressed for time prep'ing more general features.

_________________
Michael
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
ascifres
Post subject: Still not there in 8.6  PostPosted: May 18, 2011 - 08:38 PM



Joined: Mar 19, 2009
Posts: 57

The ability to specify dbtype for ejbdeploy doesn't seem to be there in version 8.6 of MyEclipse Blue either. Either that, or I cannot find it. I had to hack my JACL scripts to add in the same thing as above, only for DB2UDBOS390_V9 instead. Is there some way to do it in a recent version of the IDE, or is it still "on the radar for an upcoming release?"
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject: RE: Still not there in 8.6  PostPosted: May 19, 2011 - 01:33 PM



Joined: Nov 11, 2010
Posts: 2490

ascifres,

There is a PR already filed for this one. I will have a dev team member answer this for you.
Sorry for the inconvenience caused.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
tmwr
Post subject: Still not there in 10.5???  PostPosted: Jun 29, 2012 - 08:40 AM
Registered Member
Registered Member


Joined: Aug 16, 2011
Posts: 6

support-swapna wrote:
ascifres,

There is a PR already filed for this one. I will have a dev team member answer this for you.
Sorry for the inconvenience caused.


Hi,

I'm came accros this while deploying an EAR with an EJB 2.1 project with a ton of CMPs with Blue 10.5....

Still no setting available via GUI or do I have to patch the scripts too? And is so, where are they located?

Thx,
Thomas
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Jun 29, 2012 - 01:37 PM



Joined: Nov 11, 2010
Posts: 2490

Thomas,

The fix could not make it to 10.5. I have escalated it to a dev team member.
They will get back to you.

Sorry for inconvenience caused.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jul 02, 2012 - 06:18 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2583

Thomas,

We're taking another look at this issue now. There are some fundamental issues that make this problem more involved than simply adding a switch / field to the deployment process.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-piotr
Post subject:   PostPosted: Jul 02, 2012 - 10:10 AM



Joined: Feb 10, 2011
Posts: 84

Thomas,

Since 9.1, you can run stub generation (EJB Deploy) for WAS 6.1+ directly in your ME workspace. You can set properties for EJB project on MyEclipse -> EJB Deploy property page of the project (select project in package explorer and choose from menu: Project -> Properties then navigate to the page). After setting the properties (or before - it will direct you to property pages automatically) you need to select each individual EJB project or the EAR project containing EJB projects, invoke pop up menu with right click and choose MyEclipse -> Run EJB Deploy. Note, that you will need to run EJB Deploy manually each time you change anything in EJBs API. You need to disable invocation of ejbdeploy tool on project deployment also. To do so, select EAR project - open project properties (Project -> Properties) and navigate to MyEclipse -> EAR page, then uncheck "Run EJBDeploy tool" option in "WAS 6.1/7.0/8.0/8.5 Deployment Options" group. You can use this with all WAS deployment modes (classic, enhanced and in-worksapce). I hope that this will resolve your problem. We will be working on providing those options for "ejbdeploy tool" launched during WAS deployment as well.

_________________
Piotrek
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
tmwr
Post subject:   PostPosted: Jul 03, 2012 - 02:33 PM
Registered Member
Registered Member


Joined: Aug 16, 2011
Posts: 6

Brian, Piotrek,

many thanks for your support. It's working for me now with disabling the EJB deploy at all in the EAR properties.

It's a little tricky project setup... :-) We're hardwiring a precrated EJB-JAR (legacy code developed and "EJB deployed" with RAD) in our application.xml and using the provided functions in newer EJB 3 within the same EAR. So we don't really have the EJB 2.1 project in out workspace.

Anyways I'm fine now and thanks again,
Thomas
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits