Problem deploying on WS 6.1: jndi missing in ibm-web-bnd.xmi

Home Forums MyEclipse IDE WebSphere Development Problem deploying on WS 6.1: jndi missing in ibm-web-bnd.xmi

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of support-swapna support-swapna 3 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #325508
    Profile photo of Tarrasque
    Tarrasque
    Member

    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?

    #325531
    Profile photo of support-swapna
    support-swapna
    Moderator

    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.

    #325771
    Profile photo of Tarrasque
    Tarrasque
    Member

    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.

    #325802
    Profile photo of support-swapna
    support-swapna
    Moderator

    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 :
    https://www.genuitec.com/forums/topic/how-to-run-profiles-within-pom-in-myeclipse/#post-316562

    Let us know if you see any issues.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.