Post new topic   Reply to topic
Author Message
Tarrasque



Joined: Apr 24, 2012
Posts: 2

Hello.

I'm switching to MyEclipseBlue 10 for developing and deploying to a WebSphere 6.1 server.

If I develop my ear on regular Eclipse and package with Maven, the resulting EAR can pe deployed and started with the admin console without problems.

If I try to deploy with MyEclipse, I get these errors in the deployment.log

ADMA0007E: A Validation error occurred in task Mapping resource references to resources. The Java Naming and Directory Interface (JNDI) name is not specified for reference binding jdbc/ZH-devDS in module incassi-webfe-0.0.1-SNAPSHOT.war with EJB name {3}.

And the application doesn't start nor shows on the admin console.

The datasources are configured correctly on WS and web.xml and we never had those errors with regular Eclipse.

I looked around and I found out that this kind of errors could be related to discrepancies between wex.xml and file ibm-web-bnd.xmi and in facts, this file is COMPLETELY MISSING in the war generated py MyEclipse during deploy.

Can anybody help?
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna



Joined: Nov 11, 2010
Posts: 2695

Tarrasque,

Sorry that you are seeing this issue.

Can you answer some more questions for us ?

1. Can you please share the Installation Details from MyEclipse > Installation Summary > Installation Details ? Paste them here for us.

2. In which version of Eclipse did you develop the EAR ? Which version of Maven did you work with in Eclipse IDE ?

3. Are you creating the EAR in MyEclipse or importing the one developed in Eclipse ? Please list out the steps you are following for us to help replicate the issue at our end.

4. ibm-web-bnd.xmi is not generated by MyEclipse. You can use the xdoclet plugin that comes with MyEclipse. Use the webspherewebxml sub task of webdoclet to generate the ibm specific ibm-web-ext.xmi and ibm-web-bnd.xmi files. Take a look at this tutorial:

http://www.myeclipseide.com/module-htmlpages-display-pid-326.html

5. Clear the contents of the deployment log, now try to deploy the project and paste the entire contents of the deployment log here to investigate further.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Tarrasque



Joined: Apr 24, 2012
Posts: 2

Thank you very much for the support.

By copying the .xmi files that Indigo generated and putting them in the MyEclipse project's WEB_INF folder I'm now able to deploy an EAR that shows up regularly on the WS console.

I have now problems when I start the server, though. The problem seems to be in the fact that we set up our project using Maven, and we make extensive use of Maven profiles and filters to fill in some configuration properties depending on the target server we want to deploy the ear to (for example: link URLs, homepage titles, logos, etc.)

When MyEclipse compiles and deploys on the WS in my development machine, cah I specify a MAven profile (or some equivalent action) in order to solve this problem?


Thx.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna



Joined: Nov 11, 2010
Posts: 2695

Tarrasque,

You can specify the profiles in the pom.xml or settings.xml. Take a look at this link :
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Please take a look at this thread to run the profiles specified within pom.xml :
http://myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=122857

Let us know if you see any issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
All times are GMT - 6 Hours
Post new topic   Reply to topic
® 2014 - Genuitec, LLC.